ta
TanStack
GitHub
ai
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
ai
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
feat/otel-full-usage-emission
ebe519c3 ci: apply automated fixes
by autofix-ci...
a
Succeeded
feat/otel-full-usage-emission
ebe519c3 Merge 8ea04a299eac4a5a3c0b35da814f84702109cb7d into 6655787e654be4acdbb0326251c446426b268e8e
by Season Saw
S
Succeeded
feat/otel-full-usage-emission
0f0074a7 feat(ai): emit full usage on otel spans (cost, totals, cache/reasoning details) otelMiddleware only emitted gen_ai.usage.input_tokens/output_tokens even though TokenUsage already carries provider-reported cost, total tokens, cache/reasoning breakdowns, and duration-based billing. Backends like PostHog had to re-derive cost from their own price tables, losing cache discounts and gateway markup (OpenRouter), and duration-billed activities had no cost signal at all. A shared usageAttributes() helper now builds the full guarded attribute set at all three emission sites (RUN_FINISHED chunk, onUsage, onFinish rollup): - gen_ai.usage.total_tokens / gen_ai.usage.cost (de-facto extensions consumed directly by PostHog and LiteLLM-style backends) - gen_ai.usage.cache_read.input_tokens, cache_creation.input_tokens, reasoning.output_tokens (official GenAI semconv names) - tanstack.ai.usage.duration_seconds and the upstream cost split (no semconv equivalent exists) E2E: new /api/otel-usage route drives the existing openai-usage-details and openrouter-cost aimock mounts through otelMiddleware with a local capture tracer; middleware.spec.ts asserts the attributes land on iteration and root spans. Fixes #721
by Season
S
Succeeded
feat/otel-full-usage-emission
0f0074a7 Merge c7df2a33a8742e5544bb210020d6547094e6fd8a into 984ac3c8a59e4aef6d3e80b89b2d7986af818850
by Season Saw
S
Previous
Next