Monitoring a PHP application with OpenTelemetry
summary
Demonstrates that PHP apps emit traces metrics and logs via OpenTelemetry using the PHP SDK, OTLP (gRPC or HTTP), and the Go-based collector which can export to multiple back ends (Elastic included). Shows both manual spans and a working auto-instrumentation extension that hooks into the Zend runtime, notes required extensions (gRPC protobuf FFI) and recommends a Guzzle 7 adapter. Tracing is usable now (SDKs mostly beta) with 1.0 for traces imminent.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:00Observability
- 5:05Trace
- 8:05Metrics
- 10:52The Collector
- 15:55Microservices
- 17:35Context Propagation
- 21:00Baggage
- 23:57Protocol
- 24:57PHP code
- 25:48PHP SDK
- 29:56Technical requirements
- 33:01OpenTelemetry Code
- 35:51Create a span
- 37:47Send information log
- 38:14Auto instrumentation
- 38:43Hook
- 39:32Span
- 40:15Post
- 40:58Elastic
- 41:59Questions
related talks
43mOpenTelemetry with PHP is easier than you think!
38mOpenTelemetry: toward a standard for monitoring your applications
34mOpenTelemetry for Dummies: Instrumenting Go Apps
30mOpenTelemetry 101
46mThe State of OpenTelemetry
02h 03mWorkshop 3
43mDebugging and Profiling Distributed Applications Using OpenTracing
02h 02mHow To Troubleshoot and Monitor Applications using OpenTelemetry
