Configure span name extractor in java-http-client javaagent instrumentation #12139
-
Hi everyone, I'm using javaagent based instrumentation and want to configure in a single place spanNameExtractor, which is available only in library instrumentation: Are there plans to allow to it for javaagent instrumentation e.g. by allowing to specify class name + reflection. Or may be you can tell me, if it's possible to configure javaagent instrumentation via extensions: But looks like majority of factories are private ones. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hi @ArtyomGabeev, can you achieve the span name modifications you need using a SpanProcessor? |
Beta Was this translation helpful? Give feedback.
yes, you can check the instrumentation scope name, e.g.
span.getInstrumentationScopeInfo().getName()
you can! check
span.getAttribute(UrlAttributes.URL_FULL)