Skip to content

[BUG] Tracing is broken for EventHub binder #23035

Closed

Description

Describe the bug
Following the eventhub binder app doc with tracing enabled: message span is not correlated to incoming request.

This is a reactor context propagation issue and we'd need to find

  • way to manually pass context (if possible)
  • make magical propagation work

This issue is mostly created for investigation purposes.

It does not affect non-binder scenario (e.g. this one)

To Reproduce

  1. create sample app
  2. add application insights agent and configure azure sdk tracing
  3. send/receive/process message
  4. check message span - it is not correlated to the incoming request

Expected behavior
message span is created as a child of incoming request.

Screenshots

Actual: Two traces (with 2 trace-ids)

image

image

Expected: 1 trace (created without binder)

image

Setup (please complete the following information):

  • OS: windows
  • IDE: IntelliJ
  • Library/Libraries: com.azure:azure-core:1.17.0, com.azure:azure-core:1.17.0, com.azure:azure-core-tracing-opentelemetry:1.0.0-beta12, com.azure.spring:azure-spring-cloud-stream-binder-eventhubs:2.5.0, applicationinsights-agent-3.1.1

Additional context
Context is available when sending messages to supply sink

image

But lost when a message is instrumented

image

Stacktrace shows the attempt of otel agent to propagate reactor context, but it's not successful.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.OpenTelemetryOpenTelemetry instrumentationazure-springAll azure-spring related issuesazure-spring-eventhubsSpring event hubs related issues.bugThis issue requires a change to an existing behavior in the product in order to be resolved.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions