Tracing AWS SDK client calls
bonclay7 opened this issue · 3 comments
bonclay7 commented
Hi !
Moving from instrumenting with X-Ray, I was wondering if there was any support for automatic tracing around AWS SDK like the following example
svc := secretsmanager.New(session.New(&aws.Config{Region: aws.String(region)}))
xray.AWS(svc.Client)
ctx, seg := xray.BeginSegment(context.Background(), "payforadoptions")
res, err := svc.GetSecretValueWithContext(ctx, &secretsmanager.GetSecretValueInput{
SecretId: aws.String(secretID),
})
seg.Close(nil)
Thanks
bhautikpip commented
Hi @bonclay7 ,
Thanks for opening up an issue. We currently don't support Tracing AWS SDK client calls for AWS OTel Go. I will mark this issue as a feature request and I would also recommend you to create an issue in Upstream Open Telemetry Go Contrib Repo as well.
bonclay7 commented
Thanks ! I saw this feature request open there as well open-telemetry/opentelemetry-go-contrib#81
bhautikpip commented
AWS SDK v2 support is released in upstream OTel Go repo: open-telemetry/opentelemetry-go-contrib#621 so closing this issue.