Remove aws-sdk check

This commit is contained in:
Laplie Anderson 2020-03-05 17:47:03 -05:00
parent c13436d5e4
commit d99c2ad240
1 changed files with 1 additions and 6 deletions

View File

@ -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;
}