Workflow economics
Track cost per run and identify expensive chain branches.
LangChain gives structure for chains and agents. Opsmeter adds spend ownership so each workflow path has clear cost accountability.
Chain traces alone cannot answer which workflow path is driving budget pressure.
Chain traces alone cannot answer which workflow path is driving budget pressure.
Track cost per run and identify expensive chain branches.
Spot cost drift tied to prompt or model changes in one workflow.
Assign costly workflows to product and platform owners with evidence.
Carry workflowTag and run identifiers into model calls.
Bridge chain events to customer and endpoint ownership context.
Post request-level usage for each workflow execution step.
| Field | Example value | Why it matters |
|---|---|---|
| workflowTag | invoice.triage | Enables cost/run and cost/workflow concentration views. |
| stageTag | rerank | Identifies expensive workflow stage transitions. |
| tenantId | midmarket-eu | Connects workflow cost with account-level margin. |
| promptVersion | triage_v5 | Exposes release-linked workflow regressions. |
Add workflowTag and run identifiers to each model request in the chain.
Send token and cost metrics in a consistent payload across models.
Use by-workflow and by-endpoint views to isolate the expensive stage.
No proxy rewrite required. Keep your current app path and enrich request metadata.