Query traces
Returns the spans of a tenant’s calls over a span of time, oldest first. Every call is a span. Luna keeps the spans of calls that failed, were slow or were sampled. Name a trace to read one trace whole, however long ago it ran.
/_luna/telemetry/{tenant}/tracesAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
traces:readtenantstringrequiredThe tenant, by its full name.
sinceinteger<int64>Spans from this moment on, in milliseconds since the Unix epoch. One hour ago when left out, or any time when you name a trace.
untilinteger<int64>Spans up to this moment, in milliseconds since the Unix epoch. Now when left out.
tracestringOnly the spans of the trace with this id.
typestringOnly spans of this luna type.
handlerstringOnly spans of this handler.
errorsbooleanOnly spans that failed.
minMsinteger<int64>Only spans that took at least this long, in milliseconds.
limitintegerHow many spans to return. 200 when left out, 5000 at most.
The spans that match.
spansSpan[]requiredThe spans, oldest first.
Show propertiesHide properties
SpanseqstringrequiredThe span's number on the server that kept it, as text.
memberinteger<int64>requiredThe server that kept the span.
traceIdstringrequiredspanIdstringrequiredparentSpanIdstring | nullThe span this one ran within. Left out for the first span of a trace.
namestringrequiredkindstringrequiredserver, client, producer, consumer or internal.
startNsinteger<int64>requiredWhen the span started, in nanoseconds since the Unix epoch.
endNsinteger<int64>requiredWhen the span ended, in nanoseconds since the Unix epoch.
errorstring | nullWhat went wrong, for a span that failed.
attrsobject | nullThe span's attributes.
eventsobject[] | nullThings that happened during the span, each with a name, a timeNs and its own attrs.
linksobject[] | nullOther spans this one relates to, each with a traceId and a spanId.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.