LatitudeProduct update

Latitude · typescript-telemetry 4.2.0

Latitude typescript-telemetry 4.2.0 lets you bring your own LLM cost: capture can set a USD cost on each LLM-call span inside it, pricing computes cost from token counts, and costResolver returns a cost or falls back. The setLlmCost call sets the cost of a single span, with precedence running setLlmCost, capture, costResolver, pricing and then Latitude's server-side pricing. Where the SDK sets cost it replaces the instrumentation's cost and marks latitude.cost.source="user". Cost is applied at export through a wrapper, so other processors on a shared provider see the span unchanged.

Read the original

Saved . A shortened excerpt from GitHub Releases; the original publisher retains authorship.

Show all