Plugin logging v1.7.0
·
11 commits
to dev
since this release
Plugin Release: logging v1.7.0
- feat: batch accounting:
recordBatchJobLifecyclepersists batch state on create and retrieve,accountBatchResultssettles costs inline on the/resultspath under a 30-second bound,StartBatchAccountingSweeperre-drives jobs that timed out with a per-runner ownership identity,EmitBatchAggregateLogwrites the aggregate cost entry with the creating request's identity and abifrost/<version>user agent,calculateBatchAggregateCostrepricesModel="mixed"rows per model breakdown during cost recalculation (foreground and background, via the sharedpersistRecalcOutcomes), andbatch_debugis included in list queries;Inittakes abatchStore(nil disables batch accounting) (thanks @SahilChoudhary22!) (#5296, #6121, #6474, #6505) - feat: input/output/additional cost split persisted on every log and surfaced as
cost_breakdownin the log detail API, with cached-read, reasoning, guardrail, MCP and semantic cache detail; fallback billing paths, speech, transcription and OCR usages populate the split, and legacy total-only rows are attributed to input cost (#6511) - feat: Bifrost overhead latency:
upstream_latencyandoverhead_latencyforwarded fromPostLLMHookand backfilled from the root span's authoritative attributes inInject, stamped only on the terminal entry per trace;computeOverheadBreakdownwalks the span tree, computes self-time per span, groups overhead-side spans into buckets (serialization, middleware, plugins, queue wait, key selection, convertor, networking, client delivery, scheduling, worker hand-off, provider-internal) and persists them tooverhead_breakdown, with streaming traces folding parse, convert, backpressure, transport CPU and client-write time into their own buckets and using the measured sum as overhead;ConsumesOverheadSpansreturns true so the plugin keeps receiving breakdown spans that other connectors no longer see (#5533, #6388, #6389, #6433, #6470, #6495) - feat:
service_tierfrom streamed Anthropic responses flows throughconvertToProcessedStreamResponseinto the log entry so repricing uses the served tier (#6236) - feat: video edit requests are logged with their input (#6270)
- perf: identity and governance context reads are deferred past the non-final-chunk gate in
PostLLMHook, and JSON encoding in HTTP helpers uses sonic (#5957, #6268) - feat: add a no-op
HTTPTransportPreAuthHookfor the new pre-authentication transport phase (#6375) - chore: upgraded core to v1.8.0 and framework to v1.6.0
Installation
# Update your go.mod to use the new plugin version
go get github.com/maximhq/bifrost/plugins/logging@v1.7.0This release was automatically created from version file: plugins/logging/version