Set WebClient Observation as current in reactor context #29891
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
theme: observability
An issue related to observability and tracing
type: bug
A general bug
Milestone
In
DefaultWebClient
, theObservation
instrumentation creates a new observation and uses the current observation in the reactor context as the parent. This is useful for recording metrics and sending tracing information over the wire.The current implementation wrongly assumes that there is no other instrumentation in the chain; Reactor Netty
HttpClient
is itself instrumented and looks into the reactor context for a parent observation but won't find the observation we have created.DefaultWebClient
should set the newly created client observation as the current observation in the reactor context by usingcontextWrite
for downstream operators.The text was updated successfully, but these errors were encountered: