Skip to content
Console
On this page

Write a wide event

Atomically admits a batch of scrubbed wide events.

Atomically admits a batch of scrubbed wide events. An existing causal identity with a different payload is a conflict, not a second event.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/wide_events:write
  • Scope observability:ingest
  • Effect write — a successful call changes state.
  • Collection wide_events

Request

FieldTypeWhat it is
parentstringResource name of the environment that owns the evidence. Required.
wide_eventsWideEvent[]Canonical wide event records. Required.

WideEvent

FieldTypeWhat it is
namestringResource name, assigned by Observe.
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.

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.

Response

FieldTypeWhat it is
admitted_countint32Number of records acknowledged, including identical replays.

Errors

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:write" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"wide_events":[{"release_sha":"…","request_id":"…","schema":"…","service":"…","span_id":"…","trace_id":"…","ts_utc":{},"weight":1}]}'