feat(telemetry): Add global scope attributes, run metric, and trace ID surfacing#166
Merged
feat(telemetry): Add global scope attributes, run metric, and trace ID surfacing#166
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace per-metric
source/repositoryattribute threading with Sentry global scope attributes (warden.source,warden.repository) that propagate to all metrics and spans automatically. This removes theSkillMetricsContextinterface anddeploymentContextmodule variable, simplifyingemitSkillMetricsand ensuring every metric (dedup, extraction, fix_eval, retries, stale) gets context for free.Adds a
workflow.runscounter 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:
-v): dimmedTrace: {id}line in the SUMMARY section-vv): logged at command span start as a crash safety nettrace.idfield in the structuredWorkflow initializedlog entrytraceIdfield inJsonlRunMetadataAlso renames the
deployment.contexttag towarden.sourcefor consistent naming across all telemetry.