Search before reporting
Read release policy
User environment
- Pulsar Java client with OpenTelemetry tracing enabled.
- Observed from the current master branch code path.
- This issue is not tied to a specific broker OS or deployment environment.
Issue Description
When OpenTelemetry tracing is enabled, consumer spans for multi-topic consumers can use the internal consumer topic name instead of the actual topic of the consumed message.
For example, the span name and messaging.destination.name can contain:
instead of the real Pulsar topic or partition topic that the message came from.
This makes traces misleading because users cannot see the actual message source topic from the consumer span.
Error messages
No error messages or stack traces are emitted. The issue is incorrect OpenTelemetry span metadata.
Reproducing the issue
- Enable OpenTelemetry tracing in the Pulsar Java client.
- Create a consumer subscribed to multiple topics.
- Receive and acknowledge a message.
- Inspect the exported consumer span.
Actual result:
span name = process MultiTopicsConsumer-*
messaging.destination.name = MultiTopicsConsumer-*
Expected result:
span name = process <actual-message-topic>
messaging.destination.name = <actual-message-topic>
Additional information
A fix is proposed in #25894.
Are you willing to submit a PR?
Search before reporting
Read release policy
User environment
Issue Description
When OpenTelemetry tracing is enabled, consumer spans for multi-topic consumers can use the internal consumer topic name instead of the actual topic of the consumed message.
For example, the span name and
messaging.destination.namecan contain:instead of the real Pulsar topic or partition topic that the message came from.
This makes traces misleading because users cannot see the actual message source topic from the consumer span.
Error messages
No error messages or stack traces are emitted. The issue is incorrect OpenTelemetry span metadata.
Reproducing the issue
Actual result:
Expected result:
Additional information
A fix is proposed in #25894.
Are you willing to submit a PR?