github.com/aws/aws-sdk-go

github.com/aws/aws-sdk-go

The official AWS SDK for Go

Wrap session.NewSession

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