Skip to content

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.

  1. Your endpoint’s base URL, such as https://otlp.example.com. EdgeKit adds /v1/logs to it. A trailing slash is removed.
  2. Optional headers, in OpenTelemetry’s key=value,key=value form. This is where your backend’s ingestion key goes, for example x-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.

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:

  • timeUnixNano and observedTimeUnixNano: when EdgeKit received the event. A time that cannot be read is 0, never the time of sending, so a resent record does not move.
  • severityNumber 9 and severityText INFO, on every record.
  • body: the event’s name, such as link_click or page_view.
  • attributes: every column of the event that has a value, under its column name. A whole number is an intValue, 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.
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.

edgekit.ai