Traces, metrics, logs and the audit trail

How to see what Robotelos does and who changed what: OpenTelemetry for the control plane and the fleet agents, and the audit trail that links back to the trace.

Robotelos reports with OpenTelemetry, from the control plane, the data plane and each fleet agent. Nothing leaves a process unless you configure it, and every process is configured the same way, with the standard OTEL_* variables.

Turn it on

export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector.example.com:4318
export OTEL_SERVICE_NAME=robotelos-controlplane      # each process has a sensible default
export OTEL_RESOURCE_ATTRIBUTES=deployment.environment=prod
VariableEffect
OTEL_EXPORTER_OTLP_ENDPOINT (and _PROTOCOL, _HEADERS)Sends traces, metrics and logs to a collector
OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, OTEL_LOGS_EXPORTERotlp, console, none (metrics also prometheus) per signal
OTEL_TRACES_SAMPLER, OTEL_TRACES_SAMPLER_ARGSampling, for example parentbased_traceidratio and 0.1
OTEL_SDK_DISABLED=trueInstalls nothing

With nothing set, logs go to standard output (the fleet agent: standard error) as JSON, and no traces or metrics are produced. The processes are robotelos-controlplane, robotelos-dataplane and robotelos-fleet-agent.

Following a command from your pipeline

The robotelos command is part of the trace. When your pipeline already has a trace, pass it on in TRACEPARENT (the W3C trace context that most CI systems and agents set), and every call the command makes to the Control API, and the database work behind it, joins that trace:

export TRACEPARENT=00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector.example.com:4318
robotelos apply -f rollout-prod.yaml

The command reports its own span, named robotelos apply, as a child of the trace you passed in, with the command word and nothing else (no file names, agent names or ids). It flushes before it exits. Without OTEL_* variables it sends nothing, but it still passes TRACEPARENT on to the server, so the server’s spans and the audit entries belong to your trace. With OTEL_TRACES_EXPORTER=console the command prints its span to standard output, which is handy for trying it out.

What you get

Traces. Every call to the Control API is a span, named by its method (robotelos.controlplane.v1.AgentRollouts/ApplyAgentRollout), and it continues the caller’s trace when the caller sends a W3C traceparent. Inside it:

SpanAttributes
robotelos.rollout.applyagent id, environment, version, resulting generation, outcome (changed, unchanged, pending_promotion)
robotelos.promotion.request, .approve, .reject, .cancelpromotion id, agent id, environment
robotelos.fleet.reconcile (fleet agent)snapshot revision, number of items, outcome
robotelos.fleet.apply (fleet agent)agent id, environment, generation, resulting phase; an error status when a release could not be activated

The fleet agent’s calls to the coordinator carry the trace, so one pass of an agent, the coordinator’s work and its database queries are one trace across the network. A caller’s mistake (not found, forbidden, a stale generation) is an attribute of the span, not an error status; only internal failures mark a span as failed.

Metrics (small, fixed attribute sets; never an account, agent or user id):

MetricAttributes
robotelos.rollouts.appliedrobotelos.environment, robotelos.outcome
robotelos.promotionsrobotelos.environment, robotelos.outcome (requested, approved, rejected, cancelled, superseded)
robotelos.fleet.reconciles, robotelos.fleet.reconcile.durationrobotelos.outcome (ok, error)
robotelos.fleet.releases.appliedrobotelos.environment, robotelos.phase (Ready, Applied, Degraded, Blocked)
rpc.server.*, rpc.client.*gRPC call counts, sizes and durations of the Control API and the coordinator

Logs are JSON, and when exported they carry the trace and span ids of the request that wrote them, so a log line and its trace meet.

Who changed what

Every change of desired state writes an audit entry in the same database transaction as the change: who, what, when, and the trace id of the request. A rollout also keeps its own history:

robotelos get revisions support/prod       # every generation, newest first, with the promotion behind it
robotelos get promotion <id>               # who asked, what exactly was approved (the digest), the outcome

To follow a change from the command to the cluster:

  1. robotelos get revisions support/prod shows the generation and the promotion.
  2. The audit entry for that change names the trace id; open it in your trace backend.
  3. robotelos get rollout support/prod shows, per fleet, the generation the fleet confirmed and its phase, and the robotelos.fleet.apply span of that fleet shows when it activated the release.
  4. The release digest in all of these is the same value; it is also the identity of the release that conversations run on.

Reading the audit trail

Owners and maintainers (the permission audit.read) read the trail with robotelos get audit:

robotelos get audit support                 # one agent: its own entries and the promotions that name it
robotelos get audit                         # the whole account, newest first
robotelos get audit support -o json         # the same, for a script
TIME                  ACTOR     ACTION                  RESOURCE            TRACE
2026-11-18T10:42:07Z  9c1e5d02  promotion.approve       promotion/3f2a91c0  4bf92f3577b3
2026-11-18T10:41:30Z  7b0aa310  promotion.request       promotion/3f2a91c0  4bf92f3577b3
2026-11-18T10:40:12Z  7b0aa310  deployment.deploy       agent/a1fd4ece      91ab03de7710

Each line is one change: when, who (the user id), what, which resource, and the trace of the request. The actions are agent.create, agent.draft.update, agent.version.create, agent.version.preview, deployment.deploy, deployment.promotion, deployment.rollback, deployment.revoke, evaluation.record, promotion.request, promotion.approve, promotion.reject, promotion.cancel, promotion.supersede, environment.enable and environment.promotion_policy. The same list is available from GET /api/v1/accounts/{account_id}/audit-events with filters for the agent, the action prefix and the actor.

The trail is append-only, and it only shows your own account. Actions of the platform administrators on fleets are recorded too, but belong to the platform and not to an account, so they do not appear in an account’s trail.

What a sampled-out trace still gives you

The audit entry, the revision history and the metrics do not depend on sampling. The trace id is recorded only when the request was part of a trace.

Next steps