https://github.com/opentelemetry-php/gen-otlp-protobuf
[READONLY] PHP protobuf files for communication with OpenTelemetry OTLP collectors/servers.
https://github.com/opentelemetry-php/gen-otlp-protobuf
Last synced: about 11 hours ago
JSON representation
[READONLY] PHP protobuf files for communication with OpenTelemetry OTLP collectors/servers.
- Host: GitHub
- URL: https://github.com/opentelemetry-php/gen-otlp-protobuf
- Owner: opentelemetry-php
- Created: 2022-05-24T15:50:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-15T23:22:02.000Z (6 months ago)
- Last Synced: 2025-06-30T22:47:13.136Z (14 days ago)
- Language: PHP
- Homepage:
- Size: 171 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/opentelemetry-php/gen-otlp-protobuf/releases)
[](https://github.com/open-telemetry/opentelemetry-php/tree/main/proto/otel)
[](https://github.com/opentelemetry-php/gen-otlp-protobuf)
[](https://packagist.org/packages/open-telemetry/gen-otlp-protobuf/)
[](https://packagist.org/packages/open-telemetry/gen-otlp-protobuf/)# OpenTelemetry protobuf files
## Protobuf Runtime library
OTLP exporting requires a [protobuf runtime library](https://github.com/protocolbuffers/protobuf/tree/main/php).
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:```shell
pecl install protobuf
```The extension can be installed alongside the native library, and it will be used instead if available.
## Contributing
This repository is a read-only git subtree split.
To contribute, please see the main [OpenTelemetry PHP monorepo](https://github.com/open-telemetry/opentelemetry-php).