contrib/aws/aws-sdk-go/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/aws" // integration
//...
)The official AWS SDK for Go
session.NewSession
Call to
session.NewSessionReplace the expression using the template:
// Using the following synthetic imports:
import (
awstrace "github.com/DataDog/dd-trace-go/contrib/aws/aws-sdk-go/v2/aws"
session "github.com/aws/aws-sdk-go/aws/session"
)func(sess *session.Session, err error) (*session.Session, error) {
if sess != nil {
sess = awstrace.WrapSession(sess)
}
return sess, err
}({{ . }})