From d99c2ad24067200f95d56cb9d21c45d1ab37b5ec Mon Sep 17 00:00:00 2001 From: Laplie Anderson Date: Thu, 5 Mar 2020 17:47:03 -0500 Subject: [PATCH] Remove aws-sdk check --- .../CommonsHttpClientInstrumentation.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dd-java-agent/instrumentation/commons-httpclient-3/src/main/java/datadog/trace/instrumentation/commonshttpclient/CommonsHttpClientInstrumentation.java b/dd-java-agent/instrumentation/commons-httpclient-3/src/main/java/datadog/trace/instrumentation/commonshttpclient/CommonsHttpClientInstrumentation.java index 85f695b0e3..f42a294ddf 100644 --- a/dd-java-agent/instrumentation/commons-httpclient-3/src/main/java/datadog/trace/instrumentation/commonshttpclient/CommonsHttpClientInstrumentation.java +++ b/dd-java-agent/instrumentation/commons-httpclient-3/src/main/java/datadog/trace/instrumentation/commonshttpclient/CommonsHttpClientInstrumentation.java @@ -80,13 +80,8 @@ public class CommonsHttpClientInstrumentation extends Instrumenter.Default { DECORATE.afterStart(span); DECORATE.onRequest(span, httpMethod); + propagate().inject(span, httpMethod, SETTER); - final boolean awsClientCall = - httpMethod.getRequestHeaders("amz-sdk-invocation-id").length > 0; - // AWS calls are often signed, so we can't add headers without breaking the signature. - if (!awsClientCall) { - propagate().inject(span, httpMethod, SETTER); - } return scope; }