contrib/aws/aws-sdk-go/aws
Those integration are enabled by having the
following import
in the project’s orchestrion.tool.go
file:
import (
_ "github.com/DataDog/orchestrion"
_ "gopkg.in/DataDog/dd-trace-go.v1/contrib/aws/aws-sdk-go/aws" // integration
//...
)
The official AWS SDK for Go
session.NewSession
Call to
session.NewSession
Replace the expression using the template:
// Using the following synthetic imports:
import (
awstrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/aws/aws-sdk-go/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
}({{ . }})