Skip to content

RabbitMQ tracing.attribute-headers not set in Otel Spans #3367

@Crustack

Description

@Crustack

Maybe I am mistaken, but it seems the mp.messaging.[incoming/outgoing].*.tracing.attribute-headers does not work anymore?
I tried setting it in an example application, the custom header is also present in the internally created RabbitMQTrace but its not set in the OpenTelemetry span.

In the codebase I also can't find any usage of RabbitMQConnectorCommonConfiguration.getTracingAttributeHeaders() anywhere.
It was used in First commit of rabbitmq connector (b1e6ad8) but all usages have later been removed by Use OpenTelemetry Instrumenter (2d48857)

I guess it should be used here?

public void onStart(
final AttributesBuilder attributes,
final Context parentContext, final RabbitMQTrace rabbitMQTrace) {
attributes.put(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, rabbitMQTrace.getRoutingKey());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions