Skip to content

docs: clarify baggage current context behavior - #5529

Open
goutamadwant wants to merge 3 commits into
open-telemetry:mainfrom
goutamadwant:docs-baggage-current-context
Open

docs: clarify baggage current context behavior#5529
goutamadwant wants to merge 3 commits into
open-telemetry:mainfrom
goutamadwant:docs-baggage-current-context

Conversation

@goutamadwant

Copy link
Copy Markdown

Description

Clarifies that baggage helper functions return updated Context values and do not mutate or attach the current context automatically.

This adds examples showing the difference between reading from the current context, passing an explicit context, and attaching/detaching a returned context. It also keeps the Context API docs focused on Context behavior without describing it in terms of baggage.

Fixes #2432

Type of change

  • This change requires a documentation update

How Has This Been Tested?

  • uv run tox -e docs

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

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

@goutamadwant
goutamadwant requested a review from a team as a code owner August 9, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Current context is empty with baggage.get_all

1 participant