Skip to main content

Agent Tracer Integration

Agent-Mesh / Agent-Tracer Integration

Purpose: Canonical reference for how agent-mesh and agent-tracer integrate. Single source of truth for observability wiring.

Integration Points

ComponentIntegrationEnv / Config
agent-mesh tracing.tsOTLP span exportOTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME
agent-mesh MeshRpcTracerIntegrationOptional @bluefly/agent-tracer/rpcMESH_RPC_TRACER_ENABLED
agent-mesh agent-interaction-trackerOpenTelemetry spans, GKG storegetTracer from tracing.ts
agent-mesh phoenix-otelexporterPhoenix/Arize OTLPPHOENIX_COLLECTOR_ENDPOINT
agent-protocolrecordToolCall -> agent-tracerAGENT_TRACER_URL
platform-agents orchestratorRun tracesAGENT_TRACER_URL
gitlab_componentsAgent run analyticsAGENT_TRACER_URL

Environment Variables

  • AGENT_TRACER_URL (default https://tracer.bluefly.internal): HTTP API for recordToolCall, analytics/agent-runs.
  • OTEL_EXPORTER_OTLP_ENDPOINT: Where agent-mesh exports spans. Use GitLab Observability (OTEL_GITLAB_HTTP_ENDPOINT/v1/traces) when GITLAB_OBSERVABILITY_TOKEN is set.
  • OTEL_EXPORTER_OTLP_HEADERS: e.g. PRIVATE-TOKEN=${GITLAB_OBSERVABILITY_TOKEN} for GitLab O11y.

Oracle Wiring

On Oracle, set in /opt/agent-platform/.env:

AGENT_TRACER_URL=https://tracer.bluefly.internal
OTEL_EXPORTER_OTLP_ENDPOINT=http://87749026.otel.gitlab-o11y.com:4318/v1/traces
OTEL_EXPORTER_OTLP_HEADERS=PRIVATE-TOKEN=${GITLAB_OBSERVABILITY_TOKEN}

agent-mesh will export spans to GitLab Observability. agent-protocol and platform-agents use AGENT_TRACER_URL for HTTP API calls.

SOD

  • agent-tracer owns: tracing, observability, OTLP ingestion, recordToolCall API.
  • agent-mesh consumes: getTracer (from @bluefly/agent-tracer or local OTEL), exports via OTLP to configured endpoint.
  • agent-protocol consumes: recordToolCall (delegates to agent-tracer).

Audit Date

2026-03-01