refactor: declare opentelemetry_service_name/namespace on PyroscopeCo… by lesnik512 · Pull Request #84 · modern-python/lite-bootstrap · GitHub
Skip to content

refactor: declare opentelemetry_service_name/namespace on PyroscopeCo…#84

Merged
lesnik512 merged 1 commit into
mainfrom
fix/pyroscope-otel-fields
May 2, 2026
Merged

refactor: declare opentelemetry_service_name/namespace on PyroscopeCo…#84
lesnik512 merged 1 commit into
mainfrom
fix/pyroscope-otel-fields

Conversation

@lesnik512

Copy link
Copy Markdown
Member

…nfig

Replace two getattr(..., None) calls in PyroscopeInstrument.bootstrap() with direct attribute access. The fields are added to PyroscopeConfig with default None; in framework configs MRO causes OpentelemetryConfig's declarations to win, so behavior is unchanged. Standalone PyroscopeConfig users can now set these fields directly without the cross-class coupling.

…nfig

Replace two getattr(..., None) calls in PyroscopeInstrument.bootstrap()
with direct attribute access. The fields are added to PyroscopeConfig
with default None; in framework configs MRO causes OpentelemetryConfig's
declarations to win, so behavior is unchanged. Standalone PyroscopeConfig
users can now set these fields directly without the cross-class coupling.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lesnik512 lesnik512 self-assigned this May 2, 2026
@codecov

codecov Bot commented May 2, 2026

Copy link
Copy Markdown

@lesnik512 lesnik512 merged commit 00ad6ba into main May 2, 2026
8 checks passed
@lesnik512 lesnik512 deleted the fix/pyroscope-otel-fields branch May 2, 2026 15:47
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.

1 participant