OpenTelemetry (OTLP)
EdgeKit can forward every event it collects for your organization to your own OpenTelemetry backend, over OTLP/HTTP with JSON bodies. Each event becomes one log record. See Forwarding for forwarding in general.
What you give EdgeKit
Section titled “What you give EdgeKit”- Your endpoint’s base URL, such as
https://otlp.example.com. EdgeKit adds/v1/logsto it. A trailing slash is removed. - Optional headers, in OpenTelemetry’s
key=value,key=valueform. This is where your backend’s ingestion key goes, for examplex-api-key=abc123. A value may contain=.
EdgeKit stores both for your organization. There is no console screen for them. The forwarder is on while EdgeKit holds an endpoint; turning it on or off takes a deploy, which EdgeKit runs.
What EdgeKit sends
Section titled “What EdgeKit sends”Every valid event from all your sites, anonymous ones included. Bad rows are not forwarded. Events are sent only after EdgeKit has archived them, so the forwarded copy is the row the archive holds.
One POST {endpoint}/v1/logs carries a batch of up to 100 events, and a batch waits at most 5 seconds to fill. Each
request has one resource:
| Resource attribute | Value |
|---|---|
service.name |
edgekit-collector- followed by your organization’s slug |
deployment.environment.name |
prod |
service.version |
The EdgeKit release that sent it |
The scope is cloud.edgekit.collector-forwarder. Each log record has:
timeUnixNanoandobservedTimeUnixNano: when EdgeKit received the event. A time that cannot be read is0, never the time of sending, so a resent record does not move.severityNumber9andseverityTextINFO, on every record.body: the event’s name, such aslink_clickorpage_view.attributes: every column of the event that has a value, under its column name. A whole number is anintValue, which OTLP’s JSON encoding writes as a string. Entities and the self-describing event’s data are JSON strings: EdgeKit does not flatten them into attribute names nobody wrote.
Delivery
Section titled “Delivery”| Your endpoint | EdgeKit |
|---|---|
Answers 2xx |
The batch is delivered |
Answers 429 or 5xx, or not within 10 seconds |
Retries the batch, up to three times, then drops it |
| Answers any other status | Drops the batch at once |
A dropped batch is lost only from your backend: the events stay in EdgeKit’s archive. A wrong key usually answers
401 or 403, so every batch is dropped until EdgeKit has the right one. A retried batch can arrive twice. Each
record’s event_id attribute is the event’s id, so duplicates can be removed by it.