aws / aws-xray-sdk-go

AWS X-Ray SDK for the Go programming language.
Apache License 2.0
278 stars 117 forks source link

Add test for respecting manually set aws sdk headers #268

Open willarmiros opened 3 years ago

willarmiros commented 3 years ago

Description of changes: Adds a unit test to verify that we respect if a customer manually sets their Trace Header for an AWS SDK request, and don't overwrite it with our own header. This is for cases like SFN which are long-running and may require the customer to pass in custom headers which correspond to a particular in-flight execution.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

willarmiros commented 3 years ago

CI failing because of deprecated commands, will rerun after fix.

willarmiros commented 3 years ago

Discussing with AWS SDK team whether this PR reflects desired behavior - will need to wait on merging.