{"resourceId":"red-hat-ideabot-mlflow-agent-observability-token-accounting-20261124","versions":[{"version":"external-f8b48888aab256be2a8c83b2c8e25bcdee490d718108e076ea70a994c380d45a","resource":{"id":"red-hat-ideabot-mlflow-agent-observability-token-accounting-20261124","title":"Red Hat Emerging Technologies instruments its IdeaBot multi-agent assistant with MLflow Tracing, counting token usage only on provider-call spans","organization":"Red Hat Emerging Technologies (ACE team)","sector":"Strategic partner: agent observability engineering (internal application)","geography":"Global (internal Red Hat application)","publishedAt":"2026-11-24 (byline date on the post)","publicationDate":"2026-11-24","eventDate":null,"sourceName":"next.redhat.com (Red Hat Emerging Technologies blog)","sourceLabel":"Vendor engineering blog","sourceUrl":"https://next.redhat.com/2026/11/24/observability-for-production-agent-applications-how-we-integrated-mlflow-for-ideabot/","evidenceClass":"vendor-claim","outcomeClass":"emerging","topics":["developers-agents","operating-model","governance-procurement"],"finding":"Red Hat's ACE team describes how it monitors IdeaBot, an internal assistant in which an orchestrator coordinates five specialised subagents. Spans are tagged with session_id, user_id, agent_name and model_provider (OpenAI, Vertex or local vLLM/Ollama). Only the provider-call leaf span keeps the canonical MLflow token-usage record, and generic token attributes are removed from wrapper spans so the MLflow ingestion server cannot rebuild duplicate usage records. Cost is calculated from a pricing table, with cache-read and cache-creation tokens priced separately. A model with no configured price shows zero cost rather than an estimate, and provider invoices remain the billing source of truth. The post reports no measured savings or accuracy figures.","sledRelevance":"Agencies and universities piloting multi-agent assistants need to charge back or cap AI spend by department or program. The post shows a concrete design for attributing token costs per session, user and agent. It also warns that tracing wrappers can double-count usage, which matters when cost telemetry feeds budgets or audit evidence.","evidence":"Full post opened. The design rules, span table, token attributes, five-minute default cache lifetime and lessons learned are described. Its statements that prompt caching 'drastically reduced latency and cost' and that cache hit rates were verified are not quantified. The blog note says the technologies discussed are not part of supported products unless otherwise stated.","architectureImplications":"Observability runs alongside existing distributed tracing (the post says MLflow does not replace tracing, metrics or logs). Pricing is kept in a model-registry configuration rather than in agent code, and spans are exported with usage held only on the leaf spans.","governanceImplications":"Cost attribution per user and session lets programs set quotas and charge back usage. The post says agent.cost.usd is an operational signal, not a billing record, so finance should still reconcile against provider invoices.","securityPrivacyImplications":"Traces capture exact inputs, outputs and intermediate reasoning plus user_id. Public-sector deployments must treat trace stores as sensitive records under retention, access-control and public-records rules.","caveats":"An internal Red Hat application described by its own engineers. The post gives no measured results, sample or baseline, and the approach is not a supported product. Transferability to a SLED environment is untested.","streamIds":["red-hat"],"roles":{"sales":"Sales framing: cost visibility is the conversation, not the bot. Public-sector AI programs are being asked what agents cost per department or user. This post gives a credible design pattern: per-session and per-user token attribution with pricing kept in configuration. It supports an assessment conversation about how a customer would meter agent spend. It does not support savings claims, because no measurements are published, and it describes an unsupported internal Red Hat application, not a product the customer can buy.","engineering":"Engineering framing: count each provider call once. Keep canonical token usage on the provider-call leaf span, strip generic usage attributes from wrapper spans before MLflow export, and price cached tokens separately. Tag spans with session, user, agent and provider so costs can be grouped. Check the pattern against the customer's tracing stack and the upstream MLflow cost-rollup behaviour (see the related MLflow issue) before trusting the totals. Trace stores hold prompts and outputs, so design access control in from the start.","delivery":"Delivery framing: build cost telemetry as an operated service. Agree the attribution keys (session, user, program), load an approved pricing table, and reconcile agent cost totals against provider invoices for at least one billing cycle before they are used for chargeback. Set trace retention and access rules with the records officer. Keep observability deployment in step with the application rollout, which is one of the lessons the post lists."},"roleDetails":{"sales":{"customerProblem":"AI program owners cannot see which agent, user or department is driving token spend.","stakeholders":["AI program owner","Agency finance/chargeback office","Platform engineering lead","Records management officer"],"discoveryQuestions":["How do you attribute AI model spend to programs or users today?","Do your agent pilots mix hosted and self-hosted models?","What retention rules apply to AI prompts and outputs?"],"valueHypothesis":"Per-session, per-user cost attribution could give AI programs defensible chargeback figures, once reconciled against invoices.","potentialEngagement":"A bounded agent cost-telemetry design review for one pilot assistant.","unsupportedClaims":["Any measured cost or latency reduction (none published)","That the IdeaBot setup is a supported Red Hat product","That cost totals can replace provider invoices"]},"engineering":{"fit":"Fits teams already running or piloting multi-agent applications with OpenTelemetry tracing.","architectureIntegration":"MLflow Tracing alongside existing tracing, with canonical usage on provider-call spans and pricing held in a model registry configuration.","prerequisites":["An OpenTelemetry-instrumented agent application","An MLflow tracking server","An approved model pricing table"],"constraints":["Approach is not a supported product","Cost totals depend on provider-reported usage","Wrapper-span usage must be removed to avoid duplicates"],"security":"Traces hold prompts, outputs, reasoning steps and user_id, so the trace store needs access control and retention rules.","proofOfValue":["Compare per-session cost totals against provider invoices","Confirm that one model call wrapped in several spans is counted once","Confirm cache-read and cache-creation tokens are priced separately"]},"delivery":{"work":"Instrument one pilot agent, configure pricing, and reconcile cost telemetry against invoices.","dependencies":["Application team access for instrumentation","Finance supplies the pricing table","Records policy for trace data"],"ownership":"Platform or observability team owns the telemetry pipeline; finance owns reconciliation.","skillsAdoption":"Staff need training on OpenTelemetry GenAI span semantics and MLflow trace queries.","governanceCheckpoints":["Records officer approves trace retention","Finance signs off on the reconciliation method","Security reviews trace-store access"],"acceptanceCriteria":["Proposed: telemetry cost within an agreed tolerance of the invoice for one cycle","Proposed: no duplicate usage records in a seeded test","Proposed: cost reports grouped by program or user"],"risks":["Double-counted or dropped usage in rollups","Sensitive prompt data exposed through traces","Pricing tables going stale as provider rates change"]}},"retrievedAt":"2026-11-24T22:32:52-06:00","enrichedAt":"2026-11-24T22:41:53-06:00","enrichmentBasis":"retrieved source","accessibilityWorkforceImplications":"Teams need observability engineers familiar with OpenTelemetry GenAI conventions and MLflow. This is a specialist skill that few SLED IT shops have today.","procurementImplications":"When buying agent platforms or managed AI services, agencies can ask how token usage is attributed and whether vendors guard against double-counted usage in cost reports.","operatingModelImplications":"Gives a platform team an owner for AI cost telemetry, separate from application teams, with pricing tables managed as configuration.","sourceVerification":{"openedUrl":"https://next.redhat.com/2026/11/24/observability-for-production-agent-applications-how-we-integrated-mlflow-for-ideabot/","referenceExcerpt":"Provider invoices remain the source of truth for billing; agent.cost.usd is an operational attribution signal.","promptVersion":"sled-research-v4.0","model":null,"basis":"agent-reported inspection"}}}]}