-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to override remoteServiceName in ObservationFilter #598
Comments
Why do you think this should be done via an The way to do it as late as possible would be to call a |
Right now it is not possible to set the
remoteServiceName
of aSpan
through anObservation.Context
(SenderContext
) using anObservationFilter
since theremoteServiceName
is set on theSpan
before theObservationFilter
is called.(In
PropagatingSenderTracingObservationHandler
is set on theSpan
from theonStart
method whileObservationFilter
is called fromonStop
.)Here's what happens:
SenderContext
and theObservation
is created, at this point the instrumentation should know theremoteServiceName
.Observation
is started andPropagatingSenderTracingObservationHandler
'sonStart
method is called.PropagatingSenderTracingObservationHandler
setsremoteServiceName
on theSpan
.Observation
is stopped and theObservationFilter
is called.ObservationFilter
modifies theremoteServiceName
, it has no effect since it is called afterremoteServiceName
was set on theSpan
.This is true for
remoteServiceAddress
andremoteIpAndPort
too.Also see: spring-projects/spring-boot#39432
The text was updated successfully, but these errors were encountered: