Skip to content
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
88 changes: 44 additions & 44 deletions pipeline/processors/sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 5s
conditions:
- type: latency
threshold_ms_low: 200
threshold_ms_high: 3000
conditions:
- type: latency
threshold_ms_low: 200
threshold_ms_high: 3000

outputs:
- name: stdout
Expand Down Expand Up @@ -175,10 +175,10 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 5s
conditions:
- type: span_count
min_spans: 3
max_spans: 5
conditions:
- type: span_count
min_spans: 3
max_spans: 5

outputs:
- name: stdout
Expand Down Expand Up @@ -222,9 +222,9 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 5s
conditions:
- type: status_code
status_codes: [ERROR]
conditions:
- type: status_code
status_codes: [ERROR]

outputs:
- name: stdout
Expand Down Expand Up @@ -275,29 +275,29 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 2s
conditions:
# Exact matching
- type: string_attribute
match_type: strict
key: "http.method"
values: ["GET"]
conditions:
# Exact matching
- type: string_attribute
match_type: strict
key: "http.method"
values: ["GET"]

# Check if attribute exists
- type: string_attribute
match_type: exists
key: "service.name"

# Regex pattern matching
- type: string_attribute
match_type: regex
key: "http.url"
values: ["^https://api\\..*", ".*\\/health$"]

# Multiple regex patterns for error conditions
- type: string_attribute
match_type: regex
key: "error.message"
values: ["timeout.*", "connection.*failed", ".*rate.?limit.*"]
- type: string_attribute
match_type: exists
key: "service.name"

# Regex pattern matching
- type: string_attribute
match_type: regex
key: "http.url"
values: ["^https://api\\..*", ".*\\/health$"]

# Multiple regex patterns for error conditions
- type: string_attribute
match_type: regex
key: "error.message"
values: ["timeout.*", "connection.*failed", ".*rate.?limit.*"]

outputs:
- name: stdout
Expand Down Expand Up @@ -344,11 +344,11 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 5s
conditions:
- type: numeric_attribute
key: "http.status_code"
min_value: 400
max_value: 504
conditions:
- type: numeric_attribute
key: "http.status_code"
min_value: 400
max_value: 504

outputs:
- name: stdout
Expand Down Expand Up @@ -393,10 +393,10 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 2s
conditions:
- type: boolean_attribute
key: "user.logged"
value: false
conditions:
- type: boolean_attribute
key: "user.logged"
value: false

outputs:
- name: stdout
Expand Down Expand Up @@ -440,9 +440,9 @@ pipeline:
type: tail
sampling_settings:
decision_wait: 2s
conditions:
- type: trace_state
values: [debug=false, priority=high]
conditions:
- type: trace_state
values: [debug=false, priority=high]

outputs:
- name: stdout
Expand Down
Loading