Skip to content

Propagate OpenTelemetry baggage through FastStream - #150

Merged
vrslev merged 1 commit into
mainfrom
feature/faststream-baggage-context
Aug 27, 2026
Merged

Propagate OpenTelemetry baggage through FastStream#150
vrslev merged 1 commit into
mainfrom
feature/faststream-baggage-context

Conversation

@vrslev

Copy link
Copy Markdown
Contributor

Automatically bridge OpenTelemetry baggage through FastStream telemetry middleware.

  • inject the active global OpenTelemetry context on publish
  • extract baggage into the active consumer span context
  • materialize configured baggage span attributes
  • preserve unrelated baggage across consume-to-publish flows
  • support authoritative baggage removal

Tests cover value replacement, removal, downstream propagation, span attributes, and context restoration.

@codecov

codecovBot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

FlagCoverage Δ
unittests99.02% <100.00%> (+0.01%)⬆️

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

Files with missing linesCoverage Δ
microbootstrap/bootstrappers/faststream.py100.00% <100.00%> (ø)
microbootstrap/middlewares/faststream.py100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vrslev
vrslev marked this pull request as ready for review August 27, 2026 16:10
@vrslev
vrslev merged commit 4816510 into mainAug 27, 2026
18 checks passed
@vrslev
vrslev deleted the feature/faststream-baggage-context branch August 27, 2026 16:10
Sign up for freeto 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

@vrslev