Skip to content

opentelemetry-sdk: use stable code attributes #4508

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

Merged
merged 6 commits into from
Apr 23, 2025

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Mar 26, 2025

Description

Instead of using the deprecated attributes use stable candidate code attributes.
While at it stop using SpanAttributes.

This is similar to what the go sdk is doing open-telemetry/opentelemetry-go-contrib#6870

Refs #4316

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Instead of using the deprecated use latest release candidate code
attributes.
While at it stop using SpanAttributes.
@xrmx xrmx requested a review from a team as a code owner March 26, 2025 14:37
Copy link
Member

@emdneto emdneto left a comment

Choose a reason for hiding this comment

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

Since code semconv is in Release Candidate status, I'm good with the change.

https://opentelemetry.io/docs/specs/semconv/code/

Existing code instrumentations that are using v1.29.0 of code conventions (or prior):

SHOULD NOT change the version of the code conventions that they emit by default until the code semantic conventions are marked stable.

@xrmx
Copy link
Contributor Author

xrmx commented Apr 14, 2025

So these are being marked stable and the warning removed open-telemetry/semantic-conventions#2102

@xrmx xrmx changed the title opentelemetry-sdk: use release candidate code attributes opentelemetry-sdk: use stable code attributes Apr 14, 2025
@lzchen lzchen merged commit 1b1e8d8 into open-telemetry:main Apr 23, 2025
386 checks passed
DylanRussell pushed a commit to DylanRussell/opentelemetry-python that referenced this pull request Apr 29, 2025
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.

5 participants