Appearance
Quick Start
First event, visible in the console. Two minutes, one curl.
1. Create a Stream
Open Telemetry in the Console and click Create first Stream (or Manage Streams, then + New Stream, when a Stream already exists).
- Pick Events.
- Name the Stream
Weband leave retention at 7 days. - Click Create Stream.
2. Issue an ingest key
The new Stream opens on Keys & Setup. Click Issue Key and confirm.
The new key appears right away; copy the key, which starts with lit_. Later, keys show as a preview: Reveal (or Copy) returns the full key again.
3. Send an event
bash
curl -X POST https://ws.latency.app/v1/ingest \
-H "Authorization: Bearer lit_XXXXXXXXXXX" \
-H "Content-Type: application/json" \
-d '{"name": "signup", "plan": "pro", "source": "pricing"}'Response:
json
{ "accepted": true, "bytes": 54 }4. Find the event
Back in Telemetry, open Explore. The event is there, with plan and source ready for filtering (stream:Web shows only that Stream's data). The request URL names no Stream: the key decides where data goes.
Next steps
- Instrument an app with OpenTelemetry: automatic traces, metrics and logs
- Send logs and metrics over HTTP: every format the API accepts