You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- feat: added responses format tool execution support to mcp
3
+
- feat: added responses format tool execution support to mcp
4
+
- feat: adds central tracer for e2e tracing
5
+
6
+
### BREAKING CHANGES
7
+
8
+
-**Plugin Interface: TransportInterceptor removed, replaced with HTTPTransportMiddleware**
9
+
10
+
The `TransportInterceptor` method has been removed from the `Plugin` interface in `schemas/plugin.go`. All plugins must now implement `HTTPTransportMiddleware()` instead.
Copy file name to clipboardExpand all lines: core/schemas/bifrost.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ type BifrostConfig struct {
22
22
AccountAccount
23
23
Plugins []Plugin
24
24
LoggerLogger
25
+
TracerTracer// Tracer for distributed tracing (nil = NoOpTracer)
25
26
InitialPoolSizeint// Initial pool size for sync pools in Bifrost. Higher values will reduce memory allocations but will increase memory usage.
26
27
DropExcessRequestsbool// If true, in cases where the queue is full, requests will not wait for the queue to be empty and will be dropped instead.
27
28
MCPConfig*MCPConfig// MCP (Model Context Protocol) configuration for tool integration
@@ -139,6 +140,13 @@ const (
139
140
BifrostMCPAgentOriginalRequestIDBifrostContextKey="bifrost-mcp-agent-original-request-id"// string (to store the original request ID for MCP agent mode)
140
141
BifrostContextKeyStructuredOutputToolNameBifrostContextKey="bifrost-structured-output-tool-name"// string (to store the name of the structured output tool (set by bifrost))
141
142
BifrostContextKeyUserAgentBifrostContextKey="bifrost-user-agent"// string (set by bifrost)
143
+
BifrostContextKeyTraceIDBifrostContextKey="bifrost-trace-id"// string (trace ID for distributed tracing - set by tracing middleware)
144
+
BifrostContextKeySpanIDBifrostContextKey="bifrost-span-id"// string (current span ID for child span creation - set by tracer)
145
+
BifrostContextKeyStreamStartTimeBifrostContextKey="bifrost-stream-start-time"// time.Time (start time for streaming TTFT calculation - set by bifrost)
146
+
BifrostContextKeyTracerBifrostContextKey="bifrost-tracer"// Tracer (tracer instance for completing deferred spans - set by bifrost)
147
+
BifrostContextKeyDeferTraceCompletionBifrostContextKey="bifrost-defer-trace-completion"// bool (signals trace completion should be deferred for streaming - set by streaming handlers)
148
+
BifrostContextKeyTraceCompleterBifrostContextKey="bifrost-trace-completer"// func() (callback to complete trace after streaming - set by tracing middleware)
149
+
BifrostContextKeyPostHookSpanFinalizerBifrostContextKey="bifrost-posthook-span-finalizer"// func(context.Context) (callback to finalize post-hook spans after streaming - set by bifrost)
142
150
)
143
151
144
152
// NOTE: for custom plugin implementation dealing with streaming short circuit,
0 commit comments