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 object| Property | Type | Description | Required |
|---|---|---|---|
Rule nameruleName | text | - | Required |
Rule verdict, the rule defines whether a span indicates a failure or successspanVerdictIfRuleMatches | enum | The element has these enums
| 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 object| Property | Type | Description | Required |
|---|---|---|---|
Sourcesource | enum | The element has these enums
| 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 | The element has these enums
| Required |
Comparison TypestringComparisonType | enum | The element has these enums
| Required |
Comparison TypeattrKeyStringComparisonType | enum | Note: The element has these enums
| Required |
Comparison TypenumComparisonType | enum | Note: The element has these enums
| Required |
Selection TypeboolComparisonType | enum | The element has these enums
| Required |
Comparison TypeattrKeyBoolComparisonType | enum | Note: The element has these enums
| Required |
ValueboolValue | enum | The element has these enums
| 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. The element has these enums
| Required |
ValuesspanKindValue | Set<SpanKind> | Enable one or more status kinds. The element has these enums
| Required |
Case sensitivecaseSensitive | boolean | Affects value(s) | Required |
EventCondition object| Property | Type | Description | Required |
|---|---|---|---|
Sourcesource | enum | The element has these enums
| Required |
KeysourceKey | text | - | Required |
Data TypedataType | enum | The element has these enums
| Required |
Comparison TypestringComparisonType | enum | The element has these enums
| Required |
Comparison TypeattrKeyStringComparisonType | enum | Note: The element has these enums
| Required |
Comparison TypenumComparisonType | enum | Note: The element has these enums
| Required |
Comparison TypeattrKeyBoolComparisonType | enum | Note: The element has these enums
| Required |
ValueboolValue | enum | The element has these enums
| 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 |