Skip to content

refactor: move example from otelmux to make it a testable example #7121

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

noetarbouriech
Copy link

@noetarbouriech noetarbouriech commented Apr 2, 2025

Resolves #7064

I simply moved the old example to have it shown on the pkg.go.dev page. It will require testing for metrics in the future.

@noetarbouriech noetarbouriech requested a review from a team as a code owner April 2, 2025 16:24
Copy link

linux-foundation-easycla bot commented Apr 2, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot requested a review from akats7 April 2, 2025 16:24
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.0%. Comparing base (2a6af7d) to head (673a0af).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #7121     +/-   ##
=======================================
+ Coverage   75.8%   76.0%   +0.1%     
=======================================
  Files        207     206      -1     
  Lines      19484   19445     -39     
=======================================
+ Hits       14780   14783      +3     
+ Misses      4267    4226     -41     
+ Partials     437     436      -1     

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@noetarbouriech noetarbouriech changed the title refactor(example): move example to make it a testable example refactor: move example from otelmux to make it a testable example Apr 2, 2025
@@ -11,11 +11,18 @@ require (
go.opentelemetry.io/otel/trace v1.35.0
)

require (
github.com/google/uuid v1.6.0 // indirect
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
Copy link
Contributor

Choose a reason for hiding this comment

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

@noetarbouriech this go.mod does not seem up to date, can you run go mod tidy

Copy link
Author

Choose a reason for hiding this comment

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

Oops, sorry my bad. It should be fine now.

Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

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

Could you fix the conflicts?

go.opentelemetry.io/otel/trace v1.35.0
)

require (
Copy link
Member

Choose a reason for hiding this comment

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

Did Go generate this change, or did you manually update the file?
It's a bit weird to have a new section for indirect dependencies, and a direct one within indirects.

You should generate go.mod with go mod tidy, not need to update it manually.

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.

Example for otelmux
4 participants