Skip to content

feat: update to otelgo v1.20#222

Merged
ryanericson merged 3 commits intohypertrace:mainfrom
varkey98:main
Nov 16, 2023
Merged

feat: update to otelgo v1.20#222
ryanericson merged 3 commits intohypertrace:mainfrom
varkey98:main

Conversation

@varkey98
Copy link
Copy Markdown
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

@codecov
Copy link
Copy Markdown

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.

Comment thread go.mod Outdated
Comment thread go.mod Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 :(

Comment thread go.mod
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
Copy Markdown
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
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