Skip to content

Commit c06fd1d

Browse files
authored
Update README.rst (open-telemetry#2575)
1 parent 768694c commit c06fd1d

File tree

1 file changed

+13
-1
lines changed
  • processor/opentelemetry-processor-baggage

1 file changed

+13
-1
lines changed

processor/opentelemetry-processor-baggage/README.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
OpenTelemetry Baggage Span Processor
22
====================================
33

4+
|pypi|
5+
6+
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-processor-baggage.svg
7+
:target: https://pypi.org/project/opentelemetry-processor-baggage/
8+
49
The BaggageSpanProcessor reads entries stored in Baggage
510
from the parent context and adds the baggage entries' keys and
611
values to the span as attributes on span start.
712

13+
Installation
14+
------------
15+
16+
::
17+
18+
pip install opentelemetry-processor-baggage
19+
820
Add this span processor to a tracer provider.
921

1022
Keys and values added to Baggage will appear on subsequent child
@@ -48,4 +60,4 @@ For example, to only copy baggage entries that match the regex `^key.+`:
4860
```python
4961
regex_predicate = lambda baggage_key: baggage_key.startswith("^key.+")
5062
tracer_provider.add_span_processor(BaggageSpanProcessor(regex_predicate))
51-
```
63+
```

0 commit comments

Comments
 (0)