This action is a Service Action that samples traces based on the presence or value of specific attributes within a trace.
json_condition
will cause a higher resource utilization!error = true
.
See example →
"user.role": "admin"
.
See example →
actionName
string
: Allows you to attach a meaningful name to the action for convenience.notes
string
: Allows you to attach notes regarding the action for convenience.disabled
boolean
: Allows you to temporarily disable the action, but keep it saved for future use.false
signals *
string[]
: An array with the signals that the processor will act on.TRACES
attribute_filters *
object[]
: An array of objects representing the filters for the service and attribute filters.service_name *
string
: Specifies the service name to search within the trace (Across all available spans).attribute_key *
string
: Specifies the attribute key inside of the span.condition *
object
: An object representing the filters for span attributes filters.string_condition
operation
string
: Specifies the operation to run against the attribute.accepted values for the boolean operation:expected_value
string
: The values to test the attribute against.[equals, not_equals, contains, not_contains, regex]
.number_condition
operation
string
: Specifies the operation to run against the attribute.accepted values for the number condition:expected_value
float
: The values to test the attribute against.[equals, not_equals, greater_than, less_than, greater_than_or_equal, less_than_or_equal]
.boolean_condition
operation
string
: Specifies the operation to run against the attribute.accepted values for the boolean operation:expected_value
boolean
: The values to test the attribute against.equals
.json_condition
operation
string
: Specifies the operation to run against the attribute.accepted values for the boolean operation:expected_value
string
: The values to test the attribute against.[equals, not_equals, jsonpath_exists, key_equals, key_not_equals]
.json_path
string
: It is a JSONPath expression used to navigate the JSON structure.[jsonpath_exists, key_equals, key_not_equals]
.fallback_sampling_ratio *
float
: Specifies the percentage of traces that don’t meet the service name filter and that you still like to retain.error
attribute (a boolean) equals true
for the checkout-service
.
fallback_sampling_ratio
. This allows you to collect a percentage of non-matching traces for broad observability without overwhelming storage costs.