Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document single argument variant of tracingBaggageToTag #3247

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/reference/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -3303,11 +3303,19 @@ Syntax:
tracingBaggageToTag("<baggage_item_name>", "<tag_name>")
```

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).
Expand Down
Loading