Download the PHP package open-telemetry/opentelemetry-propagation-traceresponse without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-propagation-traceresponse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-propagation-traceresponse
More information about open-telemetry/opentelemetry-propagation-traceresponse
Files in open-telemetry/opentelemetry-propagation-traceresponse
Package opentelemetry-propagation-traceresponse
Short Description OpenTelemetry traceresponse propagator.
License Apache-2.0
Homepage https://opentelemetry.io/docs/php
Informations about the package opentelemetry-propagation-traceresponse
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry TraceResponse Propagator
Note: This package is experimental as traceresponse
is currently an editors' draft.
This package provides a Trace Context HTTP Response Headers Format 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.
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: