DEVELOPER DOCUMENTATION
Send production events to TrafficWar.
Start with the Node.js or Python server SDK and use the same event fields across live maps, metrics, traces, alerts, and queries.
Instrument your backend with a TrafficWar SDK.
Install the Node.js or Python SDK, capture a measured request, and verify your integration with fake ingest.
Use stable event identities that stay useful at scale.
Reference for TrafficWar event categories, labels, sources, operation types, traces, HTTP fields, timestamps, and properties.
Send events over the TrafficWar ingest API.
TrafficWar capture and batch endpoints, Bearer authentication, JSON and MessagePack bodies, batch limits, quotas, and durable acknowledgement.
Connect spans with one trace ID and route label.
Model TrafficWar traces across HTTP, database, Redis, S3, and external-service tiers using trace_id, label, source, span_kind, and operation_type.
Scrape service-scoped hot metrics.
Configure Prometheus to scrape TrafficWar lifetime in-memory hot event counters and latency histograms with a service API key.
Turn metric conditions into incidents and notifications.
Create TrafficWar alert rules and deliver incidents through email, Telegram, or verified webhooks with plan-aware quotas and cooldowns.
Query service-scoped events programmatically.
Use the TrafficWar query API with a Bearer service key to retrieve filtered event rows without exposing object storage.
Start here
- Getting started: install the SDK, configure a key, and capture the first event.
- Event schema: choose stable event, label, source, and operation identities.
- Ingest API: send bare JSON or MessagePack arrays directly when an SDK is not a fit.
Investigate and integrate
- Traces: connect spans with trace_id and a shared label.
- Prometheus: scrape service-scoped lifetime hot metrics.
- Alerts: route incidents to email, Telegram, or webhooks.
- Query API: retrieve service-scoped event rows with a Bearer key.