Skip to content
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dca3ecc
fixes helm changelog (#5426)
akshaydeo Jul 21, 2026
9b02739
docs: clarify `x-bf-async-webhook` opt-in delivery and update async/w…
Pratham-Mishra04 Jul 21, 2026
c8df649
refactor: replace boolean switches with tri-state selects for deploym…
Pratham-Mishra04 Jul 22, 2026
c201cfe
lakera guardrail logo + docs (#5416)
Madhuvod Jul 22, 2026
f736463
fix: support RFC3339 timestamps in `parseTrialExpiry` and update bann…
impoiler Jul 22, 2026
11c1295
[fix]: bedrock - derive ConverseStream stopReason instead of hardcodi…
AdityaPainuli Jul 22, 2026
37e15b0
fix: handle input images in image gen for replicate (#5454)
TejasGhatte Jul 22, 2026
71298f1
fix: gemini tool schema integer constraint (#5466)
TejasGhatte Jul 22, 2026
9c3e4c7
Revert "fix: gate matview read path on shape check to prevent "column…
impoiler Jul 22, 2026
61e43dc
docs: add server-side dynamic header injection recipe and tip for MCP…
Pratham-Mishra04 Jul 22, 2026
21d969a
[fix]: bedrock - map IncompleteDetails reasons to Bedrock stopReason …
AdityaPainuli Jul 23, 2026
357c029
Merge branch 'dev' into fix/bedrock-stream-stopreason-5206
AdityaPainuli Jul 23, 2026
b152185
feat: adds bifrost latency data to connectors (#5467)
roroghost17 Jul 23, 2026
385bd33
Merge branch 'dev' into fix/bedrock-stream-stopreason-5206
AdityaPainuli Jul 23, 2026
a9946e9
fix: fixes connector UI redaction storage issue (#5478)
roroghost17 Jul 23, 2026
3bd0612
feat: bedrock batch role arn in key config (#5474)
TejasGhatte Jul 23, 2026
352c564
Merge branch 'dev' into fix/bedrock-stream-stopreason-5206
AdityaPainuli Jul 23, 2026
19beff9
feat: support matview_refresh_interval "off" to disable logstore matv…
jeremym-tanium Jul 30, 2026
33a4291
V2.0.0 (#4365)
akshaydeo Jul 30, 2026
bf7284b
gomod fixes (#5731)
akshaydeo Jul 30, 2026
2c668cd
third party notice (#5735)
akshaydeo Jul 31, 2026
2b07f99
feat(mcp-guardrails): add MCP log redaction changes (#5744)
Madhuvod Jul 31, 2026
dbebe39
feat(mcp-guardrails): ui changes (#5745)
Madhuvod Jul 31, 2026
29e49c9
added plugin logs in mcp logs (#5746)
Madhuvod Jul 31, 2026
e493a6a
dependabot alert fixes (#5756)
akshaydeo Jul 31, 2026
cc45872
mcp guardrails : config,helm and docs changes (#5758)
Madhuvod Aug 2, 2026
9954212
adds first time setup token to avoid opening new setup to the world (…
akshaydeo Aug 3, 2026
edf3878
brings back onboarding widget (#5784)
akshaydeo Aug 3, 2026
e0057ff
path normalization auth bypass (#5763)
akshaydeo Aug 3, 2026
72c4388
go mod fixes (#5789)
akshaydeo Aug 3, 2026
e0e13ec
Merge remote-tracking branch 'origin/dev' into fix/bedrock-stream-sto…
AdityaPainuli Aug 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion core/bifrost.go
Original file line number Diff line number Diff line change
Expand Up @@ -4950,7 +4950,7 @@ func (bifrost *Bifrost) shouldContinueWithFallbacks(fallback schemas.Fallback, f
// It handles plugin hooks, request validation, response processing, and fallback providers.
// If the primary provider fails, it will try each fallback provider in order until one succeeds.
// It is the wrapper for all non-streaming public API methods.
func (bifrost *Bifrost) handleRequest(ctx *schemas.BifrostContext, req *schemas.BifrostRequest) (*schemas.BifrostResponse, *schemas.BifrostError) {
func (bifrost *Bifrost) handleRequest(ctx *schemas.BifrostContext, req *schemas.BifrostRequest) (resp *schemas.BifrostResponse, bifrostErr *schemas.BifrostError) {
defer bifrost.releaseBifrostRequest(req)
provider, model, fallbacks := req.GetRequestFields()

Expand All @@ -4959,6 +4959,14 @@ func (bifrost *Bifrost) handleRequest(ctx *schemas.BifrostContext, req *schemas.
ctx = bifrost.ctx
}

// Reset first: bifrost.ctx is shared across every nil-ctx caller.
ctx.ResetUpstreamLatency()
// Stamp on the way out, after every attempt and fallback.
defer func() {
ctx.StampUpstreamLatency()
resp.PopulateUpstreamLatency(ctx)
}()

// Try the primary provider first
ctx.SetValue(schemas.BifrostContextKeyFallbackIndex, 0)
// Ensure request ID is set in context before PreHooks
Expand Down Expand Up @@ -5089,6 +5097,8 @@ func (bifrost *Bifrost) handleStreamRequest(ctx *schemas.BifrostContext, req *sc
ctx = bifrost.ctx
}

ctx.ResetUpstreamLatency()

// Try the primary provider first
ctx.SetValue(schemas.BifrostContextKeyFallbackIndex, 0)
// Ensure request ID is set in context before PreHooks
Expand Down
2 changes: 2 additions & 0 deletions core/mcp/toolmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,9 @@ func (m *ToolsManager) executeToolInternal(
},
}

toolCallStart := time.Now()
toolResponse, callErr := clientConn.CallTool(toolCtx, callRequest)
schemas.AddUpstreamLatency(ctx, time.Since(toolCallStart))
if callErr != nil {
// Sentinel-wrapped so the gate can classify error.type (timeout vs tool_error).
if toolCtx.Err() == context.DeadlineExceeded {
Expand Down
Loading