Skip to content

Commit

Permalink
docs: mention tail sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Dec 4, 2023
1 parent 476eb2e commit 8ee5ebd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/docs/configuration/sampling-tracetest-spans.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ service:
exporters: [otlp/jaeger]
```
### Tail sampling approach
Before December 2023, we were suggesting people to use tail sampling to filter the traces generated by tracetests.
However, the new `filter` capabilities are better for performance than tail sampling as it
requires less memory to decide if a trace should be sampled or not. But even with those arguments you still want to use the
tail sampling approach, this is the processor you can use:

```yaml
processors:
tail_sampling:
decision_wait: 5s
policies:
- name: tracetest-spans
type: trace_state
trace_state: { key: tracetest, values: ["true"] }
```

With this configuration, you will still get 5% of all your traces, but you will also ensure that all your test traces are collected and sent to
Jaeger.

Expand Down

0 comments on commit 8ee5ebd

Please sign in to comment.