Read a trace
Returns the spans the workspace's apps sent in a trace, in tree order, with each span's service, timing, status, first exception and attributes. Spans from outside the workspace are left out. Answers 404 when no span of the trace belongs to the workspace, it was sampled out, or it is older than 7 days.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Trace id, up to 32 hex characters
Query Parameters
Unix milliseconds near the trace, such as a log line's time, which narrows the lookup
0 < value <= 9007199254740991Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/traces/string"{ "id": "string", "start": 0, "duration": 0, "total": 0, "spans": [ { "id": "string", "parent": "string", "depth": 0, "orphan": true, "name": "string", "kind": "server", "app": "string", "env": "production", "service": "string", "start": 0, "duration": 0, "status": "ok", "message": "string", "exception": { "type": "string", "message": "string", "stack": "string" }, "attributes": { "property1": "string", "property2": "string" } } ]}Query metrics across a workspace's apps GET
Runs a PromQL query at one instant across the metrics of every app in the workspace, or only those in `env` and `region`, and returns Prometheus's answer unchanged. Group by `namespace` to tell the apps apart. The labels and series are queryAppMetrics'. A query the store refuses comes back with the store's own status and `error`. The path is the store's own, so a Grafana data source can point here too.
Preview a public repository or template POST
Read a public GitHub repository, or a template, and preview what it would deploy. Public: no token needed. Answers 429 when GitHub's rate limit, shared by every caller, runs out. Signed in, use inspectSource.