Skip to content

Add REST client headers as attributes to OpenTelemetry span for REST call #44256

Answered by brunobat
svifred asked this question in Q&A
Discussion options

You must be logged in to vote

That is a feature that was never implemented of the REST client implementations. @svifred can you please create an issue with from this discussion?

Th implementation should be straight forward.
We need to create the new properties to control the feature and add attributes to the span in this class:

public class OpenTelemetryClientFilter implements ClientRequestFilter, ClientResponseFilter {

and this one as well:

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@geoand
Comment options

Comment options

You must be logged in to vote
1 reply
@svifred
Comment options

Answer selected by svifred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment