Skip to content

refactor: declare opentelemetry_service_name/namespace on PyroscopeCo…#84

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

refactor: declare opentelemetry_service_name/namespace on PyroscopeCo…#84
lesnik512 merged 1 commit intomainfrom
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
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lite_bootstrap/instruments/pyroscope_instrument.py 100.00% <100.00%> (ø)
tests/instruments/test_pyroscope_instrument.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@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