Skip to content

opentelemetry-sdk: don't read other resource attributes when building default service.name - #5547

Open
xrmx wants to merge 2 commits into
open-telemetry:mainfrom
xrmx:dont-reuse-resource-attributes-default-service-name
Open

opentelemetry-sdk: don't read other resource attributes when building default service.name#5547
xrmx wants to merge 2 commits into
open-telemetry:mainfrom
xrmx:dont-reuse-resource-attributes-default-service-name

Conversation

@xrmx

@xrmx xrmx commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Description

Always use sys.executable if available instead of looking at an eventual process.executable.name set in resource attributes.

Fixes #5544

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

  • tox

Does This PR Require a Contrib Repo Change?

Checklist:

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

… default service.name

Always use sys.executable if available instead.
@xrmx
xrmx requested a review from a team as a code owner August 14, 2026 10:30
@xrmx xrmx moved this to Ready for review in Python PR digest Aug 14, 2026
@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-08-14 16:59 UTC

Investigate required status check failures.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with reviewers? Comment /dashboard route:reviewers to route it to them.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

opentelemetry-sdk: change behaviour of default service.name

1 participant