Skip to main content
Elementum can send OpenTelemetry traces to a tracing backend or AI evaluation platform that you control. Two kinds of activity are traced:
  • Automations. Each automation run arrives as a set of spans: what triggered it, the run itself, every action it took, and every outbound HTTP call it made. You can see the run inside your own end-to-end trace, find failures, and measure how long each step and each partner call took.
  • AI agents. Each agent turn arrives as a set of spans: the agent invocation, every call to the language model, and every tool the agent ran, with the prompts, replies, and token usage. See GenAI tracing.
Most of this page is about automations. AI agent spans are summarized in General and GenAI endpoints.
OTEL and OTLP. OpenTelemetry (OTEL) is the standard for generating trace data. The OpenTelemetry Protocol (OTLP) is the format used to send that data over gRPC or HTTP. Elementum produces OTEL traces and exports them with OTLP, so your endpoint must accept OTLP.
Organization Administrators configure endpoints in Settings icon Organization Settings > Platform > Trace Forwarding. Setup steps are in Set up trace forwarding.

The end-to-end picture

A typical request travels through three parts. Your application calls Elementum. Elementum runs an automation. The automation calls other systems, such as a partner API or one of your own services. When all three parts send spans to the same backend, the result is one trace:
This tree comes from a real run. It has three hops: your application into Elementum, Elementum through its own steps, and Elementum out to the partner system.

Where to start

Set up trace forwarding

Add an OTLP endpoint, authenticate it, and attach it to environments.

Continue your trace into Elementum

Send a traceparent header on a webhook so the run joins your trace.

Send trace headers to other systems

Pass the automation’s trace to systems a Send API Request step calls.

Span reference

Span names, how they nest, and which steps have no span.

Attribute reference

Every attribute on automation spans, with type, meaning, and when it is absent.

Using traces

Find a run, find failures, and measure partner calls in common backends.

Troubleshooting

Missing spans, broken chains, duplicates, sampling, and data exposure.

GenAI tracing

Agent, model, tool, and voice spans, including prompt and response content.

GenAI attribute reference

Every gen_ai, elementum, and voice attribute on AI spans.

Evaluating AI with traces

Connect an evaluation platform such as W&B Weave and score agent behavior.
Each automation span carries the ids you need to cross-reference Elementum: the run id (elementum.automation.execution_id), the automation id, the workflow version, the step name you gave the action, and a request correlation id you can give to Elementum support.

How spans reach you

  1. An automation runs in Elementum and records its spans.
  2. Elementum sends the spans to every enabled endpoint attached to the environment the automation ran in.
  3. Your backend stores them alongside your own spans. Spans that share a trace id appear as one trace.
Spans are sent after each step finishes. They usually arrive within seconds of the step finishing. Delivery is best effort: if your endpoint is unavailable or too slow, that batch of spans is not resent. See Delivery and failures. Every span Elementum sends has the resource attribute service.name set to elementum. Spans are always sent as sampled. Elementum does not sample automation spans before sending them.

What is not included

Elementum sends spans that describe your automations and AI activity. It does not send its internal platform spans. The list below is for automation spans. AI agent spans differ: they carry prompt and reply content, error message text, and span events. See Prompt and response content.
  • Internal platform spans are never sent. Database calls, queues, internal service calls, and internal HTTP traffic stay inside Elementum. Your traces show the automation spans listed in the span reference.
  • No record data or payloads. Automation spans carry ids, names entered in Elementum, statuses, and timings. They do not carry record field values, request or response bodies, header values, or action inputs and outputs. See Privacy and security.
  • No span events on automation spans. Exception events and stack traces are not sent. A failed step is described by its status and two short attributes.
  • No organization or environment id attributes. Spans are routed by organization and environment, but those ids are not added as attributes. To label spans by environment, add a resource attribute on the endpoint. See Resource attributes.
  • Not every step has a span. Structural steps, such as parallel branches, have no span of their own. The actions inside them do. See Actions without a span.

General and GenAI endpoints

Trace forwarding has two kinds of endpoint. You choose the kind when you add the endpoint.
  • Use a General endpoint for a tracing backend that should see everything, including automations.
  • Use a GenAI endpoint for an AI evaluation platform that should see only model and agent activity. On a GenAI endpoint, every agent turn is a root span.
Both kinds carry the same AI content. See GenAI tracing and Add a GenAI endpoint.

Key terms