builtin:span-failure-detection-config)
Configure a list of span failure detection rules which are evaluated in order.
Dynatrace failure detection automatically detects the vast majority of error conditions in your environment. However, not all services follow the OpenTelemetry specification to heart, so there may be cases where the default span failure detection settings don't meet your particular needs. E.g. your library doesn't use the event 'exception' for exceptions, but another event such as 'fatal-error'. Or you use a custom 'internal.severity' span attribute to transport error information. In such cases, you can configure failure rules which are evaluated in order. As soon as a rule matches, subsequent rules will not be evaluated.
Note: This config applies to your whole tenant and to any span captured by Dynatrace.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:span-failure-detection-config |
| environment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-failure-detection-config |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:span-failure-detection-config | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-failure-detection-config |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Property | Type | Description | Required |
---|---|---|---|
Enabledenabled | boolean | If this is true, the rule will be evaluated. | required |
Rulerule | Rule | - | required |
Rule
objectProperty | Type | Description | Required |
---|---|---|---|
Rule nameruleName | text | - | required |
Rule verdict, the rule defines whether a span indicates a failure or successspanVerdictIfRuleMatches | enum |
| required |
Conditionsconditions | Set<Condition> | Specify all conditions which should be evaluated for this rule. A rule is applied if all of the listed conditions match. | required |
Condition
objectProperty | Type | Description | Required |
---|---|---|---|
Sourcesource | enum |
| required |
Event conditionseventConditions | Set<EventCondition> | Specify event conditions which should be evaluated for this rule. A rule is applied if all of the specified conditions match. | required |
KeysourceKey | text | - | required |
Data TypedataType | enum |
| required |
Comparison TypestringComparisonType | enum |
| required |
Comparison TypeattrKeyStringComparisonType | enum | Note:
| required |
Comparison TypenumComparisonType | enum | Note:
| required |
Selection TypeboolComparisonType | enum |
| required |
Comparison TypeattrKeyBoolComparisonType | enum | Note:
| required |
ValueboolValue | enum |
| required |
ValueintValue | integer | - | required |
ValuesintValues | set | Any value from the list should match for the condition to be evaluated to true | required |
ValuefloatValue | float | - | required |
ValuesfloatValues | set | Any value from the list should match for the condition to be evaluated to true | required |
ValuesstrValues | set | Any value from the list should match for the condition to be evaluated to true | required |
Span status code is set tospanStatusCodeValue | Set<SpanStatusCode> | Enable one or more status codes to be checked.
| required |
ValuesspanKindValue | Set<SpanKind> | Enable one or more status kinds.
| required |
Case sensitivecaseSensitive | boolean | Affects value(s) | required |
EventCondition
objectProperty | Type | Description | Required |
---|---|---|---|
Sourcesource | enum |
| required |
KeysourceKey | text | - | required |
Data TypedataType | enum |
| required |
Comparison TypestringComparisonType | enum |
| required |
Comparison TypeattrKeyStringComparisonType | enum | Note:
| required |
Comparison TypenumComparisonType | enum | Note:
| required |
Comparison TypeattrKeyBoolComparisonType | enum | Note:
| required |
ValueboolValue | enum |
| required |
ValueintValue | integer | - | required |
ValuesintValues | set | If regular comparison type i.e. If negated comparison type i.e. | required |
ValuefloatValue | float | - | required |
ValuesfloatValues | set | If regular comparison type i.e. If negated comparison type i.e. | required |
ValuesstrValues | set | If regular comparison type i.e. If negated comparison type i.e. | required |
Case sensitivecaseSensitive | boolean | Affects value(s) | required |