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

chore: upgrade to otel go v1.34.0 #246

Merged
merged 3 commits into from
Feb 28, 2025
Merged

chore: upgrade to otel go v1.34.0 #246

merged 3 commits into from
Feb 28, 2025

Conversation

tim-mwangi
Copy link
Collaborator

Description

Upgrade to otel go v1.34.0

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.18%. Comparing base (0f0b04d) to head (ea76ef2).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@varkey98 varkey98 left a 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

@tim-mwangi
Copy link
Collaborator Author

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
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@tim-mwangi tim-mwangi merged commit 3c942da into main Feb 28, 2025
6 of 7 checks passed
@tim-mwangi tim-mwangi deleted the otel-v1.34.0 branch February 28, 2025 16:42
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