Download the PHP package open-telemetry/opentelemetry-auto-ext-amqp without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-auto-ext-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-auto-ext-amqp
More information about open-telemetry/opentelemetry-auto-ext-amqp
Files in open-telemetry/opentelemetry-auto-ext-amqp
Package opentelemetry-auto-ext-amqp
Short Description OpenTelemetry auto-instrumentation for ext-amqp
License Apache-2.0
Homepage https://opentelemetry.io/docs/php
Informations about the package opentelemetry-auto-ext-amqp
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry ext-amqp auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Overview
Auto-instrumentation hooks are registered via composer, and spans will automatically be created for the following methods:
AMQPExchange::publish
AMQPQueue::ack
AMQPQueue::nack
AMQPQueue::reject
The instrumentation automatically creates a span for each of the above methods and injects the span context into the message headers. A consumer SHOULD create a span for each message received, extract the span context and can decide to assume the context for processing the message or start a new trace and use trace-links to link the producer with the consumer.
Example
Full Example: https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/php-amqp/worker.php
Configuration
The extension can be disabled via runtime configuration:
All versions of opentelemetry-auto-ext-amqp with dependencies
composer-runtime-api Version ^2.0
ext-amqp Version *
ext-opentelemetry Version *
open-telemetry/api Version ^1
open-telemetry/sem-conv Version ^1.24