Send traces
AgentLasso learns what your agent does from its production traces: one record per request your agent handled. Send them as a flat JSON object (no SDK needed) or as standard OpenTelemetry. Both go to the same endpoint and are stored the same way.
Your project's API key is in Settings. Authorization: Bearer <key> works too, for OpenTelemetry exporters configured for bearer auth.
Simple JSON
The fastest path, and the right one for most agents that don't already run an OpenTelemetry pipeline:
Send one object per request your agent handled, from wherever it finishes a request. Don't block the user's response on it: fire it and log failures.
OpenTelemetry
If your agent already emits OpenTelemetry traces, point your exporter at the same endpoint. The payload is detected automatically ({ "resourceSpans": [...] }, OTLP/HTTP JSON):
AgentLasso reads the GenAI semantic conventions:
- one trace per GenAI chat/generation span (
gen_ai.operation.name,gen_ai.request.model/gen_ai.response.model, orgen_ai.prompt/gen_ai.completion); - tool-call spans (
gen_ai.tool.name,gen_ai.tool.call.arguments) become that trace's tool calls; gen_ai.conversation.idorsession.idas the session;gen_ai.usage.*as token counts.
A payload with no GenAI spans is accepted with 202 and accepted: 0, plus a note saying what was looked for.
Already sending to LangSmith, Langfuse or Datadog? Keep it, and dual-export: see Send traces you already have.
Response
The body is a superset of OTLP's export response, so strict OpenTelemetry exporters accept it. classifiedTraces appears while a new project's first traces are classified as they arrive (see Capabilities and classification).
Personal data is redacted before storage
By default, before anything is stored, AgentLasso replaces personal data in the user input, the agent's reply and tool-call arguments:
- emails →
[REDACTED_EMAIL] - US social security numbers →
[REDACTED_SSN] - phone numbers →
[REDACTED_PHONE] - card numbers (only numbers that pass the Luhn check) →
[REDACTED_CARD]
Turn it off per project in Settings → Data controls only if you need the raw content.
Next
Traces become capabilities, each with a scorecard.