Skip to content

Event fields

Events are sent to POST /v1/events in batches. Each event describes one HTTP operation or instrumented call.

Required

SDK (Node)SDK (Python)Ingest JSONDescription
endpointendpointendpointRoute label, e.g. POST /v1/chat
methodmethodmethodHTTP verb or OTEL
statusCodestatus_codestatus_codeHTTP or synthetic status
latencyMslatency_mslatency_msDuration in milliseconds

Timestamps & size

FieldIngest JSONDescription
timestamptimestampUnix seconds (default: now)
requestSizeBytesrequest_size_bytesRequest body size
responseSizeBytesresponse_size_bytesResponse body size

Provider & AI

FieldIngest JSONDescription
providerprovidere.g. openai, stripe
providerCategoryprovider_categoryai, payments, …
modelNamemodel_nameLLM model id
tokensInputtokens_inputInput tokens
tokensOutputtokens_outputOutput tokens
totalTokenstotal_tokensTotal (Node may set explicitly)
streamingLatencyMsstreaming_latency_msFull stream time
firstTokenLatencyMsfirst_token_latency_msTTFT
cacheHitcache_hitPrompt cache hit
costUsdcost_usdEstimated USD

Tracing

FieldIngest JSONDescription
traceIdtrace_id32 hex chars
spanIdspan_id16 hex chars
parentSpanIdparent_span_idParent span
sessionIdsession_idUser session
userIduser_idUser id
serviceNameservice_namee.g. api, worker
operationNameoperation_nameOperation within service
environmentenvironmentproduction, staging, …
releaseVersionrelease_versionDeploy / git SHA

Errors & metadata

FieldIngest JSONDescription
errorMessageerror_messageError text for failures
metadatametadataJSON object — no secrets
retryCountretry_countRetry attempt
isWebhookis_webhookInbound webhook handler

Path normalization

Middleware rewrites dynamic segments:

  • UUIDs → /:id
  • Numeric segments → /:id

GET /users/42/orders/9GET /users/:id/orders/:id

Provider auto-detection

Hostnames and path hints map to supported providers. Override with explicit provider when needed.

PII & secrets

WARNING

Do not send passwords, API keys, card numbers, or raw emails in metadata.