-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support instrumentation of github.com/aws/aws-sdk-go/aws
#209
Conversation
Wrap the `*session.Session` value returned by `session.NewSession` to add tracing instrumentation.
…EC-53276/aws-sdk # Conflicts: # internal/injector/builtin/generated.go
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #209 +/- ##
==========================================
- Coverage 61.49% 61.40% -0.09%
==========================================
Files 90 91 +1
Lines 4820 4827 +7
==========================================
Hits 2964 2964
- Misses 1530 1537 +7
Partials 326 326
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
func(sess *session.Session, err error) (*session.Session, error) { | ||
if sess != nil { | ||
sess = awstrace.WrapSession(sess) | ||
} | ||
return sess, err | ||
}({{ . }}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
Wrap the
*session.Session
value returned bysession.NewSession
to add tracing instrumentation.