Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Query a trace

Queries the environment's traces over a bounded interval, returning summaries without spans.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Queries the environment's traces over a bounded interval, returning summaries without spans.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/traces:query
  • Scope observability:read
  • Effect read — nothing is written.
  • Collection traces

#Request

FieldTypeWhat it is
parentstringThe parent the method acts in. Required.
filterstringAIP-160 filter over the typed, allowlisted fields.
start_timetimestampThe interval start; required, at most 31 days before end_time. Required.
end_timetimestampThe interval end; default now.
order_bystringtime desc (default) or time asc.
page_sizeint32At most this many; default 100, clamped to 1000.
page_tokenstringnext_page_token of the previous page; bound to tenant, interval, filter, and order.

#Response

FieldTypeWhat it is
tracesTrace[]The page.
next_page_tokenstringThe token of the next page; empty on the last page.

#Trace

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/traces/{trace}.
uidstringtrc_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
trace_idstringThe W3C trace id (32 hex). Output only.
root_span_namestringThe root span's name. Output only.
root_service_namestringThe root span's service. Output only.
start_timetimestampThe earliest span start. Output only.
end_timetimestampThe latest span end. Output only.
has_errorboolWhether any span has an error status. Output only.
spansSpan[]Every span, in start order; empty in query results. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#Span

FieldTypeWhat it is
trace_idstringW3C trace id (32 hex). Required.
span_idstringW3C span id (16 hex). Required.
parent_span_idstringThe parent span id; empty for a root span.
span_namestringThe operation name. Required.
service_namestringThe emitting service. Required.
kindSpanKindThe span kind. One of internal, server, client, producer, consumer.
start_timetimestampWhen the span started. Required.
end_timetimestampWhen the span ended; not before start_time. Required.
errorboolWhether the span failed.
error_messagestringThe error message, when error.
attributesmap<string, string>Typed attributes, at most 64.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/traces:query" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"start_time":{}}'