withTracing

fun <Error class: unknown class>.withTracing(tracer: <Error class: unknown class>, tracingConfig: TracingConfig = TracingConfig.default()): <Error class: unknown class>

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

tracer

The OpenTelemetry tracer to use for creating spans.

tracingConfig

Configuration for tracing behavior. Defaults to TracingConfig.default.

Samples


fun <Error class: unknown class>.withTracing(tracer: <Error class: unknown class>, tracingConfig: TracingConfig = TracingConfig.default()): <Error class: unknown class>

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

tracer

The OpenTelemetry tracer to use for creating spans.

tracingConfig

Configuration for tracing behavior. Defaults to TracingConfig.default.

Samples