Register an OTel attribute key as a facet.
Changed onAssigns the key to the lowest available slot column (1..=20) and inserts the mapping into Postgres with status: pending. Returns immediately — the historical backfill (populating the slot column for spans already ingested before this call) runs entirely in the background, advanced by a periodic poller; poll GET /otel/facets and check the returned status (pending -> running -> completed/failed) to track progress. New spans start getting the attribute written into the slot column right away, independent of backfill progress.
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/otel/facets
- Auth: HTTP bearer
Request body
Response
Facet registered
Example response
{
"created_at": "2025-10-12T12:15:47.609192Z"
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning