Wire GenAI telemetry: settings surface, service name, and agent names (N3 WP4) #93

Merged
weichen merged 1 commits from feature/n3-otel-wp4 into main 2026-10-07 15:42:22 +00:00
Owner

Why: spans now follow the OTel GenAI convention (Agent-Native#32); the product needs the settings surface for the exporter, a meaningful service.name, and per-profile agent names.

What: telemetry.otlpEndpoint (default empty = no export, env var as fallback) and telemetry.serviceName (default agent-system-backend) in the settings schema; traceFn built from effective settings; AgentName from profile id on direct and subagent loops.

Evidence: go test -count=1 ./... green; TestTelemetryFlagsDefaults pins the safe defaults.

Impact: nothing is exported unless an endpoint is configured; agent spans are named by profile id.

Refs: Agent-Native#32, Agent-Squad#36, Agent-System-Documents#43

Why: spans now follow the OTel GenAI convention (Agent-Native#32); the product needs the settings surface for the exporter, a meaningful service.name, and per-profile agent names. What: telemetry.otlpEndpoint (default empty = no export, env var as fallback) and telemetry.serviceName (default agent-system-backend) in the settings schema; traceFn built from effective settings; AgentName from profile id on direct and subagent loops. Evidence: go test -count=1 ./... green; TestTelemetryFlagsDefaults pins the safe defaults. Impact: nothing is exported unless an endpoint is configured; agent spans are named by profile id. Refs: Agent-Native#32, Agent-Squad#36, Agent-System-Documents#43
weichen added 1 commit 2026-10-07 15:41:14 +00:00
Why: spans now follow the OTel GenAI convention (Agent-Native#32); the
product needs the settings surface for the exporter, a meaningful
service.name, and per-profile agent names.
Evidence: go test -count=1 ./... green; TestTelemetryFlagsDefaults
(otlpEndpoint registered default empty = no export, serviceName
default agent-system-backend); nested pins carry the convention work.
Impact: nothing is exported unless telemetry.otlpEndpoint (or the env
var) is set; agent spans are named by profile id.
Refs: Agent-Native#32, Agent-Squad#36, N3 plan WP4
weichen merged commit c392ed81ee into main 2026-10-07 15:42:22 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#93