withTracing
Wraps an existing connection with OpenTelemetry instrumentation.
This extension function allows you to add tracing to an existing AMQP connection. All channels opened through the wrapped connection will automatically be traced.
Return
An instrumented AMQPConnection that wraps this connection.
Parameters
The OpenTelemetry tracer to use for creating spans.
Configuration for tracing behavior. Defaults to TracingConfig.default.
Samples
Wraps an existing channel with OpenTelemetry instrumentation.
This extension function allows you to add tracing to an existing AMQP channel. All publish and consume operations will automatically be traced.
Return
An instrumented AMQPChannel that wraps this channel.
Parameters
The OpenTelemetry tracer to use for creating spans.
Configuration for tracing behavior. Defaults to TracingConfig.default.