* adding LocalRootSpan class this is based on Java's implementation, https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/v2.3.0/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/LocalRootSpan.java and adds the ability to identify and locate the "local root span" in a trace. The local root span is the top-level active span which has either an invalid or remote parent. It's tracked automatically as part of making a span active, either via `Span::activate()` or `Span::storeInContext()`, and can be retrieved in a couple of ways, but most easily via `LocalRootSpan::current()`. * remove redundant local root span check * move context key to api * internal * adding example * mark LocalRootSpan as experimental * adding an example of local root span usage * style, fix broken build |
||
|---|---|---|
| .github | ||
| .phan | ||
| docker | ||
| docs | ||
| examples | ||
| files/collector | ||
| proto/otel | ||
| script | ||
| src | ||
| tests | ||
| var/metrics | ||
| vendor-bin | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.dist | ||
| .gitattributes | ||
| .gitignore | ||
| .gitsplit.yml | ||
| .php-cs-fixer.php | ||
| .phpcs.xml | ||
| .scrutinizer.yml | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| DEVELOPMENT.md | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| code-of-conduct.md | ||
| codecov.yml | ||
| composer.json | ||
| deptrac.baseline.yaml | ||
| deptrac.yaml | ||
| docker-compose.collector.yaml | ||
| docker-compose.fiber-ffi.yaml | ||
| docker-compose.prometheus.yaml | ||
| docker-compose.w3cTraceContext.yaml | ||
| docker-compose.yaml | ||
| infection.json5 | ||
| phpbench.json.dist | ||
| phpmetrics.json | ||
| phpstan.neon.dist | ||
| phpunit.xml.dist | ||
| psalm.xml.dist | ||
| rector.php | ||
README.md
OpenTelemetry for PHP
This is the monorepo for the main components of OpenTelemetry for PHP.
Documentation
Please read the official documentation: https://opentelemetry.io/docs/instrumentation/php/
Packages and versions
| Package | Latest |
|---|---|
| API | |
| SDK | |
| Context | |
| Semantic Conventions | |
| OTLP Exporter | |
| gRPC Transport | |
| OTLP Protobuf Files | |
| B3 Propagator |
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
We would love to have you on board, please see our Development README and Contributing README.
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