Skip to content

Conversation

@rite7sh
Copy link

@rite7sh rite7sh commented Dec 17, 2025

Refs #3475

Type of change

  • 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?

This change updates a semantic convention attribute constant without modifying
runtime behavior. Local test execution on Windows is limited by environment
constraints; CI will validate the change.

Does This PR Require a Core 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

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 17, 2025

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: rite7sh / name: Ritesh Traipathi (f476206)

Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

I think there are a lot more users of SpanAttributes in the asgi package


from asgiref.compatibility import guarantee_single_callable


Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

if http_host_value_list:
if _report_old(sem_conv_opt_in_mode):
result[SpanAttributes.HTTP_SERVER_NAME] = ",".join(
result[HTTP_SERVER_NAME] = ",".join(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
result[HTTP_SERVER_NAME] = ",".join(
result[HTTP_SERVER_NAME] = ",".join(

Looks like you haven't setup precommit as written in CONTRIBUTING

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for pointing that out.
I intentionally limited the scope of this PR to the HTTP_SERVER_NAME usage to keep the change small and aligned with the guidance in #3475, and to avoid changing telemetry output.
I’ve also set up and run the pre-commit hooks locally as described in CONTRIBUTING, and amended the commit accordingly.
Happy to follow up with additional SpanAttributes replacements in a separate PR if that would be useful.

@xrmx xrmx moved this to Reviewed PRs that need fixes in @xrmx's Python PR digest Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Reviewed PRs that need fixes

Development

Successfully merging this pull request may close these issues.

2 participants