Skip to content

OTLP endpoint

URL https://app.ctxflow.sh/v1/traces
Protocol OTLP/HTTP. gRPC is not accepted here (use the collector for gRPC producers)
Authentication Authorization: Bearer <API key>. The key decides the organization, project and environment
Body application/x-protobuf or application/json (OTLP JSON mapping), optionally Content-Encoding: gzip
Limit Value Answer
Body, also after decompression 5 MB 413
Spans per request 20,000 413
Span events, span links, attribute entries per request 200,000 each 413
Attribute value nesting 32 levels 400
Text per attribute value 64 KiB (UTF-8), cut at a code point and marked truncated stored
Text per span 512 KiB; past it a text is not kept (key and size are) stored, over_cap
Text rows 256 per span, 10,000 per request; the texts a turn shows are kept first (inputs, outputs, status, then item texts) stored, over_cap

The OpenTelemetry Python exporter sends batches far below these limits.

A request is accepted or rejected as a whole: never partially. Nothing is written when it is rejected.

  • Timestamps must be in 0..2^64−1, int64 values in range, strings well-formed UTF-8 without U+0000.
  • Attributes of spans, events, links, resource and scope are checked against the semantic conventions: a known ctxflow.* key with a value of the wrong type is rejected.
  • Left out, never rejected: an unknown ctxflow.* key, a key longer than 256 characters, more than 128 attributes in one list (span, event, link, resource or scope), a string value over 8,192 characters (text that ctxflow stores as text has its own caps, above) and a list over 10,000 items. The rest of the request is accepted. The app counts what was left out: Data received shows “N attributes ignored in the last 7 days” (Data received).
  • Rejected with 400: a duplicate key in an attribute list, a key with a non-ASCII character, a ctxflow.* key nested below the top level, invalid span, parent or link ids.
  • Text (content keys): with the project’s Store text on, content attributes of spans, events and links are stored apart; content in a resource or scope attribute is rejected. With Store text off, the request is accepted (200), the spans are stored, and content attributes of spans, events and links and the status message are dropped, never stored.
Status When Body
200 Accepted ExportTraceServiceResponse in the request format, partial_success empty
400 Malformed body, or validation failed google.rpc.Status ({"code":3,"message":...}); the message names the key, never a value
401 Missing, malformed, unknown or revoked key No detail. A revoked key or a wrong secret for a known prefix is marked on the key list
413 A limit above
415 Another content type or encoding
503 A failure that is not the client’s (database down) google.rpc.Status code UNAVAILABLE (14) and Retry-After: 5: OTLP exporters retry

A span sent twice is counted once in the app.

An empty request with a valid key answers 200; a wrong key answers 401. The exact command, and ctxflow-otel check, are on Verify your setup.

GET https://app.ctxflow.sh/v1/whoami with Authorization: Bearer <key> answers {"project":{"name":...},"environment":{"name":...},"lastEventAt":...}: the project and environment of the key, and the time of the newest event of that environment (null before the first). It is read-only and stores nothing. A missing, unknown or revoked key answers 401, and an unavailable database 503. ctxflow-otel check prints it as its identity: line (Verify your setup). The route is also listed in the HTTP API.