Skip to content

Configure span name extractor in java-http-client javaagent instrumentation #12139

Answered by trask
ArtyomGabeev asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to distinguish spans in SpanProcessor produced by specific instrumentation?

yes, you can check the instrumentation scope name, e.g. span.getInstrumentationScopeInfo().getName()

If I understand correctly, I cannot access the original request URI in SpanProcessor.

you can! check span.getAttribute(UrlAttributes.URL_FULL)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ArtyomGabeev
Comment options

@trask
Comment options

Answer selected by ArtyomGabeev
@ArtyomGabeev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants