github.com/aws/aws-sdk-go-v2
AWS SDK for the Go programming language.
Append tracing middleware to the aws.Config struct literal (value)
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 "gopkg.in/DataDog/dd-trace-go.v1/contrib/aws/aws-sdk-go-v2/aws"
)
func(cfg aws.Config) (aws.Config) {
awstrace.AppendMiddleware(&cfg)
return cfg
}({{ . }})
Append tracing middleware to the aws.Config struct literal (pointer) or initialized through aws.NewConfig
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 "gopkg.in/DataDog/dd-trace-go.v1/contrib/aws/aws-sdk-go-v2/aws"
)
func(cfg *aws.Config) (*aws.Config) {
awstrace.AppendMiddleware(cfg)
return cfg
}({{ . }})