Skip to content
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

Merged
merged 6 commits into from
Aug 7, 2024

Conversation

RomainMuller
Copy link
Contributor

Wrap the *session.Session value returned by session.NewSession to add tracing instrumentation.

Wrap the `*session.Session` value returned by `session.NewSession` to
add tracing instrumentation.
@RomainMuller RomainMuller requested a review from a team as a code owner August 6, 2024 15:07
…EC-53276/aws-sdk

# Conflicts:
#	internal/injector/builtin/generated.go
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 61.40%. Comparing base (8be570b) to head (db566da).

Files Patch % Lines
_integration-tests/utils/containerlogs.go 0.00% 6 Missing ⚠️
_integration-tests/utils/agent/agent.go 0.00% 4 Missing ⚠️
_integration-tests/validator/trace/diff.go 0.00% 1 Missing ⚠️
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              
Flag Coverage Δ
ARM64 44.40% <ø> (ø)
Linux 66.33% <0.00%> (-0.12%) ⬇️
Windows 43.09% <ø> (ø)
X64 61.40% <0.00%> (-0.09%) ⬇️
generator 42.87% <ø> (ø)
go1.21 52.91% <0.00%> (-0.02%) ⬇️
go1.22 50.67% <0.00%> (-0.08%) ⬇️
go1.23 49.43% <0.00%> (-0.08%) ⬇️
integration 45.78% <ø> (ø)
macOS 44.40% <ø> (ø)
unit 39.91% <0.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@darccio darccio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +22 to +27
func(sess *session.Session, err error) (*session.Session, error) {
if sess != nil {
sess = awstrace.WrapSession(sess)
}
return sess, err
}({{ . }})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@RomainMuller RomainMuller enabled auto-merge August 7, 2024 10:48
@RomainMuller RomainMuller added this pull request to the merge queue Aug 7, 2024
Merged via the queue into main with commit 8c8bd98 Aug 7, 2024
24 checks passed
@RomainMuller RomainMuller deleted the romain.marcadier/APPSEC-53276/aws-sdk branch August 7, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants