Skip to content

Instantly share code, notes, and snippets.

@jpkrohling
Created August 31, 2023 12:35
Show Gist options
  • Save jpkrohling/1372db59fc8f190e06bfd5812e34ebcd to your computer and use it in GitHub Desktop.
Save jpkrohling/1372db59fc8f190e06bfd5812e34ebcd to your computer and use it in GitHub Desktop.
tail sampling with span metrics
exporters:
logging/traces:
logging/metrics:
verbosity: detailed
receivers:
otlp:
protocols:
grpc:
processors:
tail_sampling:
decision_wait: 1s
num_traces: 50_000
expected_new_traces_per_sec: 10_000
policies:
[
{
name: only-10-percent,
type: probabilistic,
probabilistic: {sampling_percentage: 10}
},
]
connectors:
spanmetrics:
forward:
service:
pipelines:
traces:
receivers:
- otlp
exporters:
- forward
- spanmetrics
traces/export:
receivers:
- forward
processors:
- tail_sampling
exporters:
- logging/traces
metrics:
receivers:
- spanmetrics
processors:
exporters:
- logging/metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment