-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: upgrade to otel go v1.34.0 #246
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #246 +/- ##
==========================================
+ Coverage 61.16% 61.18% +0.02%
==========================================
Files 59 59
Lines 2688 2690 +2
==========================================
+ Hits 1644 1646 +2
Misses 964 964
Partials 80 80 ☔ 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.
Not in this pr, but I think we should exclude the examples from static analysis
Yeah. Or fix/ignore whichever errors can be ignored. |
@@ -280,6 +280,7 @@ func (bsp *batchSpanProcessor) exportSpans(ctx context.Context) error { | |||
// | |||
// It is up to the exporter to implement any type of retry logic if a batch is failing | |||
// to be exported, since it is specific to the protocol and backend being sent to. | |||
clear(bsp.batch) // Erase elements to let GC collect objects |
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.
Just for my understanding here, aren't we emptying the list anyways at the next line?
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.
Not quite. https://pkg.go.dev/builtin#clear. Clear maintains the length but sets the values to the zero values of the type in the slice.
Description
Upgrade to otel go v1.34.0