Skip to content

Warnings before removals#4771

Merged
xrmx merged 14 commits intoopen-telemetry:mainfrom
xrmx:warn-for-renames
Oct 16, 2025
Merged

Warnings before removals#4771
xrmx merged 14 commits intoopen-telemetry:mainfrom
xrmx:warn-for-renames

Conversation

@xrmx
Copy link
Copy Markdown
Contributor

@xrmx xrmx commented Oct 13, 2025

Description

FIXME:

  • [ x] should use a new warning class for each instance otherwise I'm not sure we'll see more than one kind of these warnings

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

@lzchen lzchen marked this pull request as ready for review October 13, 2025 19:56
@lzchen lzchen requested a review from a team as a code owner October 13, 2025 19:56
@lzchen lzchen changed the title WIP warnings before deprecations and renames Warnings before deprecations and renames Oct 13, 2025
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py Outdated
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py Outdated
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py Outdated
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py Outdated
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py Outdated
@xrmx xrmx changed the title Warnings before deprecations and renames Warnings before removals Oct 14, 2025
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py Outdated
Comment thread opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
@xrmx xrmx merged commit f1de47f into open-telemetry:main Oct 16, 2025
372 checks passed
JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request Feb 17, 2026
* WIP warnings before deprecations and renames

* different classes

* tests

* lint

* Keep using one warning

* Update changelog

* Feedback: drop warnings that have a deprecations

* Update logrecord warning message

* Use default stacklevel

* Silence deprecation warnings from internal users

* Add test for logdata warnings

* WIP NOT WORKING capture deprecations warnings in EventLogger.emit

* Use stacklevel=2 for getting the caller

---------

Co-authored-by: Leighton Chen <[email protected]>
JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request Feb 17, 2026
* WIP warnings before deprecations and renames

* different classes

* tests

* lint

* Keep using one warning

* Update changelog

* Feedback: drop warnings that have a deprecations

* Update logrecord warning message

* Use default stacklevel

* Silence deprecation warnings from internal users

* Add test for logdata warnings

* WIP NOT WORKING capture deprecations warnings in EventLogger.emit

* Use stacklevel=2 for getting the caller

---------

Co-authored-by: Leighton Chen <[email protected]>
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.

4 participants