Skip to content

[BUG] Current trace context not recognized on first call to ServiceBusSenderClient.sendMessage() #44958

@ragnaroh-nrk

Description

@ragnaroh-nrk

Describe the bug
The first call to ServiceBusSenderClient.sendMessage() does not recognize the current tracing context, and thus the span created when sending a message gets a new trace ID.

To Reproduce
See this repo: https://github.com/ragnaroh-nrk/azure-service-bus-tracing-issue

Expected behavior
The span created when sending a message should get the same trace ID as the current trace context.

Screenshots
Image

Setup (please complete the following information):

  • OS: iOS
  • IDE: IntelliJ
  • Library/Libraries: com.azure:azure-core-tracing-opentelemetry:1.0.0-beta.56
  • Java version: 21
  • App Server/Environment: Tomcat
  • Frameworks: Spring Boot

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Labels

OpenTelemetryOpenTelemetry instrumentationService BusServiceBusTrack2This label is to manage work item for track 2.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions