Skip to content

feat(weave): spans-source alerting schema + gate#7204

Draft
gtarpenning wants to merge 1 commit into
masterfrom
gtarpenning/spans-alerting-schema
Draft

feat(weave): spans-source alerting schema + gate#7204
gtarpenning wants to merge 1 commit into
masterfrom
gtarpenning/spans-alerting-schema

Conversation

@gtarpenning

Copy link
Copy Markdown
Member

Summary

  • Add source_type (calls|spans), status_match_value, and percentage/count aggregations to AlertSpec / WeaveMetricThresholdSpec.
  • Add wf_enable_agent_alerting() (WEAVE_ENABLE_AGENT_ALERTING).
  • Broaden the score_agent_spans emit gate so OTel agent-span ingest emits turn-ended events when agent scoring OR alerting is enabled.

Testing

covered by the alert-worker spans stack in wandb/core (depends on this).

Add source_type/status_match_value + percentage/count aggregations to
AlertSpec, a wf_enable_agent_alerting() flag, and broaden the
score_agent_spans emit gate to fire when agent alerting is enabled.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@w-b-hivemind

w-b-hivemind Bot commented Jun 12, 2026

Copy link
Copy Markdown

HiveMind Sessions

1 session · 11s · $0.33

Session Agent Duration Tokens Cost Lines
Security Vulnerability Code Review
9afea2af-7daa-46d1-9e29-1c562c8e6379
claude 11s 545 $0.33 +0 -0
Total 11s 545 $0.33 +0 -0

View all sessions in HiveMind →

Run claude --resume 9afea2af-7daa-46d1-9e29-1c562c8e6379 to pickup where you left off.

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ve/trace_server/clickhouse_trace_server_batched.py 0.00% 1 Missing ⚠️
weave/trace_server/environment.py 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wandbot-3000

wandbot-3000 Bot commented Jun 12, 2026

Copy link
Copy Markdown

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