dd-trace-go
dd-trace-go copied to clipboard
contrib/aws/aws-sdk-go-v2/aws: Adding LoadOptionsFunc implementation
What does this PR do?
Addresses #2094 by adding a WithDataDogTracer func that adheres to the AWS SDK Go V2 config.LoadOptionFunc type.
Motivation
I need to be able to configure the DD Tracer without directly having access to a config type.
Describe how to test/QA your changes
It functions identically to the current AppendMiddleware func, but appends to the APIOptions present on the LoadOptions type instead of the config type directly.
Reviewer's Checklist
- [ ] Changed code has unit tests for its functionality.
- [ ] If this interacts with the agent in a new way, a system test has been added.