Weave

Forward TheRouter.ai traces to W&B Weave observability projects

Weave captures call attributes, inputs, and summary metrics for LLM traces. TheRouter.ai metadata maps cleanly into Weave attributes for filtering by workflow context.

broadcast-weave-config.json
{
  "destination": "weave",
  "enabled": true,
  "api_key": "wandb_...",
  "entity": "your-team",
  "project": "therouter-traces",
  "base_url": "https://trace.wandb.ai",
  "sampling_rate": 1
}
cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Authorization: Bearer $THEROUTER_API_KEY"   -H "Content-Type: application/json"   -H "X-TheRouter.ai-Broadcast: true"   -d '{
    "model":"openai/gpt-4.1-mini",
    "messages":[{"role":"user","content":"Write product copy"}],
    "trace":{"trace_name":"Weave Ingest Test","experiment_name":"copy-v3"}
  }'
Verification
Open Weave project calls and confirm attributes include your custom metadata such as `campaign` or `experiment_name`.