Skip to content

DOCS

Ingest keys and content

Owners and admins create keys in Settings, or in the setup walkthrough. The plaintext starts with bx_ and is shown once. The server stores a hash. Revoking a key stops the next request. Old uploads stay.

After Create key, Settings shows the OTLP endpoint for this site (https://<this origin>/v1/traces), the x-balerx-key header (or Authorization: Bearer), OTEL_EXPORTER_OTLP_ENDPOINT / OTEL_EXPORTER_OTLP_HEADERS, a trace.json body, and a curl you can run. HTTP 202 means the key worked. Hide key in snippets replaces the plaintext with <key> in those commands. Hide or reload the page to drop the key from the browser; it is not written to storage, the URL, or logs.

Each key has scopes. The server checks them on every ingest route. A missing scope returns HTTP 403. The JSON body includes scope (the missing scope name) and a message. It does not include the key id or remaining scopes. balerx upload and balerx policy pull print a plain missing-permission line and point at Settings.

ScopeUsed for
ingest:tracesOTLP traces (POST /v1/traces and aliases)
scan:uploadbalerx upload --scan (POST /v1/ingest/scans)
policy:readbalerx policy pull (GET /v1/ingest/policy)
activity:writebalerx upload --activity-log (POST /v1/ingest/activity)

New keys in Settings start with ingest:traces only. The setup walkthrough requests ingest:traces and scan:upload. Give a key only the scopes that flow needs. Settings can narrow scopes on an existing key. Keys created before scopes existed keep all four so production ingest does not lock out. Per-agent keys are not part of this change.

Key names are 1 to 120 Unicode characters. Project and Monitor policy names use the same cap. Organization names stay at 80. Session JSON and forms larger than 512 KB return HTTP 413. OTLP, scan, and activity ingest accept up to 5 MB.

Content capture

Content capture is off. While it is off, these attributes are dropped:

  • gen_ai.input.messages
  • gen_ai.output.messages
  • gen_ai.system_instructions
  • gen_ai.tool.call.arguments
  • gen_ai.tool.call.result

Metadata still arrives: agent name, tool name, model, token counts, destination host, and argument key names with sizes. Unsalted hashes of argument values are not stored. That is enough for the default incident rules.

Turning capture on stores prompts, completions, and tool arguments after redaction. Anyone with access to the project can open them. Settings shows a warning while capture is on. Redaction replaces common key shapes, including Stripe live and test keys, Google API keys, GitHub fine-grained tokens, npm tokens, HTTP Authorization Bearer and Basic values, and passwords in URL userinfo, plus the existing AWS, GitHub classic, OpenAI, Slack, JWT, PEM, and assignment shapes. Useful non-secret text is kept. Redaction can still miss a secret. Leave capture off unless you have a reason to read the text, and set a retention period in Settings when you do.

Test trace

This JSON is one agent span. Post it with the key. A new run should show up under Runs. The setup walkthrough polls for that run.

Use a new trace id if you send it more than once and want a distinct row. The id is 32 hex characters. The span id is 16 hex characters.

{
  "resourceSpans": [
    {
      "scopeSpans": [
        {
          "spans": [
            {
              "traceId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "spanId": "bbbbbbbbbbbbbbbb",
              "name": "invoke_agent",
              "attributes": [
                {
                  "key": "gen_ai.operation.name",
                  "value": { "stringValue": "invoke_agent" }
                },
                {
                  "key": "gen_ai.agent.name",
                  "value": { "stringValue": "onboarding-check" }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
curl --fail --silent --show-error --request POST \
  --header "content-type: application/json" \
  --header "x-balerx-key: YOUR_INGEST_KEY" \
  --data @trace.json \
  https://balerxgate.com/v1/traces

A successful response is HTTP 202 and includes how many spans were accepted. HTTP 429 means the shared ingest limiter was exceeded; wait the whole number of seconds in Retry-After (at least 1) and retry. Spans older than 7 days or more than 10 minutes in the future are counted in rejected instead. Quota uses server receive time. The key is bound to this project, not to an agent name. See Monitor trust model.