Repository navigation
Releases
Releases · antonij-simonovski/tracium
Release 1.3.0
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 withPUT /v1/workflows/{name}/reviews?key=&value=[&span=], and get 204. A review can sendoutputto 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,/fieldsand/review-spans. Postgres migration007addsrun_reviewsandrun_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_failurecolumn: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) andtool_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 incache_read_tokens - New anomaly metrics on
GET /v1/metrics/anomalies:latency_p95(daily, per workflow, from the newmetrics_daily_latencyrollup), and hourlytruncation_rate,refusal_rate,tool_error_rate,llm_calls_per_run,tool_repeat,cache_hit_ratioandheartbeat(a client that missed 3 or more hours of the week it is usually active in, scopeclient, 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_repeatcompares with the p95 run. Anomalies carry newclientandtrace_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) andGET|DELETE /v1/workspaces/{id}/incident-mutes[/{muteId}]. Configure withDETECTION_ENABLED,DETECTION_INTERVAL_SECONDSandDETECTION_MIN_SEVERITY. Postgres migration008addsincidents,incident_signalsandincident_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 withrelease_regression. New routesGET /v1/metrics/workflows/{name}/versions/{version}/reportandGET /v1/release-reports; workflow versions carryreport_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 migration010addsrelease_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 withreasonand, for incident runs,incident_id. Workflow pages show the queue; a run opened from it shows a Next button. Reviews store thereason(the queue's, else the run's silent-failure flag) in Postgres migration013 - 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_accuracysignal 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 scopeservicewith aservicefield, 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) andstuck_runs(runs with spans but no root span 30 minutes on, up to 3 intrace_ids) - The collector stores four more span columns for upcoming detectors:
context_ratio(prompt tokens, cache reads and writes included, over the model'smax_input_tokens; 0 when unknown),response_model(normalizedgen_ai.response.model;modelstays the request model), andoutput_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.jsonnow carries each model'smax_input_tokensandmax_output_tokensfrom LiteLLM (same308fe0792080snapshot, 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) andduplicate_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_idsholds one such run). Workflow anomalies carry a newmodel_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_hourlyand backfill its last 35 days, soingest_silenceworks 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'sRetry-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 withGET|POST /v1/workspaces/{id}/alert-channels,PATCH|DELETE /v1/workspaces/{id}/alert-channels/{channelId}andPOST …/{channelId}/test;GET /v1/incidents/{id}/deliveriesshows delivery status. URLs must be https to public addresses unlessALERTS_ALLOW_PRIVATE_URLS=true. Postgres migration009addsalert_channelsandalert_deliveries - Healthy release notices. A channel can turn on
notify_healthy_releases(off by default; Settings → Alerts, "Healthy releases") to get a one-linerelease_healthymessage, 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 migration014adds 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.minSeverityandapi.alerts.allowPrivateURLssetDETECTION_*andALERTS_ALLOW_PRIVATE_URLSon 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 withGET|POST /v1/workspaces/{id}/alert-rulesandPATCH|DELETE /v1/workspaces/{id}/alert-rules/{ruleId}. Reaching 80% adds a warningbudgetsignal 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 migration011addsalert_rules - Incidents in the dashboard: a new...
Release 1.2.4
Changed
pricing.jsonrefreshed from LiteLLM (308fe0792080): 3,927 models, up from 2,490. Newly priced models include Typesafe AI's jev (typesafe/jev-1.13.0,typesafe/jev-1.14.0,typesafe/jev-latest), which were recorded at $0. Spans already stored keep their old cost
Release 1.2.3
Fixed
- The bundled dashboard nginx answered
POST /v1/mcpwith a 301 to/v1/mcp/that named its internal port (e.g.http://host:3000/v1/mcp/), so MCP clients connecting with OAuth (1.2.2) never reached the API./v1/mcpis now proxied as is. The Helm Ingress was not affected
Release 1.2.2
Added
- MCP clients can connect with OAuth instead of a pasted read key. Set
PUBLIC_URL(server.public_url, Helmapi.publicURL) to the origin you open Tracium at, and give a client such as Claude justhttps://your-tracium/v1/mcp: it registers itself, the user signs in and clicks Allow on the dashboard's new/oauth/authorizepage, and the client receives a new read key named after it, revoked under Settings → Account. Tracium is its own authorization server, so nothing is registered with an outside provider. New routes:/.well-known/oauth-protected-resource[/v1/mcp],/.well-known/oauth-authorization-server,POST /v1/oauth/register(RFC 7591),GET|POST /v1/oauth/authorizeandPOST /v1/oauth/token. A 401 fromPOST /v1/mcpcarriesWWW-Authenticatewith the resource metadata URL. Only the authorization code flow with S256 PKCE for public clients is supported; codes last a minute and work once. Register and token are limited per IP toAUTH_VERIFY_RATE_LIMIT_PER_MINUTE(120), not the login limit, since hosted connectors share egress IPs. Postgres migration006addsoauth_clientsandoauth_codes. WithoutPUBLIC_URLnothing changes - Dashboard: a consent page at
/oauth/authorizenames the app and where it will be sent back to, with Allow and Cancel. A signed-out visitor goes through login first and comes back to it PUBLIC_URLin.env.exampleanddocker-compose.yml(empty by default), andapi.publicURLin the Helm chart's values, written toserver.public_url- The bundled nginx and the Helm Ingress route
/.well-known/oauth-protected-resourceand/.well-known/oauth-authorization-serverto the API, and nginx serves/oauth/authorizewithframe-ancestors 'none'so other sites can't embed it. A reverse proxy of your own needs the same routes; seedeploy/docs/upgrading.md
v1.2.1
Release 1.2.0
Added
- MCP server at
POST /v1/mcp(stateless Streamable HTTP) withlist_workspaces,describe_schema,query,list_traces,get_traceanddetect_anomaliestools, so an AI client can answer questions about your own telemetry. Each tool takes an optionalworkspace_id;list_tracesandget_tracetakefields(andspan_fields) to return only what the client needs, and page withpage(span_page). Tools are annotated read-only, results are returned once as text, and requests whoseOriginis not the server's own host are refused. Creating a read key shows one connector URL,/v1/mcp/<key>, to paste into Claude's custom connector dialog or any MCP client; the bundled nginx keeps that path out of its access log, but a Helm Ingress logs it unless configured not to./v1/queryand both MCP routes share a rate limit of 120 requests per minute per account (AUTH_QUERY_RATE_LIMIT_PER_MINUTE), since hosted connectors such as Claude's share egress IPs POST /v1/queryandGET /v1/query/schema: structured custom queries over calls or runs, with metrics, up to 4 dimensions (includingattr.<key>custom attributes), filters and hourly or daily buckets, over windows up to 92 days. On calls, every stored column is a field, read live from ClickHouse so new columns need no code: group, filter (gt/lt/is_emptyand more), aggregate as<func>:<field>(e.g.max:cost_usd), or list matching calls withcolumns. On calls,run.<field>reads the call's run (run.errored,run.cost_usd,run.attr.<key>) andparent.<column>its parent span. On runs, per-run totals (cost_usd,duration_ms,errored,call_count, tokens) andattr.<key>are fields, so runs can be filtered, listed withcolumnsand aggregated with<func>:<field>. Filters takeanyfor OR,formulascompute from the metrics (e.g.cost / runs), andhavingfilters on metrics and formulas. Results page withpage. No SQL is accepted; names are checked against the catalog and live columns, and every query is limited to the caller's workspaces. Cost matches the dashboard (meta.cost_source: reconciled) when grouped only by user or workspace- Read keys, under Settings → Account and
/v1/account/api-keys. A read key belongs to the account that created it and acts as that account on the query API, MCP and setup checks, reading the workspaces the account is a member of at request time. The collector rejects read keys for ingest, and ingest keys cannot use the query API or MCP. Postgres migration005addsapi_keys.scope(ingestfor every existing key) and letsworkspace_idbe null for read keys tracium.cost_usdset by the sender on a span with no model and no token counts (a paid tool or external API call) is stored as that span's cost and counted in run, workflow and client totals. Model calls, embeddings included, are still priced from their tokens and ignore it. A value below 0, not a number, or above $10,000 drops the span with the new codecost_out_of_range, which the setup checks report. Token metrics never meter this spend, so cost totals add it on top of the span and metric reconciliation. Migration015addsreported_costtotracium.metrics_daily_costand recreates its view; stop the collector while it runsGET /v1/metrics/setup-checksalso accepts a workspace ingest key (trc_...) as the bearer token, scoped to the key's workspace and checked against the entitlements of the user who created the key, so a coding agent can verify instrumentation without a dashboard login. Every other route still requires a session tokensincefilter onGET /v1/metrics/setup-checks, so a fix can be checked against new spans onlybootstrapcommand in the API image (docker compose exec api ./bootstrap --email you@example.com) creates the account if missing, a workspace if it owns none (a workspace it was only invited to is never used), and an API key, and prints the key, so a local install needs no dashboard steps before ingest. It only runs with access to the API's database; there is no HTTP endpoint.AGENT_SETUP.mduses it for the local Docker pathAGENT_SETUP.md, a playbook a coding agent follows to instrument an app with OpenTelemetry and send it to Tracium: it asks about workflows, trace scope and non-LLM services, sets the workflow name and version on every span, exports only the traces that call LLM services, reports non-LLM costs withtracium.cost_usd, and verifies the result with the setup checks. The README quickstart opens with the prompt that starts it
Changed
- Spans with no model always pass the collector's
allowed_modelslist, which now restricts model calls only. Before, it dropped every tool and API span asunknown_model - A streamed model call with no token usage is flagged unmetered even if it carries
gen_ai.usage.costorllm.usage.total_cost; those attributes were never used for cost - The collector is built on OpenTelemetry Collector v0.163.0 (OCB v0.163.0,
go.opentelemetry.io/otelv1.69.0) with grpc 1.84 and clickhouse-go 2.49. A custom collector config must move the ClickHouse exporter'sbatcherblock tosending_queue.batch(min_size_items/max_size_itemsbecomemin_size/max_sizewithsizer: items) andservice.telemetry.metrics.addressto areaderspull exporter; the bundled config already does - Images build with Go 1.27
- Dashboard: React 19, React Router 7, Vite 8 and Vitest 5. The dashboard library accepts React 18 or 19 as a peer
Release 1.1.0
Added
- Workflow versions. A span's version is the resource's
tracium.workflow.version; span attributes are not read. It is stored in the newtracium.spans.workflow_versioncolumn and added to themetrics_dailykey (migration 014) Trace.workflow_version: the root span's version, else the earliest versioned span'sGET /v1/metrics/workflows/{name}/versionslists a workflow's versions with runs, cost per run, p95 latency, error rate and tokens per runversionfilter onGET /v1/tracesand the series endpoints- Workflow detail, its series and the
versionfilter serve 90d and 1y from the daily rollup, with latency unset, so the workflow and version compare pages work on long ranges GET /v1/metrics/token-seriesreturns input and output tokens per time bucket; the Usage page charts themspan.jsonlistsworkflow_version- Setup checks
workflow_without_version(info: runs with notracium.workflow.version) andversion_per_run(warning: a workflow in a workspace with at least 20 versioned runs where more than half carry a distinct version) - The examples set
tracium.workflow.version, and the demo seed ships two or three releases per workflow, with one unversioned workflow Anomaly.version_change: a workflow version first seen on the anomaly's day or the day before (for workspace-wide anomalies, of the workflow that carried the most of the metric, errored runs for error rate, and none when that workflow did not change version; a workflow's first versioned day does not count); the summary and the Overview outliers name it- The smoke test checks versions end to end, and the upgrade test runs migration 014 on a 1.0.4 rollup
- Dashboard light mode, toggled from the sidebar; the default theme follows the system preference
- Collapsible dashboard sidebar
- Sidebar GitHub star button with the live star count
Changed
- Migration 014 rebuilds
metrics_dailywith the version column in its sorting key and keeps the original asmetrics_daily_pre_version. Stop ingestion while it runs; existing rollup rows read as unversioned. - The repository moved to
antonij-simonovski/tracium. Images are now published asghcr.io/antonij-simonovski/{collector,api,dashboard,migrate};docker-compose.ymland the Helm chart point there, and the oldghcr.io/antonij-traciumpaths no longer resolve. Update any image overrides
Release 1.0.4
Added
- Setup checks:
GET /v1/metrics/setup-checksreports instrumentation problems (unpriced or missing models, streams without usage, LLM spans that end instantly, errors without a message, traces missing their root span, no LLM spans, workflows withoutgen_ai.agent.name, spans rejected at ingest) with how to fix each; the dashboard flags them in a banner on Overview Span.setup_issueslists the span-level checks a span failstracium.rejected_spans(migration 012) counts rejected spans per workspace, hour and error code, written by the collector whenprocessors.tracium.dead_letter.clickhouse_dsnis setCAPTURE_CONTENT=false(Helm:collector.captureContent=false) stops the collector storing prompt and completion text- Helm values for pod and container security contexts, and
ingress.annotations - Dashboard extensions:
ingestEndpointsets the OTLP endpoint shown in the workspace connection instructions, which otherwise show the local collector
Changed
- A span rejected for a missing ingest key is no longer attributed to the workspace its sender claimed
tracium.rejected_spansrows expire afterRETENTION_DAYS, like spans (migration 013)POST /v1/auth/passwordreturns200with a new session token instead of204; changing a password, here or with thereset-passwordCLI, ends every earlier sessionPOST /v1/workspaces/{id}/membersalways adds amember; therolefield is gone and ownership can't be granted- Auth and entitlement failures return the JSON
ErrorResponse; a session that can't be verified because Postgres is unavailable gets503 UNAVAILABLEinstead of401 - Login takes the same time whether or not the email has an account
- Metrics endpoints other than the series reject the
workflowfilter, and attribute usage rejects ranges longer than 30d - The API shares one Postgres pool and runs its migrations once at startup; an invalid number in
AUTH_RATE_LIMIT_PER_MINUTEorAUTH_VERIFY_RATE_LIMIT_PER_MINUTEfails startup - All images run as a non-root user: uid 10001, or
nginx-unprivileged's uid 101 for the dashboard.docker compose uphands an existing collector queue volume to the collector's user - The migrate image contains the schema migrations, so Compose no longer mounts
collector/schema - Images build with Go 1.26 and Node 24, matching CI
- Helm: ClickHouse probes use its HTTP
/ping, an emptystorageClassuses the cluster default, and the collector no longer receives unused env vars - Dashboard: shared stat tiles, KPI strip and formatters; trend arrows are colored by whether the change is good or bad; large traces render faster; dialogs trap focus and close on Escape; pages recover from a crash on navigation
- Dashboard: the trace view shows the trace's client as a chip beside the start and end time
Fixed
span.jsondocumentsworkspace_idas set from the verified ingest key andmodel_normalizedas lower-cased only, with no alias resolutionspan.jsonlistsworkflow_name,service_name,sourceandattributes, andavailable_toolsnamesgen_ai.tool.definitionsas a source- Workspace role casing, a
500when revoking an API key, case-sensitive member email lookup, and readiness errors that leaked internal details - The collector keeps the unmetered flag without content capture, matches
allowed_modelscase-insensitively, treats permanent row errors as permanent, and prices Haiku 4.5 - Collector key verification no longer fails waiting requests when the coalescing request is cancelled, and serves stale keys to rate-limited senders
- The dashboard clears cached data on logout, reads daily chart dates in UTC, shows
$0.00costs, and keeps data when a poll fails - Workflow detail no longer shows another workflow's or workspace's numbers while loading, and its failure count matches the stats
- Usage and Clients: unattributed spend can't be opened as a client, a stale attribute key falls back to a valid one, and cost and runs pair by bucket time
- Signup asks for 8+ characters, matching the API
- Helm creates Postgres data in a subdirectory on new volumes and restarts pods when their config changes
Removed
auth.mode=none(AUTH_MODE=none); the API always requires authentication- Unused API config:
server.health_addr,auth.token_headerand thetelemetrysection (log_level,log_formatand theLOG_LEVEL/LOG_FORMATenv vars)
Release 1.0.3
Added
- Node.js example that sends a GenAI-semconv trace without an LLM provider key (
examples/node) - README dashboard GIF and a "Works with" section listing supported instrumentation
Changed
docker compose uppulls the release images pinned byTRACIUM_VERSION;compose.build.yaml(used bymake up) builds from source- The collector health check is published on host port
13133instead of8080 - ClickHouse and Postgres are no longer published on the host by default;
make uppublishes them throughcompose.dev.yaml - Helm installs use the chart attached to each release; installing with
--waitis not supported - The dashboard package is marked
"type": "module" - Go workspace requires Go 1.26
- Dependencies:
golang.org/x/crypto0.57.0,go.uber.org/zap1.28.0,@tanstack/react-query5.104.0,jsdom30.1.1,@vitejs/plugin-react5.2.0 - Dashboard image builds on
node:26-alpine; CI runs Node 24 - CI actions:
actions/checkoutv7,actions/setup-gov7,docker/build-push-actionv7,docker/login-actionv4,docker/setup-qemu-actionv4
Fixed
- The Helm chart requests images from
ghcr.io/antonij-tracium, where releases publish them - The workspace upgrade guide checks out the new release before migrating, and configures exporters with an ingest key
- Demo seed numbers in the READMEs match what the seed script sends
Removed
- One-off review reports and harnesses under
deploy/reportsanddeploy/tests - Unused
deploy/config/,deploy/.env.example,deploy/scripts/wait-for-db.sh,spec/codegen/gen-go-models.shand pnpm files - Enterprise and PII references from the documentation
Release 1.0.2
Added
- Release images are published for
linux/arm64as well aslinux/amd64, so they pull natively on Apple Silicon and ARM nodes
Changed
- Dashboard text is one step larger throughout, and secondary text uses a lighter gray for higher contrast