Overview
Genesis emits OpenTelemetry spans for each turn. Spans in a turn share a trace ID derived from the turn’s input UUID (or the thread ID when no input UUID is available), whilegen_ai.conversation.id identifies the thread.
The spans record LLM and tool calls, duration, and errors. Genesis currently
exports them as separate root spans with a shared trace ID, not as a
parent-child span tree.
By default, traces are exported over standard OTLP/gRPC to any compatible
backend: Jaeger, Tempo, Honeycomb, Datadog APM, New Relic, Grafana
Cloud, Lightstep, Splunk Observability, AWS X-Ray (via collector), etc.
The optional S3 exporter writes OTLP/JSON batches for Fiddler’s S3
connector.
Configuration
Genesis performs a short startup availability check against the OTLP
endpoint only when
observability.tracing.exporter is otlp; S3 export
does not probe it. If the OTLP collector is unreachable, tracing is disabled
cleanly unless console export is enabled. S3 export requires an AWS connection
with s3:PutObject on the bucket and, when a KMS key is set,
kms:GenerateDataKey on that key. Set
OTEL_TRACING_FORCE_ENABLE=true only when you need to skip that
preflight (for example, when the collector starts after Genesis).
For S3 uploads, select an AWS connection in Config → Advanced Settings;
the exporter uses its service credentials. A running exporter can retain
initialized credentials for up to 45 minutes after a connection or credential
change. Files are uploaded in batches, so they appear after the next export
batch rather than immediately after a span ends.
observability.tracing.attribute_mapping applies to the selected exporter
and the console fallback when active. A mapping may not rename application.id
or fiddler.span.type, and two source attributes may not map to the same name.
Restart required. The
observability.tracing.* settings are read
once at startup, except include_content, include_system_prompt and
content_max_chars, which apply on the next LLM or tool call. After
changing any other — including enabling tracing for the first time,
swapping the endpoint, or rotating the auth token — restart Genesis for
the change to take effect.Headers and authentication
observability.tracing.headers is treated as the opaque value
portion of an Authorization: Bearer <value> header. Genesis prepends
Bearer itself, so the setting should contain the bare token only.
The single most common gotcha is the space inside Bearer tokens:
the Genesis Secrets UI strips literal spaces from values to prevent
accidental copy-paste damage. If your auth value itself contains a
space (it usually does not for a JWT, but can for some proxy
configurations), encode it as %20 — the value is URL-decoded before
being sent.
If your collector requires headers other than
Authorization: Bearer … (for example, a DD-API-KEY for Datadog, or a tenant-id alongside
the bearer), use the Metrics export’s
observability.metrics.headers setting for those custom headers on
the metrics path, and route traces through an OpenTelemetry Collector
that injects the headers your APM backend expects. The traces path
itself currently emits only the Authorization: Bearer … header.
What gets traced
Genesis groups spans by turn, not by the whole conversation. The turn’s input UUID (or the thread ID when unavailable) is SHA-256 hashed to the 128-bit trace ID;gen_ai.conversation.id, thread_id, and session_id
identify the conversation. Each span is a root span, so use the shared trace
ID and attributes to correlate LLM and tool activity rather than expecting
parent-child relationships.
Global resource attributes
Every span carries these resource attributes:
LLM spans carry
fiddler.span.type="llm"; tool spans carry
fiddler.span.type="tool". Fiddler requires this attribute and
application.id, so attribute mapping cannot rename either one.
LLM and tool spans also carry bot_id and the OpenTelemetry GenAI agent
attributes gen_ai.agent.name and gen_ai.agent.id, both set to the bot id,
so every span of a turn names its agent the same way.
Span inventory
Root spans
Created at the start of a job. The duration of this span is the wall-clock duration of the whole job.LLM call spans
Each LLM API call emits one span:
The span carries these baseline attributes:
When the call returns, the span adds:
A successful call has span status
OK. A call whose provider failed and that
Genesis answered with an error message for the person (for example, the model
refused access or the provider rate-limited the request) carries
llm.success=false, llm.error_type (the error kind, such as
access_denied or rate_limit, or ErrorAnswer) and llm.error_message,
and its status is ERROR. A call that raises carries the same attributes with
the exception class as llm.error_type. Without content export,
llm.error_message is the error type; with it, the error text.
Tool call spans
Every tool invocation emits a span namedtool.<tool_function_name>
(e.g. tool.git_action, tool.search_threads, tool.manage_context).
Baseline attributes:
A tool call that succeeds has span status
OK.
When present in the tool arguments, the following operational
parameters are also captured (values are recorded because they
describe what the tool is doing, not the data it is acting on):
action, operation, command, method, mode, type, task,
workflow, step, phase, plus blueprint-related fields
(blueprint_name, demo_name, exit_ticket_from_previous, todo_id,
project_id) and path-related fields (file_path, path,
filename, directory, repo_id, git_path).
When the tool fails — either by raising an exception or by returning a
result with success=false or a non-empty error field — the span
records tool.success=false, an error type, and the error text length.
For a returned failure, tool.result.error_type is the tool’s safe error
class or code when available, otherwise ToolResultError; raised exceptions
use tool.error_type.
Raw error text and the tool.result.error event’s text are included only
when observability.tracing.include_content is true; otherwise the span
status uses a content-free description and the error event records its length.
Typical trace shape
- “What’s the p95 end-to-end latency for chat threads on this
instance?” → look at
job.executionduration distribution. - “Where is the time going inside slow threads?” → compare the
llm.completed.*andtool.*durations sharing the turn’s trace ID. - “Which tool fails most often?” → group span errors by
tool.name. - “Which LLM call used the most tokens?” → group
llm.completed.*spans by model and compare their usage attributes.
Privacy
Tracing carries more conversation context than metrics. With the defaultobservability.tracing.include_content=false, Genesis exports the last
non-system message’s role and text length, not its text. When
observability.tracing.include_content=true, Genesis also exports prompt
text, the model’s answer, the input and output of every tool call, raw error and message text (including tool result exit_ticket,
error, and message), and free-text/path tool parameter values such as
command, task, exit_ticket_from_previous, file_path, path,
filename, directory, and git_path.
The option defaults to false; enable it only when your collector retention
policy is appropriate for that content. The system prompt is exported only when
observability.tracing.include_system_prompt is also true. Every exported
text has recognisable credentials (provider tokens, passwords in URLs,
key=value secrets) masked and is cut at
observability.tracing.content_max_chars.
llm.last_message.roleandllm.last_message.lengthidentify the most recent non-system message without exporting its content by default. The rawllm.last_message.contentattribute is present only when content export is enabled.tool.thread_idandtool.session_idare the raw Genesis thread identifiers. They are not user identifiers, but they let an observer correlate spans within the same conversation.tool.param_countandtool.param_namesare captured. Selected operational identifiers are also recorded; free-text and path parameter values are omitted unlessobservability.tracing.include_contentistrue.user_idis captured as-is when it’s attached to a span (root spans created with an explicituser_id). Unlike metrics, traces do not hash this value. Consider strippinguser_idat collector ingest if your retention policy requires it.- Tool error text is not exported by default. Error classes and text lengths remain available; enabling content export can add exception text, tool-result error/message text, and selected free-text/path arguments. Treat those fields as customer content if you enable the option.
Fiddler
Fiddler reads S3 files through its S3 connector (observability.tracing.exporter: s3)
and requires application.id (set observability.tracing.application_id)
and fiddler.span.type, which Genesis always sets. Agent, session, model and
token counts appear without further setup. Fiddler shows text in its Input,
Output, System prompt and tool panels only under its own attribute names, so
with include_content on, add this to observability.tracing.attribute_mapping:
Ok or Error.
Volume and sampling
Genesis currently exports every span — there is no tail-based or head-based sampling. A turn typically produces one span per LLM call and one per tool invocation, plus other instrumented spans. High-volume deployments should size their exporter destination and APM backend storage accordingly, or run a sampling processor in their collector pipeline (e.g. the tail_sampling processor) before forwarding to long-term storage.Verifying it works
After enabling tracing and restarting Genesis, look in the server logs for one of these messages at startup:
If your APM backend supports a “service map” or “service list” view,
look for
genesis-bots after Genesis has handled at least one
conversation.
Disabling tracing
Setobservability.tracing.enabled=false and restart. No spans are
emitted, the OTLP exporter is not configured, and no trace data leaves
the host. You can set this through environment as
GENESIS__OBSERVABILITY__TRACING__ENABLED=false.
Related pages
- Metrics — OTLP metrics export, configured the same way
- Pulse Monitoring
- Advanced Settings

