open-telemetry/gen-otlp-protobuf
Generated OpenTelemetry OTLP protobuf classes for PHP. Requires google/protobuf and can use the PECL protobuf extension for much faster production performance. Read-only split from the OpenTelemetry PHP monorepo.
OTLP exporting requires a protobuf runtime library.
There exist two protobuf runtime libraries that offer the same set of APIs, allowing developers to choose the one that best suits their needs.
This package requires google/protobuf, which is the native implementation. It is easy to install and a good way to get
started quickly.
Alternatively, and the recommended option for production is to install the Protobuf C extension for PHP. The extension makes OTLP exporting significantly more performant. The extension can be installed with the following command:
pecl install protobuf
The extension can be installed alongside the native library, and it will be used instead if available.
This repository is a read-only git subtree split. To contribute, please see the main OpenTelemetry PHP monorepo.
How can I help you explore Laravel packages today?