Skip to content

Conversation

@dogedede
Copy link

@dogedede dogedede commented Nov 7, 2025

Fixes #8134
Changes the Version() definition in the otelhttp package from a function to a constant string for simplicity and consistency.

@dogedede dogedede requested review from a team and dmathieu as code owners November 7, 2025 12:37
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 7, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@dogedede
Copy link
Author

dogedede commented Nov 7, 2025

Apologies, I've updated the changelog.md.

CHANGELOG.md Outdated

### Changed

- Change `Version()` function in `otelhttp` package to a `const Version` string. (#8134)
Copy link
Member

Choose a reason for hiding this comment

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

Changelog entries need to be at the beginning of the file. Not its end.

Copy link
Member

Choose a reason for hiding this comment

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

Buddy, look at the content of the file. You can surely see your last commit is also wrong.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry for the laughably silly mix-up , I’ve moved the content to the right place.

@codecov
Copy link

codecov bot commented Nov 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.8%. Comparing base (79904a3) to head (50d5f27).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #8142     +/-   ##
=======================================
- Coverage   81.8%   81.8%   -0.1%     
=======================================
  Files        194     193      -1     
  Lines      13362   13360      -2     
=======================================
- Hits       10931   10929      -2     
  Misses      2033    2033             
  Partials     398     398             
Files with missing lines Coverage Δ
instrumentation/net/http/otelhttp/common.go 100.0% <100.0%> (ø)
instrumentation/net/http/otelhttp/config.go 82.0% <100.0%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

otelhttp: func Version() string should just be const Version string

2 participants