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: update to otelgo v1.20 #222

Merged
merged 3 commits into from
Nov 16, 2023
Merged

feat: update to otelgo v1.20 #222

merged 3 commits into from
Nov 16, 2023

Conversation

varkey98
Copy link
Contributor

@varkey98 varkey98 commented Nov 15, 2023

Upgrading otel libraries to 1.20 because of vulnerability

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c2853ab) 59.03% compared to head (670d101) 59.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #222   +/-   ##
=======================================
  Coverage   59.03%   59.03%           
=======================================
  Files          55       55           
  Lines        2248     2248           
=======================================
  Hits         1327     1327           
  Misses        861      861           
  Partials       60       60           

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

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@@ -23,11 +23,10 @@ require (
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.20.0 // indirect
go.opentelemetry.io/otel v1.20.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.43.0 // indirect
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think you need to rerun go mod tidy in these sub folders? eg. go.opentelemetry.io/contrib/propagators/b3 v1.20.0 should be at 1.21.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran make tidy, let me try running go mod tidy on each of them one by one

Copy link
Contributor Author

@varkey98 varkey98 Nov 15, 2023

Choose a reason for hiding this comment

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

no changes after individual run either. I think your diff is not showing all the commits

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh i did not realize you can not updated the go.opentelemetry.io/contrib/propagators/b3 to v1.21.0

go.mod Outdated
@@ -21,10 +21,10 @@ require (
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0
go.opentelemetry.io/contrib/propagators/b3 v1.20.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be 1.21.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its 21 right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/propagators%2Fb3%2Fv1.21.0 otel go and contrib versions are all over the place :( eg for contrib https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.21.0 - Release v1.21.0/v0.46.0/v0.15.0/v0.1.0 Depending on the module it can be one of those

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, different packages follow different versioning :(

go.opentelemetry.io/otel/trace v1.19.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0
go.opentelemetry.io/contrib/propagators/b3 v1.21.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tim-mwangi but its already 1.21.0

@ryanericson ryanericson merged commit ce4d775 into hypertrace:main Nov 16, 2023
4 of 6 checks passed
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.

3 participants