Do not set component in AWS instrumentation that later get rewritten anyway
MODIFY
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/TracingRequestHandler.java
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/TracingRequestHandler.java
@@ -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);

Do not set component in AWS instrumentation that later get rewritten anyway