Skip to main content

critical_path_service_breakdowns

Creates, updates, deletes, gets or lists a critical_path_service_breakdowns resource.

Overview​

Namecritical_path_service_breakdowns
TypeResource
Idsumologic.tracing.critical_path_service_breakdowns

Fields​

The following fields are returned by SELECT queries:

List of elements representing the critical path service breakdown.

NameDatatypeDescription
durationinteger (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_durationinteger (int64)Number of nanoseconds the longest span segment in the critical path lasted. (wire: longestSegmentDuration)
num_spansinteger (int32)Number of spans that are part of this service. (wire: numSpans)
servicestringThe name of the service. (example: user-service)
service_colorstringColor hex code assigned to the service. (example: #fa41c6) (wire: serviceColor)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselecttrace_id, regionGet 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.

NameDatatypeDescription
regionstringSumo 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_idstringIdentifier of the trace. (wire: traceId)

SELECT examples​

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
;