• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Span failure detection configuration

Settings 2.0 - Span failure detection configuration schema

Span failure detection configuration (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 IDSchema groupsScope
builtin:span-failure-detection-config
  • group:service-detection
environment
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-failure-detection-config
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:span-failure-detection-config
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-failure-detection-config

Authentication

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.

Parameters

PropertyLabelTypeDescriptionRequired
enabledEnabledboolean

If this is true, the rule will be evaluated.

required
ruleRuleRule-required

Request body objects

The EventCondition object
PropertyLabelTypeDescriptionRequired
sourceSourceenum-required
sourceKeyKeytext-required
dataTypeData Typeenum-required
stringComparisonTypeComparison Typeenum-required
attrKeyStringComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
numComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
attrKeyBoolComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
boolValueValueenum-required
intValueValueinteger-required
intValuesValuesset

If regular comparison type i.e. Equals is used, then any of the listed values should match for the condition to be evaluated to true

If negated comparison type i.e. Does not equal is used, then none of the listed values should match for the condition to be evaluated to true

required
floatValueValuefloat-required
floatValuesValuesset

If regular comparison type i.e. Equals is used, then any of the listed values should match for the condition to be evaluated to true

If negated comparison type i.e. Does not equal is used, then none of the listed values should match for the condition to be evaluated to true

required
strValuesValuesset

If regular comparison type i.e. Equals is used, then any of the listed values should match for the condition to be evaluated to true

If negated comparison type i.e. Does not equal is used, then none of the listed values should match for the condition to be evaluated to true

required
caseSensitiveCase sensitiveboolean

Affects value(s)

required
The Condition object
PropertyLabelTypeDescriptionRequired
sourceSourceenum-required
eventConditionsEvent conditionsset

Specify event conditions which should be evaluated for this rule. A rule is applied if all of the specified conditions match.

required
sourceKeyKeytext-required
dataTypeData Typeenum-required
stringComparisonTypeComparison Typeenum-required
attrKeyStringComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
numComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
boolComparisonTypeSelection Typeenum-required
attrKeyBoolComparisonTypeComparison Typeenum

Note: Exists/Does not exist ignores any type information i.e. the condition only checks for the existence/non-existence of the attribute key

required
boolValueValueenum-required
intValueValueinteger-required
intValuesValuesset

Any value from the list should match for the condition to be evaluated to true

required
floatValueValuefloat-required
floatValuesValuesset

Any value from the list should match for the condition to be evaluated to true

required
strValuesValuesset

Any value from the list should match for the condition to be evaluated to true

required
spanStatusCodeValueSpan status code is set toset

Enable one or more status codes to be checked.

required
spanKindValueValuesset

Enable one or more status kinds.

required
caseSensitiveCase sensitiveboolean

Affects value(s)

required
The Rule object
PropertyLabelTypeDescriptionRequired
ruleNameRule nametext-required
spanVerdictIfRuleMatchesRule verdict, the rule defines whether a span indicates a failure or successenum-required
conditionsConditionsset

Specify all conditions which should be evaluated for this rule. A rule is applied if all of the listed conditions match.

required