tracing_status
Creates, updates, deletes, gets or lists a tracing_status resource.
Overview​
| Name | tracing_status |
| Type | Resource |
| Id | railway.observability.tracing_status |
Fields​
The following fields are returned by SELECT queries:
- list
One row per ServiceTracingStatus. Whether a service's requests are producing spans, per exporting hop. The edge tracing a request says nothing about the app behind it.
| Name | Datatype | Description |
|---|---|---|
service_id | string | |
last_edge_span_at | string (date-time) | When the edge last exported a span for a request to the service; null when it never has within retention |
last_service_span_at | string (date-time) | When the service's own app last exported a span; null when it never has within retention |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | environment_id | Span activity per service of an environment within retention; a service absent from the list has produced no spans at all. Backed by the Railway GraphQL query tracingStatus. |
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 |
|---|---|---|
environment_id | string |
SELECT examples​
- list
Span activity per service of an environment within retention; a service absent from the list has produced no spans at all. Backed by the Railway GraphQL query tracingStatus.
SELECT
service_id,
last_edge_span_at,
last_service_span_at
FROM railway.observability.tracing_status
WHERE environment_id = '{{ environment_id }}' -- required
;