Skip to content

opentelemetry-sdk: revert RLock back to Lock#5329

Open
codeboten wants to merge 2 commits into
open-telemetry:mainfrom
codeboten:codeboten/more-locks
Open

opentelemetry-sdk: revert RLock back to Lock#5329
codeboten wants to merge 2 commits into
open-telemetry:mainfrom
codeboten:codeboten/more-locks

Conversation

@codeboten

@codeboten codeboten commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

With the changes in clean_attributes, the original issue that required the reentrant lock in the first place is no longer an issue. Added a test that was run with the old code to validate that the regression does not occur. Note that this doesn't have much of an impact on performance as far as my testing found, it's more of a case of not using the RLock if not needed.

Type of change

Please delete options that are not relevant.

  • Small improvement

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

  • Added regression test

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

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

With the changes in clean_attributes, the original issue that required the reentrant lock in the first place is no longer an issue. Added a test that was run with the old code to validate that the regression does not occur.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten requested a review from a team as a code owner June 18, 2026 20:34
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant