Skip to main content
Instrument is how your AI agent starts learning from production. Send logs from your application to Adaline so every important request, model call, tool call, retrieval step, command, outcome, and user signal can become evidence for Behaviors, Evaluators, Datasets, Improve cycles, and safer deployments. The goal is not just visibility. Good instrumentation gives Adaline enough context to understand repeated patterns, triage issues, generate coverage, and suggest prompt improvements your team can review.

What to instrument

Start by capturing the parts of the agent run that explain what happened.
If you are starting from scratch, send one useful trace before trying to model everything. A useful trace has a readable name, spans for model/tool work, status, timing, model/provider details, environment metadata, and enough input/output context for a teammate to understand the run.

Choose an integration path

Use the path that matches how much control you need.

Integration methods

Use Adaline Integrations when your agent already runs through a supported framework, provider SDK, gateway, or OpenTelemetry pipeline.Common starting points include LangChain, LangGraph, LlamaIndex, LiteLLM, Vercel AI SDK, OpenTelemetry, and provider integrations.Use this when: you want Adaline logs without hand-modeling every span yourself.

Metadata that makes logs useful

Metadata is what turns raw logs into product, engineering, support, and release workflows. Avoid raw emails, API keys, access tokens, secrets, unnecessary personal data, and private customer text that your team should not store.

Verify your first trace

After instrumenting, run a known request in staging and inspect it in Logs. You are integrated when:
  1. The trace appears in Adaline within a few seconds.
  2. The trace name describes the workflow or request.
  3. Spans show the model calls, tool calls, retrieval, command, or custom steps that matter.
  4. Status, latency, model, provider, tokens, and cost appear where supported.
  5. Tags or attributes identify environment, release, route, prompt, agent, and session context.
  6. A teammate can open the trace and understand what happened without asking the original engineer.
If the trace is hard to read, fix the names and metadata before sending more traffic. Clean evidence now makes Behaviors and Improve much stronger later.

From logs to improvement

Instrumentation feeds every later Platform workflow:

With Adaline Integrations

Connect frameworks, providers, agents, gateways, and OpenTelemetry pipelines.

With Adaline SDKs

Create traces, spans, sessions, variables, and metadata from TypeScript or Python.

With Adaline API

Send logs directly from any language, runtime, worker, or custom system.

With Adaline Proxy

Route provider calls through Adaline for fast logging with minimal code changes.

Log user feedback

Attach user feedback, outcomes, and review signals to production traces.

Advanced usage

Model complex workflows, streaming, custom spans, reference IDs, and multi-service traces.