Sending Traces
Esta página aún no está disponible en tu idioma.
Mibo accepts traces on a single endpoint, POST /public/traces, with two supported request shapes. Both produce the same canonical trace internally — pick whichever fits your stack.
The two paths
Section titled “The two paths”Both paths are first-class. Neither is a workaround for the other.
Which one fits your stack
Section titled “Which one fits your stack”| You’re on… | Use |
|---|---|
| A service emitting OTel via the Vercel AI SDK, OpenLLMetry, or another GenAI instrumentation | OTLP. See the Vercel AI SDK and OpenLLMetry quickstarts. |
| LangChain or LangGraph agents | OTLP through OpenInference, OpenLLMetry, or LangSmith OTEL. Start with the LangGraph quickstart or check the settings for your instrumentation. |
| An app instrumented with OpenInference | OTLP. See the OpenInference quickstart to configure your trace exporter. |
| An OpenTelemetry Collector that already exports to another backend | OTLP. Add Mibo as a second exporter. See Collector fan-out. |
| n8n self-hosted ≥ 2.19 using n8n’s native OTLP export (Preview) | OTLP. Node content is not exported, so evaluation is mostly structural. See Send traces from n8n. |
| n8n that needs node input and output, including n8n Cloud | Your API through the n8n community node |
| Flowise self-hosted with native OTel enabled | OTLP |
| Flowise Cloud (no host-level OTel) | Your API via the Flowise template |
| Your own code without OpenTelemetry, scripts, or curl | Your API |
If you can choose OTLP, it usually wins — your existing exporter is already batched, retried, and instrumented. Your API exists so users on managed hosts (n8n Cloud, Flowise Cloud, anything where you can’t touch host env vars) get the same first-class trace ingestion.
What’s the same across both paths
Section titled “What’s the same across both paths”- Endpoint:
POST https://api.mibo-ai.com/public/traces - Auth:
x-api-keyheader. See API Keys & Trace Routing. - Identity: Your API uses the
x-request-idHTTP header. Present → replaces the trace with that id. Absent → server-generated UUID, so each POST creates a new trace. OTLP usestraceIdto merge batches and ignoresx-request-id. - Agent resolution: Your API uses a single-agent key automatically; otherwise
serviceNamenames the Agent like OTLPservice.name, andplatformIdis an optional advanced override. With no identifier, a workspace key uses the workspace’s only active non-demo Agent, or returns400 SERVICE_NAME_REQUIRED. A restricted key that matches no allowed Agent returns400 CUSTOM_API_PLATFORM_NOT_FOUND. OTLP routes single-Agent keys directly. Other keys matchservice.namewithin their allowed Agents. A key for all agents in the workspace can fall back to its only active non-demo Agent when the service name is unconfigured. - Canonical span model: spans with
span_id,parent_span_id,name,attributes, optional timing and status.span.nameis always the user-facing display label of the step. - Redaction: Mibo redacts secrets on a best-effort basis before it stores a trace. Personal data redaction is an opt-in workspace setting. See Data handling.
What’s different
Section titled “What’s different”| OTLP | Your API | |
|---|---|---|
| Body shape | resourceSpans[].scopeSpans[].spans[] (OTel envelope) |
{ spans: [...] } (flat) |
| Attributes encoding | OTel key/value list ({ key, value: { stringValue: "..." } }) |
Plain JSON object |
| Batching | Multi-POST: server merges by traceId/span_id |
One POST per trace; create-or-replace by externalId |
| Best for | Long-lived processes, SDK-instrumented services | Synchronous flows, short scripts, managed-host integrations |
Mibo reads the same attributes on both paths — gen_ai.response.text, gen_ai.usage.input_tokens, gen_ai.tool.name, http.response.status_code, and the rest of the GenAI / HTTP semconv keys. Your assertions don’t change.
What every span should carry
Section titled “What every span should carry”Whichever path you send on, these are the attributes assertions look up. Emit what you have; missing data surfaces as missing instrumentation in the dashboard rather than silent pass/fail.
| Attribute | What it powers |
|---|---|
gen_ai.operation.name set to chat (or generate_content, text_completion) and gen_ai.request.model |
Marks the span as a model call. Mibo records the trace’s model from these spans. Without them the dashboard shows Model not reported. |
gen_ai.input.messages |
The user message shown on the trace and used by semantic checks and Checks a trace when conditions |
gen_ai.response.text |
Semantic assertions, response_regex, default text extraction |
gen_ai.output.messages |
Same as above when present (preferred over response.text) |
gen_ai.usage.input_tokens / output_tokens / reasoning.output_tokens |
token_limit |
gen_ai.tool.name + gen_ai.tool.call.arguments |
expected_tool_calls inside a node_call (the span becomes a child tool call of its parent) |
http.response.status_code |
http_status |
Span name |
node_call (case-insensitive substring match) |
Root span start/end_time_unix_nano |
response_time.max_ms |
See Assertion Reference for the full mapping.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Request size | 10 MB, as sent or after gzip decompression |
| Pending traces | 50 per workspace, within 64 MiB. See Agent limit reached. |
| Stored traces in an unverified workspace | 1,000 |
| OTLP evaluation delay | About 5 seconds after the last batch, with a 60-second cap from the first batch |
Each plan sets these allowances:
| Plan | Agents | History days | AI evaluations per month |
|---|---|---|---|
| Free | 3 | 7 | 100 |
| Pro | 10 | 90 | 5,000 |
| Team | 100 | 365 | 25,000 |
Each semantic check that runs counts as one AI evaluation. A check with Judge output images on also counts one for each image it sends. Procedural checks do not count, and sending a trace is not billed. History days set how far back the dashboard shows results, and how long Mibo keeps trace content. See Trace retention.
When a workspace reaches its monthly allowance, its remaining semantic checks show Not evaluated: monthly AI evaluation limit reached. Procedural checks still run.