builtin:span-service-detection-config)
Configure a list of span service detection rules which are evaluated in order.
When the first rule matches, the service detection will proceed. Subsequent rules will not be evaluated.
Note: This config applies only to spans captured by OneAgent.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:span-service-detection-config |
| environment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-service-detection-config |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:span-service-detection-config | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:span-service-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 |
Technologytechnology | text | - | optional |
Extractions (Optional)extractions | Extraction[] | Specify a list of extractions that are inherently bound to the rule they are defined in. Each extraction is composed of at least one transformation but it can also be constructed from multiple chained transformations. If several transformations are specified, they are handled sequentially from top to bottom. Each transformation is applied to the result of the preceding transformation. For example, the second transformation is applied to the result of the first transformation. | required |
Service detectionserviceDetection | ServiceDetection | - | required |
Service method detectionserviceMethodDetectionRule | ServiceMethodDetectionRule[] | Specify a list of rules which are evaluated in order. When the first rule matches, the service detection will proceed. Subsequent rules will not be evaluated. | required |
Default method ruledefaultMethodRule | DefaultMethodRule | Choose whether the span service detection rule should detect a service call or not in case there are no matching | 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 |
Extraction
objectProperty | Type | Description | Required |
---|---|---|---|
IduniqueId | text | This unique identifier can be used to reference to the result of the extraction in later steps (f.ex. Service detection & Service method detection) The unique identifier must start with a letter and allows the usage of | required |
Value sourcevalueSource | ValueSource | - | required |
Transformationstransformations | ExtractionType[] | - | required |
ServiceDetection
objectProperty | Type | Description | Required |
---|---|---|---|
OutputoutputType | enum |
Any input matching the current rule would not be detected as a service.
The service id is constructed from a set of id contributors. The service name is specified as a format string with placeholders, where each placeholder refers to any of the id contributors. Each service id contributor induces the condition that its input is available. If it is not available, the rule is considered not matching, the rule is not applied, and ruleset evaluation continues.
| required |
Service id contributorsid | Set<ServiceIdContributor> | - | required |
Service nameserviceName | text |
Span attributes must be allow-listed ( | required |
ServiceMethodDetectionRule
objectProperty | Type | Description | Required |
---|---|---|---|
Rule namemethodRuleName | text | - | required |
Method conditionsconditions | Set<Condition> | Specify conditions which should be evaluated for this rule. A rule is evaluated if all of the specified conditions match. | required |
OutputoutputType | enum |
Any input matching the current rule would not be detected at the node.
The method id is constructed from a set of id contributors. The method name is specified as a format string with placeholders, where each placeholder refers to any of the id contributors. Each method id contributor induces the condition that its input is available. If it is not available, the rule is considered not matching, the rule is not applied, and ruleset evaluation continues.
| required |
Method id contributorsid | Set<MethodIdContributor> | - | required |
Method namemethodName | text |
Span attributes must be allow-listed ( | required |
DefaultMethodRule
objectProperty | Type | Description | Required |
---|---|---|---|
OutputoutputType | enum |
| required |
Idid | text | - | required |
Namename | text | - | required |
ValueSource
objectProperty | Type | Description | Required |
---|---|---|---|
Sourcesource | enum |
| required |
Span attribute keyattributeKey | text | - | required |
Resource attribute keyresourceAttributeKey | text | - | required |
ExtractionType
objectProperty | Type | Description | Required |
---|---|---|---|
Extracttype | enum |
Select the part of a longer string that comes before the given marker string. The marker string is not part of the returned result. If the marker is not found in the input, the resulting value will be empty.
Select the part of a longer string that comes after the given marker string. The marker string is not part of the returned result. If the marker is not found in the input, the resulting value will be empty.
Select the part of a longer string that lies between the marker string 1 and marker string 2 (first occurrence of marker string 1, and first occurrence of marker string 2 after marker string 1). The marker strings are not part of the returned result. If any marker is not found in the input, the resulting value will be empty.
The longer string is split into a list of substrings identified by the given marker string. The selectAtIndex parameter allows to pick one of the substrings in the produced list. If the marker is not found in the input, the resulting list will only contain the original value. SelectAtIndex is 1 based, i.e. the first item has index 1.
| required |
Markermarker | text | - | required |
Marker_2marker2 | text | - | required |
selectAtIndexsplitAndSelectMarker | text | - | required |
ServiceIdContributor
objectProperty | Type | Description | Required |
---|---|---|---|
Sourcesource | enum |
| required |
KeysourceKey | text | - | required |
KeyresourceAttributeKey | text | - | required |
Extraction idextractionValue | text | - | 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 |
KeyresourceAttributeKey | text | - | required |
Data TypedataType | enum |
| required |
Comparison TypestringComparisonType | enum |
| required |
Comparison TypeattrKeyStringComparisonType | enum | Note:
| required |
Comparison TypenumComparisonType | enum | Note:
| required |
Comparison TypeboolComparisonType | enum |
| 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 |
ValuesspanKindValue | Set<SpanKind> |
| required |
Case sensitivecaseSensitive | boolean | Affects value(s) | required |
MethodIdContributor
objectProperty | Type | Description | Required |
---|---|---|---|
Sourcesource | enum |
| required |
KeysourceKey | text | - | required |
KeyresourceAttributeKey | text | - | required |
Extraction idextractionValue | text | - | 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 |