Skip to content

Propagate OpenTelemetry baggage through FastStream - #150

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

vrslev merged 1 commit into
mainfrom
feature/faststream-baggage-context

Conversation

@vrslev

@vrslev vrslev commented Aug 27, 2026

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

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 99.02% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
microbootstrap/bootstrappers/faststream.py 100.00% <100.00%> (ø)
microbootstrap/middlewares/faststream.py 100.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 main Aug 27, 2026
18 checks passed
@vrslev
vrslev deleted the feature/faststream-baggage-context branch August 27, 2026 16:10
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