contrib/aws/aws-sdk-go-v2/v2/aws
Those integration are enabled by having the
following import in the project’s orchestrion.tool.go file:
import (
_ "github.com/DataDog/orchestrion"
_ "github.com/DataDog/dd-trace-go/contrib/aws/aws-sdk-go-v2/v2/aws" // integration
//...
)The official AWS SDK for Go
Config
Struct literal
aws.Config- Value
Replace the expression using the template:
// Using the following synthetic imports:
import (
aws "github.com/aws/aws-sdk-go-v2/aws"
awstrace "github.com/DataDog/dd-trace-go/contrib/aws/aws-sdk-go-v2/v2/aws"
)func(cfg aws.Config) (aws.Config) {
awstrace.AppendMiddleware(&cfg)
return cfg
}({{ . }})*Config
One of
- Struct literal
aws.Config- Pointer
- Call to
aws.NewConfig
Replace the expression using the template:
// Using the following synthetic imports:
import (
aws "github.com/aws/aws-sdk-go-v2/aws"
awstrace "github.com/DataDog/dd-trace-go/contrib/aws/aws-sdk-go-v2/v2/aws"
)func(cfg *aws.Config) (*aws.Config) {
awstrace.AppendMiddleware(cfg)
return cfg
}({{ . }})