Skip to content

Instantly share code, notes, and snippets.

@SodaDev
Created August 30, 2023 09:12
Show Gist options
  • Save SodaDev/6c217bff8620dfa8a321f721207d6470 to your computer and use it in GitHub Desktop.
Save SodaDev/6c217bff8620dfa8a321f721207d6470 to your computer and use it in GitHub Desktop.
- name: core-api-errors-sampling-policy
type: and
and:
and_sub_policy:
- name: error-policy
type: status_code
status_code:
status_codes:
- "ERROR"
- name: probabilistic-policy
type: probabilistic
probabilistic:
sampling_percentage: ${CoreApiErrorSamplingPercentage}
- name: core-api-prefix-policy
type: string_attribute
string_attribute:
key: service.name
values:
- core-api*
enabled_regex_matching: true
- name: core-api-sampling
type: and
and:
and_sub_policy:
- name: core-api-prefix-policy
type: string_attribute
string_attribute:
key: service.name
values:
- core-api*
enabled_regex_matching: true
- name: core-api-probabilistic-policy
type: probabilistic
probabilistic:
sampling_percentage: ${CoreApiSamplingPercentage}
- name: cs-errors-sampling-policy
type: and
and:
and_sub_policy:
- name: error-policy
type: status_code
status_code:
status_codes:
- "ERROR"
- name: probabilistic-policy
type: probabilistic
probabilistic:
sampling_percentage: ${CsErrorSamplingPercentage}
- name: cs-prefix-policy
type: string_attribute
string_attribute:
key: service.name
values:
- cs*
enabled_regex_matching: true
- name: cs-sampling
type: and
and:
and_sub_policy:
- name: cs-prefix-policy
type: string_attribute
string_attribute:
key: service.name
values:
- cs*
enabled_regex_matching: true
- name: cs-probabilistic-policy
type: probabilistic
probabilistic:
sampling_percentage: ${CsSamplingPercentage}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment