traces
Creates, updates, deletes, gets or lists a traces resource.
Overview
| Name | traces |
| Type | Resource |
| Id | sumologic.tracing.traces |
Fields
The following fields are returned by SELECT queries:
- getTrace
Details of the trace with the given identifier.
| Name | Datatype | Description |
|---|---|---|
id | string | Trace identifier. (example: 00000000000120CB) |
criticalPathServiceBreakdownSummary | object | |
metrics | object | Calculated trace metrics. |
rootOperationName | string | The name of the operation given to the root span. (example: retrieveAccount) |
rootResource | string | Root resource on which the trace was started. Examples: db.query, http.request, rpc.call, container (example: http.request) |
rootService | string | Root service which started the trace. Examples: user-service, authentication-service, payment-service, /shopping-cart (example: user-service) |
rootStatus | object | |
startedAt | string (date-time) | Date and time the trace was started in ISO 8601 / RFC3339 format. (example: 2019-11-22T09:00:00Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
getTrace | select | traceId, region | Get details 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 | SumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2) |
traceId | string | Identifier of the trace to get the details. |
SELECT examples
- getTrace
Get details of a trace with the given identifier.
SELECT
id,
criticalPathServiceBreakdownSummary,
metrics,
rootOperationName,
rootResource,
rootService,
rootStatus,
startedAt
FROM sumologic.tracing.traces
WHERE traceId = '{{ traceId }}' -- required
AND region = '{{ region }}' -- required
;