go-oc-aws-tracing
To be able to trace requests and responses to AWS services using OpenCensus, I wrote go-oc-aws-tracing.
This package will wrap the standard AWS Session, so it can be used as normal with the AWS SDK.
import aws_trace "github.com/lonnblad/go-oc-aws-tracing"
cfg: = aws.NewConfig().WithRegion("us-west-2")
sess: = session.Must(session.NewSession(cfg))
sess = aws_trace.WrapSession(sess)
s3api: = s3.New(sess)
s3api.CreateBucket( & s3.CreateBucketInput {
Bucket: aws.String("some-bucket-name"),
})
Read other posts