Skip to content

Fix copy-pasted log message in SpanContext.__delattr__#5439

Open
Eason09053360 wants to merge 2 commits into
open-telemetry:mainfrom
Eason09053360:improve_setting_property

Hidden character warning

The head ref may contain hidden characters: "improve\uff3fsetting_property"
Open

Fix copy-pasted log message in SpanContext.__delattr__#5439
Eason09053360 wants to merge 2 commits into
open-telemetry:mainfrom
Eason09053360:improve_setting_property

Conversation

@Eason09053360

@Eason09053360 Eason09053360 commented Jul 19, 2026

Copy link
Copy Markdown

Description

Fix a copy-pasted log message in SpanContext.__delattr__.

This PR changes the message to "ignoring call to delete attribute" so
the log matches the intercepted operation. No behavior change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Trivial one-word change to a debug log string; no behavior change, so
    no new tests were added. Verified existing test suite passes with
    tox -e py312-test-opentelemetry-api.

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

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

The debug message logged when deleting an attribute said "ignoring call
to set attribute", copied from __setattr__. Say "delete attribute" so
the log matches the intercepted operation.
@Eason09053360
Eason09053360 requested a review from a team as a code owner July 19, 2026 08:59

@henry3260 henry3260 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good catch!

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.

2 participants