Getting Started
Get up and running with OpenTelemetry for PHP.
You are viewing the English version of this page because it has not yet been fully translated. Interested in helping out? See Contributing.
오픈텔레메트리(OpenTelemetry) PHP 문서에 온 것을 환영한다. 이 절에서는 오픈텔레메트리 API와 SDK를 사용하여 PHP에서 메트릭, 로그, 트레이스 등의 텔레메트리 데이터를 생성하고 수집하는 방법을 소개한다.
이 페이지들은 오픈텔레메트리 PHP를 시작하고 현재 기능과 상태를 이해하는 데 도움을 주기 위한 것이다.
오픈텔레메트리 PHP의 주요 기능 컴포넌트의 현재 상태는 다음과 같다.
| 트레이스 | 메트릭 | 로그 |
|---|---|---|
| Stable | Stable | Stable |
최신 릴리스를 포함한 릴리스 정보는 릴리스를 참고한다.
OpenTelemetry SDK for PHP aims to support all officially supported PHP versions according to www.php.net/supported-versions, and support will be dropped for PHP versions within 12 months of that version going End of Life.
Auto-instrumentation requires PHP version 8.0+.
Some of the SDK and Contrib packages have a dependency on both a
HTTP Factories (PSR-17) and a
php-http/async-client
implementation. You can find appropriate composer packages implementing given
standards on packagist.org.
See
http-factory-implementations
to find a PSR-17 (HTTP factories) implementation, and
async-client-implementations
to find a php-http/async-client implementation.
| Extension | Purpose |
|---|---|
| ext-grpc | Required to use gRPC as a transport for the OTLP exporter |
| ext-mbstring | More performant than the fallback, symfony/polyfill-mbstring |
| ext-zlib | If you want to compress exported data |
| ext-ffi | Fiber-based context storage |
| ext-protobuf | Significant performance improvement for otlp+protobuf exporting |
Fibers support can be enabled by setting the OTEL_PHP_FIBERS_ENABLED
environment variable to true. Using fibers with non-CLI SAPIs may require
preloading of bindings. One way to achieve this is setting
ffi.preload
to src/Context/fiber/zend_observer_fiber.h and setting
opcache.preload to
vendor/autoload.php.
The native protobuf library is significantly slower than the extension. We strongly encourage the use of the extension.
OpenTelemetry for PHP is distributed via
packagist, in a number of
packages. We recommend that you install only the packages that you need, which
as a minimum is usually API, Context, SDK and an exporter.
We strongly encourage that your code only depend on classes and interfaces in
the API package.
Get up and running with OpenTelemetry for PHP.
Manual instrumentation for OpenTelemetry PHP
Learn how the context API works in instrumented applications.
Context propagation for the PHP API
Instrumentation libraries, exporters and other useful components for OpenTelemetry PHP
이 페이지가 도움이 되었나요?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!