Silence events warnings for internal users by xrmx · Pull Request #4847 · open-telemetry/opentelemetry-python

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

@xrmx

DylanRussell

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 xrmx mentioned this pull request

Dec 11, 2025

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

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
* 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.

* Add changelog

* Fixup tests

* fix lint

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
* 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.

* Add changelog

* Fixup tests

* fix lint