Skip to content

Commit

Permalink
update description to indicate new baggage entries are not added to a…
Browse files Browse the repository at this point in the history
…ctive span
  • Loading branch information
MikeGoldsmith committed Jun 12, 2024
1 parent c1adaca commit 091e64d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion processor/baggage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is an OpenTelemetry [span processor](https://opentelemetry.io/docs/specs/otel/trace/sdk/#span-processor) that reads key/values stored in [Baggage](https://opentelemetry.io/docs/specs/otel/baggage/api/) in the starting span's parent context and adds them as attributes to the span.

Keys and values added to Baggage will appear on all subsequent child spans for a trace within this service *and* will be propagated to external services via propagation headers.
Keys and values added to Baggage will appear on all subsequent child spans, not the current active span, for a trace within this service *and* will be propagated to external services via propagation headers.
If the external services also have a Baggage span processor, the keys and values will appear in those child spans as well.

⚠️ Waning ⚠️
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ module Baggage
# starting span's parent context and adds them as attributes to the span,
# if a key matches a provided predicate lambda.
#
# Keys and values added to Baggage will appear on all subsequent child spans
# for a trace within this service *and* will be propagated to external services
# via propagation headers. If the external services also have a Baggage span
# processor, the keys and values will appear in those child spans as well provided
# that the keys match any predicate method configured there.
# Keys and values added to Baggage will appear on all subsequent child spans,
# not the current active span, for a trace within this service *and* will be
# propagated to external services via propagation headers.
#
# If the external services also have a Baggage span processor, the keys and
# values will appear in those child spans as well.
#
# ⚠️
# To repeat: a consequence of adding data to Baggage is that the keys and
Expand Down

0 comments on commit 091e64d

Please sign in to comment.