Quickstart: OpenTelemetry Collector fan-out
Esta página aún no está disponible en tu idioma.
If your traces already flow through an OpenTelemetry Collector to Langfuse, Datadog, or another backend, you can keep that pipeline unchanged. You add a second pipeline that sends a copy of the same traces to Mibo. Your observability tool keeps the traces it has today, and Mibo tests them.
Before you start
Section titled “Before you start”- A Mibo account with a verified email. Open the verification link in the browser you signed up with.
- An OpenTelemetry Collector that receives your application’s traces over OTLP.
- An application whose traces include the user input and the final response. See Capture the content Mibo needs.
1. Create a Mibo API key
Section titled “1. Create a Mibo API key”Create an account at app.mibo-ai.com, or sign in. Open the verification link in the browser you signed up with. If you open it elsewhere, Mibo asks you to choose a new password and earlier API keys stop working. If you own the workspace, create an API key in Settings and copy it. Mibo shows the key only once. If you’re a workspace member, ask the owner for a key.
The Collector forwards each trace’s service.name unchanged. When Mibo receives the first trace for a new service.name, it creates an Agent with that name. You can rename the Agent afterwards. A key scoped to one Agent routes traces to that Agent instead. See trace routing for other key scopes and the Agent limit.
2. Add Mibo to the Collector
Section titled “2. Add Mibo to the Collector”Add an otlp_http/mibo exporter and a traces/mibo pipeline. Leave your existing exporter and pipeline as they are. In the example below, otlp_http/existing stands for your current backend’s exporter. Both pipelines read from the same otlp receiver, so each gets a copy of every trace. This configuration is illustrative: keep your own receivers, processors, and existing exporter settings.
receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318
processors: batch: {} batch/mibo: send_batch_size: 20 send_batch_max_size: 20
exporters: otlp_http/existing: endpoint: <YOUR_EXISTING_BACKEND_ENDPOINT> otlp_http/mibo: traces_endpoint: https://api.mibo-ai.com/public/traces headers: x-api-key: ${env:MIBO_API_KEY} encoding: proto compression: gzip
service: pipelines: traces: receivers: [otlp] processors: [batch] exporters: [otlp_http/existing] traces/mibo: receivers: [otlp] processors: [batch/mibo] exporters: [otlp_http/mibo]Start the Collector with MIBO_API_KEY set to your Mibo API key.
What matters in the Mibo exporter:
traces_endpointis used as written. If you setendpointinstead, use the base URLhttps://api.mibo-ai.com. The exporter appends the supported/v1/tracespath.headerscarries your key inx-api-key.encodingcan beprotoorjson. Mibo accepts both over OTLP/HTTP. Mibo does not accept OTLP/gRPC, so do not use theotlpgRPC exporter for Mibo.compression: gzipis the exporter default, and Mibo accepts it.batch/mibokeeps each request small. Mibo accepts up to 10 MB per request, and verbose GenAI spans can pass that in large batches.
3. Send your first trace
Section titled “3. Send your first trace”- Restart the Collector so it loads the new pipeline.
- Run one interaction through your Agent.
- Open Traces and select your Agent. The same trace still appears in your existing backend.
If the trace does not appear, check the Collector’s logs for the Mibo exporter’s response:
| Status | Cause |
|---|---|
| HTTP 401 | The API key is missing, invalid, or revoked. |
HTTP 401 with API_KEY_EXPIRED in the message |
The API key expired. Replace it with an active key. |
403 UNVERIFIED_TRACE_LIMIT_REACHED |
The workspace owner’s email is not verified, and the workspace already stores 1,000 traces. |
400 OTLP_SERVICE_NAME_REQUIRED |
The trace has no service.name. |
400 OTLP_PLATFORM_NOT_FOUND |
A restricted key cannot find an allowed Agent matching the trace’s service.name. |
403 OTLP_PLATFORM_NOT_ALLOWED |
The service name matched an Agent, but the API key cannot write to it. |
413 PAYLOAD_TOO_LARGE |
The request is over 10 MB. Lower send_batch_max_size. |
| HTTP 403 with “Monthly trace ingestion limit reached” in the message | Your workspace has used its monthly trace quota. After capacity returns, repeat the operation that emitted the trace or resend the rejected payload. |
402 OTLP_PLATFORM_ARCHIVED |
The Agent that matches the trace’s service.name is archived. Restore it in Mibo. |
422 TRACE_TOO_COMPLEX |
The trace is too complex to accept. Simplify its structure. |
429 RATE_LIMIT_EXCEEDED |
The API key is sending requests faster than its limit allows. The Collector retries after a delay. |
503 TRACE_STORE_BUSY, 503 TRACE_INGEST_BUSY |
Mibo is temporarily busy. The Collector retries these. |
If the Collector also receives traces from other services, a workspace key can create an Agent for each new service.name. When a batch mixes accepted and rejected traces, Mibo returns 200 with a partial-success response that counts the rejected spans, and stores the accepted traces. To send Mibo only your Agent’s traces, add the Collector’s filter processor to the traces/mibo pipeline. It ships in the contrib distribution.
4. Create your first test
Section titled “4. Create your first test”- Open the trace on the Traces page and click Create test from this trace. The editor opens with a draft built from that trace.
- Review the generated test cases and click Save test. Keep the test Active.
- Run another interaction through your Agent. Mibo evaluates each new trace against your saved tests.
- Open the new trace on the Traces page and read Test results.
Capture the content Mibo needs
Section titled “Capture the content Mibo needs”Mibo needs message content to test a trace. The Collector forwards what your instrumentation records. Mibo reads the user input and the final response from the attributes in the table below. Without user input, tests with a Checks a trace when condition are skipped and the trace shows This trace had no usable user input for scenario routing. Tests with an empty Checks a trace when still run.
Mibo maps these instrumentations to the same GenAI attributes:
| Instrumentation | Versions Mibo has tested | Input | Output | Tokens | Model | Setting that records content |
|---|---|---|---|---|---|---|
Vercel AI SDK (@ai-sdk/otel) |
AI SDK 7 and AI SDK 5 | ai.prompt.messages or gen_ai.input.messages |
ai.response.text or gen_ai.output.messages |
ai.usage.* or gen_ai.usage.* |
ai.model.id or gen_ai.request.model |
telemetry.recordInputs and telemetry.recordOutputs (AI SDK 5: experimental_telemetry). Both default to true. |
| OpenLLMetry and Traceloop, including LangChain | traceloop-sdk 0.63 and 0.52 (Python) |
gen_ai.input.messages or gen_ai.prompt.N.* |
gen_ai.output.messages or gen_ai.completion.N.* |
gen_ai.usage.* |
gen_ai.request.model |
TRACELOOP_TRACE_CONTENT=true. |
| OpenInference LangChain instrumentation | openinference-instrumentation-langchain 0.1.89 with LangGraph 1.2.24 |
llm.input_messages.N.* |
llm.output_messages.N.* |
llm.token_count.* |
llm.invocation_parameters model, then llm.model_name |
Leave OPENINFERENCE_HIDE_INPUTS, OPENINFERENCE_HIDE_OUTPUTS, OPENINFERENCE_HIDE_INPUT_MESSAGES, and OPENINFERENCE_HIDE_OUTPUT_MESSAGES at their default, false. The matching TraceConfig options are hide_inputs, hide_outputs, hide_input_messages, and hide_output_messages. |
| LangSmith OTEL, including LangGraph | langsmith[otel] 0.14.17 with LangGraph 1.2 |
gen_ai.prompt and LangChain message JSON |
gen_ai.completion and LangChain message JSON |
gen_ai.usage.* and langsmith.metadata.usage_metadata |
gen_ai.request.model |
Set LANGSMITH_TRACING=true and LANGSMITH_TRACING_MODE=otel. Remove LANGSMITH_HIDE_INPUTS and LANGSMITH_HIDE_OUTPUTS, and remove any hide_inputs or hide_outputs option on your LangSmith client. |
OpenTelemetry GenAI openai-v2 instrumentation |
opentelemetry-instrumentation-openai-v2 2.4b0 |
gen_ai.input.messages |
gen_ai.output.messages |
gen_ai.usage.* |
gen_ai.request.model |
OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=span_only. |
| n8n native OTLP export | n8n classic AI Agent | Not exported | Not exported | gen_ai.usage.* |
gen_ai.request.model |
None. Use the n8n node for message content. |
Mibo also reads gen_ai.response.text and gen_ai.prompt as fallbacks. Other GenAI instrumentations work when they emit the gen_ai.* attributes above. Mibo has not verified them.
Some teams turn content capture off for their observability backend. Mibo needs it on for the traces it receives. Mibo redacts secrets on a best-effort basis, and personal data when your workspace enables it. See Data handling.
If a trace arrives without user input or a final response, Mibo hides it from the Traces list and deletes it one hour after its last activity. The Traces page then shows a notice. The notice names the setting for your SDK, and the table above lists those settings.
What’s next
Section titled “What’s next”- OpenTelemetry (OTLP) for trace identity, batching, and error codes.
- Passive testing to understand which tests run on each trace.
- Creating test cases to refine the generated tests.