opentelemetry-php is a free, open source monitoring & observability project written in PHP and released under Apache-2.0. It has 912 GitHub stars, 233 forks and 97 open issues, and was last pushed 37 hours ago. On this registry it ranks #170 of 191 tracked projects in Monitoring & Observability, with 5 head-to-head comparisons available.

OpenTelemetry for PHP

CI Build codecov Slack

This is the monorepo for the main components of OpenTelemetry for PHP.

Documentation

Please read the official documentation: https://opentelemetry.io/docs/instrumentation/php/

API Documentation is available here: https://open-telemetry.github.io/opentelemetry-php/

AI Assistance

If you're planning on using AI to contribute to the OpenTelemetry PHP repositories, please follow the OpenTelemetry GenAI Policies.

Packages and versions

Package Latest
API Latest Stable Version Latest Unstable Version
SDK Latest Stable Version Latest Unstable Version
Context Latest Stable Version Latest Unstable Version
Semantic Conventions Latest Stable Version Latest Unstable Version
OTLP Exporter Latest Stable Version Latest Unstable Version
gRPC Transport Latest Stable Version Latest Unstable Version
OTLP Protobuf Files Latest Stable Version Latest Unstable Version
B3 Propagator Latest Stable Version Latest Unstable Version

Releases for both this repository and contrib are based on read-only git subtree splits from our monorepo. You should refer to packagist.org for all packages, their versions and details.

You can also look at the read-only repositories, which live in the opentelemetry-php organization.

Contributing

GitHub repo Good Issues for newbies GitHub Help Wanted issues GitHub Help Wanted PRs GitHub repo Issues

We would love to have you on board, please see our Contributing README

Emeritus

For more information about the emeritus role, see the community repository.

Specification conformance

We attempt to keep the OpenTelemetry Specification Matrix up to date in order to show which features are available and which have not yet been implemented.

If you find an inconsistency in the data in the matrix, please let us know in our slack channel and we'll get it rectified.

Backwards compatibility

See compatibility readme.

Versioning

OpenTelemetry for PHP aims to support all officially supported PHP versions according to https://www.php.net/supported-versions.php, and support will be dropped for PHP versions within 12 months of that version going End of life.

Versioning rationale can be found in the Versioning Documentation

Frequently asked questions

Is opentelemetry-php free to use?

opentelemetry-php is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does opentelemetry-php do?

The OpenTelemetry PHP Library

What is opentelemetry-php written in?

opentelemetry-php is primarily written in PHP. Its source is publicly available at https://github.com/open-telemetry/opentelemetry-php, and it has 912 GitHub stars.