Skip to content

Release 1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 07:35
· 15 commits to main since this release
f0cddaf

Added

  • Run reviews: mark a run or one of its spans correct, incorrect or missing, or correct its output, from the new Review tab in the trace view. JSON outputs are graded field by field
  • Workflow pages show accuracy per version and per span, and the fields that are wrong most often; the versions table and version compare show accuracy too
  • Ingest keys can send reviews with PUT /v1/traces/{id}/review, PUT /v1/traces/{id}/spans/{spanId}/review, or by a custom attribute with PUT /v1/workflows/{name}/reviews?key=&value=[&span=], and get 204. A review can send output to grade in place of the traced one, for apps that post-process it. An API review never replaces one a person made (409)
  • New read routes: GET|DELETE /v1/traces/{id}[/spans/{spanId}]/review, GET /v1/workflows/{name}/reviews, /accuracy, /fields and /review-spans. Postgres migration 007 adds run_reviews and run_review_fields
  • The collector reads structured output sent as tool call arguments when a message has no text
  • Silent-failure detection. The collector flags spans that did not error but went wrong in a new silent_failure column: truncated (finish reason length / max_tokens / incomplete), refused (content filter finish reason, or a short output that opens with a refusal such as "I'm unable to help with that", not one that goes on to hedge or answer) and tool_error (an OK tool span returning an error JSON payload: error, isError: true, success/ok: false, status: failed, also when double-encoded as a string). Cache-read tokens are now stored in cache_read_tokens
  • New anomaly metrics on GET /v1/metrics/anomalies: latency_p95 (daily, per workflow, from the new metrics_daily_latency rollup), and hourly truncation_rate, refusal_rate, tool_error_rate, llm_calls_per_run, tool_repeat, cache_hit_ratio and heartbeat (a client that missed 3 or more hours of the week it is usually active in, scope client, so nights and weekends of an office-hours client never alert). Runaway-run checks compare low-volume workflows with the last 7 days, and with no baseline flag only a run of 50 LLM calls or 30 calls of one tool; tool_repeat compares with the p95 run. Anomalies carry new client and trace_ids (the worst run) fields, and a workspace anomaly that one workflow's anomaly mostly explains is no longer listed twice
  • Incidents. The API checks every active workspace for anomalies every 5 minutes and groups the current ones into one incident per workflow, client or workspace, with up to three example runs per signal. Incidents open at warning or above, escalate when severity rises, resolve once quiet (2 hours for hourly metrics, 26 for daily ones, at once when a silent client is back), and reopen if the problem returns within 24 hours. New routes GET /v1/incidents, GET /v1/incidents/{id}, POST /v1/incidents/{id}/resolve, POST /v1/incidents/{id}/mute (24h, 7d or forever, for the subject or one metric) and GET|DELETE /v1/workspaces/{id}/incident-mutes[/{muteId}]. Configure with DETECTION_ENABLED, DETECTION_INTERVAL_SECONDS and DETECTION_MIN_SEVERITY. Postgres migration 008 adds incidents, incident_signals and incident_mutes
  • Release reports. When a workflow ships a new version, the incident evaluator compares its first runs with the previous version (error, truncation, refusal and tool error rates, median cost, LLM calls and output tokens per run, p95 latency, cache hit ratio) and gives one verdict: healthy, improved, regressed, or not enough runs. Graded at 30 runs, or at 10 after 2 hours; a healthy verdict is checked once more at 300 runs or 24 hours. A regression opens or extends the workflow's incident naming the version, with one signal per regressed finding (release_regression:truncation_rate, release_regression:cost_per_run, ...). Mute one finding by its metric, or every release finding with release_regression. New routes GET /v1/metrics/workflows/{name}/versions/{version}/report and GET /v1/release-reports; workflow versions carry report_verdict. The versions table shows a verdict badge, version compare shows the report's findings, and the overview lists the last day's releases. Postgres migration 010 adds release_reports
  • Review queue. GET /v1/reviews/queue?workflow=&limit= lists unreviewed runs to review next: example runs of open incidents, then runs flagged truncated, refused or tool error in the last 7 days, with every fifth a random unflagged run from the last 24 hours. Each item is a trace with reason and, for incident runs, incident_id. Workflow pages show the queue; a run opened from it shows a Next button. Reviews store the reason (the queue's, else the run's silent-failure flag) in Postgres migration 013
  • Accuracy-drop alert. When a workflow's most recently shipped version (first seen in telemetry, from its release report) with 20 or more run reviews is reviewed as less accurate than the version before it (z ≥ 2.5 and at least 10 points down; critical from 25), the incident evaluator opens the workflow's incident with a review_accuracy signal naming the version, and adds the finding to that version's release report. Reviews of unflagged runs are compared with each other when both versions have 20; otherwise all reviews are, and the summary says so. The signal holds for 24 hours after the latest review and resolves when accuracy recovers
  • More hourly anomaly metrics: ingest_silence (a service, new scope service with a service field, that missed hours it usually sends in, from 1 missed hour for a service active in 20 of the prior 24; one workspace anomaly instead when every service stopped), ingest_rejected (20 or more spans rejected in an hour, 5× the prior 24-hour average), missing_step (a step that ran in 90% of a workflow's runs ran in under half of them; LLM calls are not counted as steps) and stuck_runs (runs with spans but no root span 30 minutes on, up to 3 in trace_ids)
  • The collector stores four more span columns for upcoming detectors: context_ratio (prompt tokens, cache reads and writes included, over the model's max_input_tokens; 0 when unknown), response_model (normalized gen_ai.response.model; model stays the request model), and output_hash / input_hash (FNV-1a 64 of the trimmed, lower-cased completion and prompt of an LLM call, 0 under 40 characters; computed before content is stripped, so they work with content capture off). Migration 023 adds them
  • pricing.json now carries each model's max_input_tokens and max_output_tokens from LiteLLM (same 308fe0792080 snapshot, prices unchanged)
  • More hourly anomaly metrics from those columns: context_pressure (LLM calls using 85% of the model's context window or more spiked against a baseline of 20 such calls, or the hour's p95 reached 85% from under 70% the same hour a week before), model_mix (a requested model under 2% of the prior 24 hours took 20% of a workflow's calls, critical at 50%; or calls answered by another model family than requested spiked, snapshot suffixes ignored) and duplicate_output (one output returned for different inputs in 30% of a workflow's calls, critical at 70%, when no output held 10% of the prior 24 hours; trace_ids holds one such run). Workflow anomalies carry a new model_change (a response model first seen within the 24 hours before, against the prior week)
  • Migrations 024 and 025 record hourly activity per service in activity_hourly and backfill its last 35 days, so ingest_silence works on upgraded databases
  • Alerts. When an incident opens, escalates or resolves, each matching channel gets one message with the signals, the likely release and links to example runs: Slack incoming webhooks, signed JSON webhooks (X-Tracium-Signature, HMAC-SHA256) or email where the deployment sends mail. Failed sends retry after 30s, 2m, 10m and 1h (or the destination's Retry-After, up to 1h) on 5xx, 408, 429, timeouts and connection errors; other 4xx answers and blocked targets fail at once. Owners manage channels in Settings → Alerts or with GET|POST /v1/workspaces/{id}/alert-channels, PATCH|DELETE /v1/workspaces/{id}/alert-channels/{channelId} and POST …/{channelId}/test; GET /v1/incidents/{id}/deliveries shows delivery status. URLs must be https to public addresses unless ALERTS_ALLOW_PRIVATE_URLS=true. Postgres migration 009 adds alert_channels and alert_deliveries
  • Healthy release notices. A channel can turn on notify_healthy_releases (off by default; Settings → Alerts, "Healthy releases") to get a one-line release_healthy message, such as "v42 of checkout-agent looks healthy after 30 runs.", when a new version's first grade is ok or improved. A later recheck never sends another. Postgres migration 014 adds the column
  • Alert targets also refuse the benchmark (198.18.0.0/15) and reserved (240.0.0.0/4) IPv4 ranges, local-use NAT64 (64:ff9b:1::/48) and 6to4 (2002::/16). Slack messages escape &, < and > in workflow, client and service names so they cannot mention or link, email subjects are kept on one line, and an alert that could not be queued after its incident was saved is queued on the next check
  • Helm: api.detection.enabled, api.detection.intervalSeconds, api.detection.minSeverity and api.alerts.allowPrivateURLs set DETECTION_* and ALERTS_ALLOW_PRIVATE_URLS on the API pods
  • Budget rules. Owners set a fixed spend limit per UTC day or month on the workspace, a workflow or a client (* for each one) in Settings → Alerts or with GET|POST /v1/workspaces/{id}/alert-rules and PATCH|DELETE /v1/workspaces/{id}/alert-rules/{ruleId}. Reaching 80% adds a warning budget signal to the subject's incident and 100% escalates it to critical, once per rule and period; the incident resolves when the next period starts. Workflow limits count span cost only. Postgres migration 011 adds alert_rules
  • Incidents in the dashboard: a new Incidents page (open and resolved, with signals, likely-cause version, example runs, resolve and mute), an open-incident count in the sidebar, a status strip on the overview and a severity tag on workflows with an open incident. Runs flagged truncated, refused or tool error carry a badge in run lists and the trace view, and a workflow's recent runs can be filtered by flag. GET /v1/traces and the MCP list_traces tool take silent_failure (truncated, refused, tool_error, any), traces carry silent_failures and spans silent_failure. New MCP tools list_incidents and get_incident
  • GET /v1/incidents and the MCP list_incidents tool return last_evaluated_at, when the background check last finished for the workspace (null before the first check), and the empty Incidents page shows it. Postgres migration 012 adds incident_evaluations
  • Backtest: GET /v1/incidents/backtest?workspace_id=&range=7d|30d replays detection hour by hour through the incident rules and returns the incidents Tracium would have opened, by severity and metric, without storing anything (cached for an hour, 504 after 60 seconds). The overview offers it as "what Tracium would have alerted you about in the last 30 days", with a "Set up alerts" link to Settings → Alerts (now reachable at /settings/alerts), and the Alerts tab shows the same count while the workspace has no channel
  • Daily runs, cost, error_rate and latency_p95 anomalies skip a value that is usual for its weekday (within a quarter of the range the same weekday took over the last four weeks, one earlier such day is enough), so office-hours workloads no longer open an incident every weekend, and the current UTC day, still in progress, never counts as a run-volume drop
  • Incident titles name every detector in words (for example "etl: no spans for 7h", "support: unfinished runs at 12.0%"). An incident keeps one signal per hour or day it fired, but the incident page and alert messages show one entry per metric, its strongest; the page folds the earlier buckets under it, and the webhook payload still carries all of them. Budget signals read "$41.50 of $50.00", reviewed accuracy and release findings show the new and previous version in their own units
  • Migrations 016–022 add the columns, the latency rollup and the hourly activity_hourly rollup, and backfill both from stored spans (activity for the last 35 days). Stop ingestion while they run