Do not set component in AWS instrumentation that later get rewritten anyway
This commit is contained in:
parent
6f05cff023
commit
465e237522
|
@ -56,11 +56,9 @@ public class TracingRequestHandler extends RequestHandler2 {
|
|||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void beforeRequest(final Request<?> request) {
|
||||
// Note: not setting Component tag here because it is always set by SpanDecorator
|
||||
final Tracer.SpanBuilder spanBuilder =
|
||||
tracer
|
||||
.buildSpan("aws.command")
|
||||
.withTag(Tags.COMPONENT.getKey(), "aws-sdk")
|
||||
.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT);
|
||||
tracer.buildSpan("aws.command").withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT);
|
||||
|
||||
if (parentContext != null) {
|
||||
spanBuilder.asChildOf(parentContext);
|
||||
|
|
Loading…
Reference in New Issue