diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 9bd4af47e3..015f35d185 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -3303,11 +3303,19 @@ Syntax: tracingBaggageToTag("", "") ``` -Example: If a trace consists of baggage item named `foo` with a value `bar`. Adding below filter will add a tag named `baz` with value `bar` +Example: + +If a trace consists of a baggage item named `foo` with a value of `bar`, +then adding the filter below will add a tag named `baz` with the value `bar`: ``` tracingBaggageToTag("foo", "baz") ``` +A single-argument variant uses the baggage item name as the tag name, i.e., it will add a tag named `foo` with the value `bar`: +``` +tracingBaggageToTag("foo") +``` + ### stateBagToTag This filter sets an opentracing tag from the filter context (state bag).