open-telemetry/api
OpenTelemetry API for PHP: vendor-neutral interfaces for tracing, metrics, and context propagation. Use it to instrument libraries/apps and connect to any OpenTelemetry SDK/exporter. Part of the OpenTelemetry PHP project (subtree split).
Meter API) for auto-scaling decisions.Logger::logRecordBuilder()) for security/regulatory needs.Monolog + custom spans) with a standardized, future-proof API. Deprecations (e.g., InstrumentationInterface) signal active maintenance.Monolog or Laravel’s built-in logger)."This is the ‘PostgreSQL of observability’ for our Laravel stack. By adopting OpenTelemetry’s PHP API, we standardize how we collect traces, metrics, and logs—just like we standardized our database layer. This gives us:
"This package gives us:
Span::start()).Meter::createCounter()) for SLOs without reinventing wheels.X-Request-ID headers).open-telemetry/api to composer.json, configure a backend (e.g., OTLP exporter), and instrument critical paths. The team can start with traces for APIs and expand to metrics/logs later."*"This solves:
http.server.duration) for SLO-based alerts (integrates with Prometheus).Logger::logRecordBuilder()) to debug production issues faster.How can I help you explore Laravel packages today?