Skip to content

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

Merged
gtarpenning merged 6 commits into
masterfrom
gtarpenning/spans-alerting-schema
Jun 25, 2026
Merged

chore(weave): spans-source alerting schema + gate#7204
gtarpenning merged 6 commits into
masterfrom
gtarpenning/spans-alerting-schema

Conversation

@gtarpenning

@gtarpenning gtarpenning commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Add source_type (calls|spans), status_match_value, and percentage/count aggregations to AlertSpec / WeaveMetricThresholdSpec.
  • No new emit gate: spans alerting reuses the existing WEAVE_ENABLE_AGENT_SCORING gate. The OTel turn-ended events are consumed by both the scoring and alert workers.

Testing

unit covers the emit gate; alerting itself 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

2 sessions · 1m · $0.95

Session Agent Duration Tokens Cost Lines
Security Review of Trace Server Changes
9aef367e-3a39-464c-811c-b087ec05e5a4
claude 53s 3.3K $0.36 +0 -0
Security Review of Trace Server Changes
9afea2af-7daa-46d1-9e29-1c562c8e6379
claude 59s 3.3K $0.59 +0 -0
Total 1m 6.7K $0.95 +0 -0

View all sessions in HiveMind →

Run claude --resume 9aef367e-3a39-464c-811c-b087ec05e5a4 to pickup where you left off.

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wandbot-3000

wandbot-3000 Bot commented Jun 12, 2026

Copy link
Copy Markdown

@gtarpenning gtarpenning changed the title feat(weave): spans-source alerting schema + gate chore(weave): spans-source alerting schema + gate Jun 15, 2026
gtarpenning and others added 4 commits June 15, 2026 09:54
Exercise the new code from the spans-source alerting schema PR so codecov/patch
goes green:
- wf_enable_agent_alerting() env parsing
- genai_otel_export kafka emit now fires when scoring OR alerting is enabled

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…e eval

The OTel-ingest turn-ended emit is now gated solely on wf_enable_online_eval,
matching how the shared kafka producer (and produce_call_end) already behaves.
Removes the redundant WEAVE_ENABLE_AGENT_SCORING / WEAVE_ENABLE_AGENT_ALERTING
flags, which only ever ORed into this one gate; downstream scoring and alert
workers self-gate on their own consumption.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…flag

Restore wf_enable_agent_scoring + the original online-eval/scoring emit gate
(both pre-existing on master). This PR now only drops the newly-added
WEAVE_ENABLE_AGENT_ALERTING; spans alerting rides on WEAVE_ENABLE_AGENT_SCORING.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gtarpenning
gtarpenning marked this pull request as ready for review June 25, 2026 19:41
@gtarpenning
gtarpenning requested a review from a team as a code owner June 25, 2026 19:41
Picks up source_type, status_match_value, and percentage/count aggregation
added to WeaveMetricThresholdSpec.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gtarpenning
gtarpenning merged commit 5be3dfc into master Jun 25, 2026
107 checks passed
@gtarpenning
gtarpenning deleted the gtarpenning/spans-alerting-schema branch June 25, 2026 22:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants