Download the PHP package open-telemetry/opentelemetry-propagation-server-timing without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-propagation-server-timing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-propagation-server-timing
More information about open-telemetry/opentelemetry-propagation-server-timing
Files in open-telemetry/opentelemetry-propagation-server-timing
Package opentelemetry-propagation-server-timing
Short Description OpenTelemetry server-timing propagator.
License Apache-2.0
Homepage https://opentelemetry.io/docs/php
Informations about the package opentelemetry-propagation-server-timing
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry ServerTiming Propagator
This package provides a Server-Timing propagator to inject the current span context into Response datastructures.
The main goal is to allow client-side technology (Real User Monitoring, HTTP Clients) to record the server side context in order to allow referencing it.
Server-Timing response headers are especially useful for this approach, as they are accessible on the client side, even for the initial page load.
Requirements
- OpenTelemetry SDK and exporters (required to actually export traces)
Optional:
- OpenTelemetry extension (Some instrumentations can automatically use the
TraceResponsePropagator
)
Usage
Assuming there is an active SpanContext
, you can inject it into your response as follows:
Installation via composer
Installing dependencies and executing tests
From TraceResponse subdirectory: