You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update test to add multiple baggage items
* add keyfilter constructor parameter
* rework into regex
* add regex example and test
* move new setup & assertions to #on_start test block
Co-authored-by: Mike Goldsmith <[email protected]>
* consistent start_with; no "starts" to confuse readers
Co-authored-by: Mike Goldsmith <[email protected]>
* spec the new new method
Co-authored-by: Mike Goldsmith <[email protected]>
* update doc comments with new usage
* update README with new usage
* bonus: convenience docker compose service for testing baggage processor
* update description to indicate new baggage entries are not added to active span
* fix whitespace
---------
Co-authored-by: Robb Kidd <[email protected]>
Copy file name to clipboardExpand all lines: processor/baggage/README.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
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.
4
4
5
-
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.
5
+
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.
6
6
If the external services also have a Baggage span processor, the keys and values will appear in those child spans as well.
7
7
8
8
⚠️ Waning ⚠️
@@ -31,7 +31,7 @@ To install the instrumentation, add the gem to your Gemfile:
31
31
gem 'opentelemetry-processor-baggage'
32
32
```
33
33
34
-
Then add the processor to an SDK's configuration:
34
+
Then configure the span processor to copy all baggage entries:
35
35
36
36
```ruby
37
37
require'rubygems'
@@ -40,8 +40,11 @@ require 'bundler/setup'
40
40
Bundler.require
41
41
42
42
OpenTelemetry::SDK.configure do |c|
43
-
# Add the BaggageSpanProcessor to the collection of span processors
The `opentelemetry-processor-baggage` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
0 commit comments