critical_path_service_breakdowns
Creates, updates, deletes, gets or lists a critical_path_service_breakdowns resource.
Overview​
| Name | critical_path_service_breakdowns |
| Type | Resource |
| Id | sumologic.tracing.critical_path_service_breakdowns |
Fields​
The following fields are returned by SELECT queries:
- list
List of elements representing the critical path service breakdown.
| Name | Datatype | Description |
|---|---|---|
duration | integer (int64) | Overall processing time in nanoseconds consumed by the spans belonging to this service in the critical path (a sum of the duration times of the spans' critical path segments). |
longest_segment_duration | integer (int64) | Number of nanoseconds the longest span segment in the critical path lasted. (wire: longestSegmentDuration) |
num_spans | integer (int32) | Number of spans that are part of this service. (wire: numSpans) |
service | string | The name of the service. (example: user-service) |
service_color | string | Color hex code assigned to the service. (example: #fa41c6) (wire: serviceColor) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | trace_id, region | Get a critical path breakdown by services of the spans contributing to the critical path of a trace with the given identifier. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | Sumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT) |
trace_id | string | Identifier of the trace. (wire: traceId) |
SELECT examples​
- list
Get a critical path breakdown by services of the spans contributing to the critical path of a trace with the given identifier.
SELECT
duration,
longest_segment_duration,
num_spans,
service,
service_color
FROM sumologic.tracing.critical_path_service_breakdowns
WHERE trace_id = '{{ trace_id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;