Skip to content

Deprecate ReadBytesKey, ReadErrorKey, WroteBytesKey and WriteErrorKey in favor of semconv keys#8435

Open
Rxfa wants to merge 26 commits intoopen-telemetry:mainfrom
Rxfa:8130-deprecate-otelhttp
Open

Deprecate ReadBytesKey, ReadErrorKey, WroteBytesKey and WriteErrorKey in favor of semconv keys#8435
Rxfa wants to merge 26 commits intoopen-telemetry:mainfrom
Rxfa:8130-deprecate-otelhttp

Conversation

@Rxfa
Copy link
Copy Markdown

@Rxfa Rxfa commented Jan 19, 2026

Partial Fix for #8130

…and WriteErrorKey in favor of semconv keys

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
@Rxfa Rxfa requested review from a team and dmathieu as code owners January 19, 2026 21:27
Signed-off-by: rxfa <rafa3rnrn@gmail.com>
Copy link
Copy Markdown
Member

@flc1125 flc1125 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 add some unit tests for the new attributes

Rxfa and others added 5 commits January 20, 2026 17:45
Co-authored-by: Flc゛ <i@flc.io>
…o the appropriate section

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
…and the new semconv read/write attributes

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
…d entries

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
@Rxfa Rxfa requested a review from flc1125 January 21, 2026 21:44
Copy link
Copy Markdown
Member

@flc1125 flc1125 left a comment

Choose a reason for hiding this comment

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

After this adjustment, LGTM.

@pellared pellared added this to the v1.40.0 milestone Jan 23, 2026
Rxfa added 3 commits January 23, 2026 19:31
…TTP attribute keys instead of helpers

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.2%. Comparing base (b228c0f) to head (6151963).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #8435   +/-   ##
=====================================
  Coverage   82.2%   82.2%           
=====================================
  Files        182     182           
  Lines      13766   13774    +8     
=====================================
+ Hits       11316   11326   +10     
- Misses      2048    2049    +1     
+ Partials     402     399    -3     
Files with missing lines Coverage Δ
instrumentation/net/http/otelhttp/common.go 100.0% <ø> (ø)
instrumentation/net/http/otelhttp/handler.go 97.5% <100.0%> (+5.4%) ⬆️

... and 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.

@MrAlias MrAlias modified the milestones: v1.40.0, v1.41.0 Jan 29, 2026
@MrAlias
Copy link
Copy Markdown
Contributor

MrAlias commented Feb 19, 2026

@Rxfa are you still able to work on this?

@Rxfa
Copy link
Copy Markdown
Author

Rxfa commented Feb 23, 2026

@Rxfa are you still able to work on this?

Hey, I'm still able to work on this.

I believe I addressed all feedback, and I'm awaiting further instructions if there's a reason for the PR not to be approved and merged.

@flc1125
Copy link
Copy Markdown
Member

flc1125 commented Feb 24, 2026

@Rxfa Please resolve the conflicts and make sure the CI passes.

@flc1125
Copy link
Copy Markdown
Member

flc1125 commented Feb 25, 2026

@Rxfa PTAL, The change log needs to be located below the "Unreleased" section.

@MrAlias MrAlias modified the milestones: v1.41.0, v1.42.0 Feb 26, 2026
@pellared
Copy link
Copy Markdown
Member

pellared commented Mar 4, 2026

@Rxfa, sorry for inconvenience, but can I ask you again to resolve the conflicts and make sure the CI passes?

Rxfa and others added 2 commits March 6, 2026 02:28
@Rxfa
Copy link
Copy Markdown
Author

Rxfa commented Mar 6, 2026

@Rxfa, sorry for inconvenience, but can I ask you again to resolve the conflicts and make sure the CI passes?

It should be fixed now.

@dmathieu dmathieu requested a review from pellared March 6, 2026 12:54
CHANGELOG.md Outdated
### Added

- Add environment variables propagation carrier in `go.opentelemetry.io/contrib/propagators/envcar`. (#8442)
- Added semantic convention attribute keys `HTTPRequestBodySizeKey`,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be two entries, one "Changed" that we are emitting "x.y" instead of "a.b" per semantic conventions, second "Deprecated" about the deprecation of the constants

Copy link
Copy Markdown
Author

@Rxfa Rxfa Mar 6, 2026

Choose a reason for hiding this comment

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

Regarding the entry under "Changed", you mean something similar to what can be seen here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Similar to

- The semantic conventions v1.39.0 release introduces breaking changes, including:
- `rpc` span and metric attributes have been renamed to align with naming guidelines:
- `rpc.system``rpc.system.name` (values: `grpc`, `grpc_web`, `connectrpc`, `thrift`, `dubbo`, etc.)
- `rpc.method` and `rpc.service` have been merged into a fully-qualified `rpc.method` attribute
- `rpc.client|server.duration``rpc.client|server.call.duration` (unit changed to seconds)
- `rpc.grpc.request.metadata`/`rpc.grpc.response.metadata``rpc.request.metadata`/`rpc.response.metadata`
- `rpc.grpc.status_code` → deprecated in favor of `rpc.response.status_code`

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Just pushed a commit addressing this. Please LMK if it looks good now

Rxfa added 6 commits March 6, 2026 15:28
Signed-off-by: rxfa <rafa3rnrn@gmail.com>
…from "added" to "changed" and "deprecated"

Signed-off-by: rxfa <rafa3rnrn@gmail.com>
Signed-off-by: rxfa <rafa3rnrn@gmail.com>
Signed-off-by: rxfa <rafa3rnrn@gmail.com>
@pellared pellared modified the milestones: v1.42.0, v1.43.0 Mar 6, 2026
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.

6 participants