github.com/aws/aws-sdk-go-v2

github.com/aws/aws-sdk-go-v2

AWS SDK for the Go programming language.

Append tracing middleware to the aws.Config struct literal (value)

Join Point
Struct literal aws.Config
  • Value
Advice
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

Join Point
One of
Advice
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
}({{ . }})