Skip to content
Console
On this page

Query a wide event

Reads an environment's scrubbed wide events over a bounded time range.

Reads an environment's scrubbed wide events over a bounded time range.

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

Request

FieldTypeWhat it is
parentstringResource name of the environment that owns the evidence. Required.
start_timetimestampInclusive UTC event-time lower bound. Required.
end_timetimestampExclusive UTC upper bound, at most 31 days after the start. Required.
filterWideEventFilterAll populated exact-match predicates are applied together.
page_sizeint32Results per page, default 50 and maximum 100.
page_tokenstringOpaque continuation from an earlier page of the exact query.

WideEventFilter

FieldTypeWhat it is
trace_idstringNonzero W3C trace identifier.
request_idstringOpaque request correlation identifier; not an idempotency key.
org_idstringOrganization whose verified grant owns the evidence.
project_idstringProject whose verified grant owns the evidence.
env_idstringEnvironment whose verified grant owns the evidence.
release_shastringFull hexadecimal Git revision of the emitting release.
servicestringService that emitted the evidence or handled the downstream call.
hoststringEffective hostname without scheme, path, userinfo, or port.
route_templatestringMatched router template, never a concrete URL or its query.
status_codeint32HTTP response status for the unit of work.
error_codestringMachine-readable failure class.

Response

FieldTypeWhat it is
wide_eventsWideEvent[]Canonical wide event records.
next_page_tokenstringOpaque token for the next page, empty when exhausted.

WideEvent

FieldTypeWhat it is
namestringResource name, assigned by Observe.
uidstringStable TypeID. Output only.
metaResourceMetaResource metadata. Output only.
schemastringExactly sylphx.wide_event.v1. Required.
ts_utctimestampTime the unit of work completed. Required.
trace_idstringNonzero lowercase W3C hex identifiers. The parent is empty for a root. Required.
span_idstringW3C identifier of this span, or this downstream leg. Required.
parent_span_idstringParent W3C span; empty at the root.
request_idstringThe opaque request correlation ID. Required.
servicestringEmitting service. Required.
env_idstringTenant IDs come from the verified grant; supplied values must agree.
release_shastringFull hexadecimal Git revision of the emitting release. Required.
org_idstringOrganization whose verified grant owns the evidence.
project_idstringProject whose verified grant owns the evidence.
actor_idstringOpaque actor ID; never contact data or credentials.
weightfloatInverse probability of inclusion; one for unsampled or forced-kept rows. Required.
hoststringEffective hostname without scheme, path, userinfo, or port.
http_methodstringHTTP method, when this work serves a request.
route_templatestringMatched router template, never a concrete URL or its query.
status_codeint32HTTP response status for the unit of work.
error_codestringMachine-readable failure class.
error_reasonstringBounded, scrubbed diagnostic context for the failure.
latency_msdoubleElapsed work or leg time in milliseconds.
upstream_statusint32HTTP status from the upstream dependency, if available.
pool_wait_msdoubleTime waiting for pooled capacity in milliseconds.
downstream_legsWideEventLeg[]Bounded list of observed downstream calls.
ai_providerstringAI provider used by the request.
ai_modelstringModel the provider served.
ttft_msdoubleTime to first token in milliseconds.
tokens_inuint64Input token count.
tokens_outuint64Output token count.
stream_stall_msdoubleObserved stream stall duration in milliseconds.
tool_fail_codestringMachine-readable AI tool failure code.
fallback_triggeredboolWhether a fallback execution path ran.
localestringLocale selected for the interaction.
cwv_lcp_msdoubleLargest Contentful Paint in milliseconds.
cwv_clsdoubleUnitless cumulative layout shift.
cwv_inp_msdoubleInteraction to Next Paint in milliseconds.
hydration_driftboolWhether the server and browser hydration diverged.
app_slugstringApplication slug used to join commercial or UX evidence.
money_intent_idstringOpaque Money intent identifier.
checkout_session_idstringOpaque checkout session identifier.
amount_minorint64Monetary amount in the currency's minor unit.
currencystringThree-letter ISO 4217 currency code.
experiment_idstringOpaque experiment identifier.
attribution_idstringOpaque attribution join ID, not raw click or customer data.
metered_cash_burn_usddoubleMeasured cash burn in US dollars.
prepaid_pool_headroomdoubleRemaining prepaid capacity in the source meter's units.
vendor_wallet_usddoubleObserved vendor wallet balance in US dollars.
root_cause_span_idstringW3C span identified by causal analysis.
top_divergent_dimsWideEventDimension[]Bounded ranked dimension evidence reported with this event.
actuator_actionstringAction taken for the anomaly, when applicable.
flight_recorder_tailWideEventLeg[]Bounded causal prefix accompanying a failed unit of work.

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.

WideEventLeg

FieldTypeWhat it is
servicestringService that emitted the evidence or handled the downstream call. Required.
span_idstringW3C identifier of this span, or this downstream leg.
request_idstringOpaque request correlation identifier; not an idempotency key.
latency_msdoubleElapsed work or leg time in milliseconds.
upstream_statusint32HTTP status from the upstream dependency, if available.

WideEventDimension

FieldTypeWhat it is
dim_iduint32Stable numeric dimension identifier used by the diff engine. Required.
val_iduint64Stable unsigned value identifier within that dimension. Required.
dimensionstringReadable name of the dimension, when available.
valuestringScrubbed readable value, when available.
js_divergencedoubleJensen–Shannon divergence between the cohorts.
liftdoubleAnomalous share divided by baseline share, when defined.
e_valuedoubleAnytime-valid evidence from the statistical engine, when available.

Errors

  • UNAUTHENTICATED — No valid key or token was presented.
  • PERMISSION_DENIED — The key lacks the method's permission.
  • INVALID_FIELD — A field failed validation.
  • PAGE_TOKEN_MISMATCH — A page token was reused with different parameters.
  • UNAVAILABLE — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body Errors describes.

Examples

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