Skip to content

feat(telemetry): Add global scope attributes, run metric, and trace ID surfacing#166

Merged
dcramer merged 1 commit intomainfrom
feat/global-telemetry-context
Feb 18, 2026
Merged

feat(telemetry): Add global scope attributes, run metric, and trace ID surfacing#166
dcramer merged 1 commit intomainfrom
feat/global-telemetry-context

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 18, 2026

Replace per-metric source/repository attribute threading with Sentry global scope attributes (warden.source, warden.repository) that propagate to all metrics and spans automatically. This removes the SkillMetricsContext interface and deploymentContext module variable, simplifying emitSkillMetrics and ensuring every metric (dedup, extraction, fix_eval, retries, stale) gets context for free.

Adds a workflow.runs counter metric emitted once per analysis workflow, enabling "total unique runs" and "findings per run" queries in Sentry without needing the trace ID as a high-cardinality attribute.

Surfaces the Sentry trace ID so operators can correlate CLI/Action runs to Sentry traces:

  • CLI summary (-v): dimmed Trace: {id} line in the SUMMARY section
  • CLI debug (-vv): logged at command span start as a crash safety net
  • Action logs: trace.id field in the structured Workflow initialized log entry
  • JSONL metadata: traceId field in JsonlRunMetadata

Also renames the deployment.context tag to warden.source for consistent naming across all telemetry.

…D surfacing

Replace per-metric source/repository threading with global Sentry scope
attributes that propagate to all metrics automatically. Add workflow.runs
counter for "total unique runs" queries. Surface trace ID in CLI summary
(Verbose+), debug output, structured logs, and JSONL metadata so operators
can correlate runs to Sentry traces.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
warden Ready Ready Preview, Comment Feb 18, 2026 11:13am

Request Review

@dcramer dcramer merged commit 6949f00 into main Feb 18, 2026
13 checks passed
@dcramer dcramer deleted the feat/global-telemetry-context branch February 18, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant