Skip to content

Lack of Trace Context/Span Propagation in Asynchronous Reactive Operations #6272

Open
@ahmadwrites

Description

@ahmadwrites

Description

I am encountering an issue where trace context is not being properly propagated across asynchronous reactive operations in my WebFlux service. Currently using the dd-trace-java library for distributed tracing.

Issue Details

  • Library Version: 1.24.2
  • Framework/Technology: Spring WebFlux (Spring Doc 2.2.0)
  • Java version: 17

Bug

Our endpoint service/flow contains multiple reactive operation chaining which makes asynchronous requests to other services. We expect to receive one traceId containing spans of all these different operations, but understandably they are broken down into separate traceIds, primarily in netty.request and others being propagated at http.request in DataDog. Ideally we would want to be able to view these as spans in one traceId, as it is being initiated by that flow/endpoint. As such, we are not receiving full/continuous observability while using WebFlux in our project. Is there a way to correlate all spans together in one trace, without manually defining each span in sections of the reactive code?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions