Skip to content

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented Dec 10, 2025

Description

Silence events API deprecation warnings from sdk configuration and also avoid warnings in test utils if we aren't going to use events helpers.

Fixes #4836

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
xrmx added 2 commits December 10, 2025 10:32
So we spare the warnings when not using _events at all.
Supress warnings from internal users until we drop the deprecated API.
@xrmx xrmx requested a review from a team as a code owner December 10, 2025 09:35
@xrmx xrmx moved this to Easy to review / merge / close in @xrmx's Python PR digest Dec 10, 2025
@xrmx xrmx self-assigned this Dec 10, 2025
@xrmx xrmx merged commit 8101abd into open-telemetry:main Dec 10, 2025
416 checks passed
@github-project-automation github-project-automation bot moved this from Easy to review / merge / close to Done in @xrmx's Python PR digest Dec 10, 2025
xrmx added a commit to xrmx/opentelemetry-python that referenced this pull request Dec 11, 2025
* opentelemetry-test-utils: import from deprecated _events only when used So we spare the warnings when not using _events at all. * opentelemetry-sdk: suppress Events API deprecation warnings Supress warnings from internal users until we drop the deprecated API.
xrmx added a commit that referenced this pull request Dec 11, 2025
* opentelemetry-test-utils: import from deprecated _events only when used So we spare the warnings when not using _events at all. * opentelemetry-sdk: suppress Events API deprecation warnings Supress warnings from internal users until we drop the deprecated API. Backport of #4847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants