Skip to content

Commit f08fddb

Browse files
Anusha NarapureddyAnusha Narapureddy
authored andcommitted
sampling rough draft
1 parent 144b150 commit f08fddb

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

backend/03-tail-sampling-config.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,20 @@ spec:
2020
http:
2121
endpoint: 0.0.0.0:4318
2222
23-
processors:
23+
processors:
24+
# Sample 100% of traces with ERROR-ing spans (omit traces with all OK spans)
25+
# and traces which have a duration longer than 500ms
2426
tail_sampling:
2527
decision_wait: 10s # time to wait before making a sampling decision is made
2628
num_traces: 100 # number of traces to be kept in memory
2729
expected_new_traces_per_sec: 10 # expected rate of new traces per second
2830
policies:
29-
[
30-
{
31-
name: keep-errors,
32-
type: status_code,
33-
status_code: {status_codes: [ERROR]}
34-
},
35-
{
36-
name: keep-slow-traces,
37-
type: latency,
38-
latency: {threshold_ms: 500}
39-
}
40-
]
31+
- name: keep-errors
32+
type: status_code
33+
status_code: {status_codes: [ERROR, UNSET]}
34+
- name: keep-slow-traces
35+
type: latency
36+
latency: {threshold_ms: 500}
4137
4238
exporters:
4339
otlp/traces:

0 commit comments

Comments
 (0)