MCPcopy Create free account
hub / github.com/coder/aibridge / withTracer

Function withTracer

internal/integrationtest/setupbridge.go:112–114  ·  view source on GitHub ↗

withTracer overrides the default tracer.

(t trace.Tracer)

Source from the content-addressed store, hash-verified

110
111// withTracer overrides the default tracer.
112func withTracer(t trace.Tracer) bridgeOption {
113 return func(c *bridgeConfig) { c.tracer = t }
114}
115
116// withMCP sets the MCP server proxier (default: NoopMCPManager).
117func withMCP(p mcp.ServerProxier) bridgeOption {

Callers 6

setupInjectedToolTestFunction · 0.85
TestTraceAnthropicFunction · 0.85
TestTraceAnthropicErrFunction · 0.85
TestTraceOpenAIFunction · 0.85
TestTraceOpenAIErrFunction · 0.85
TestTracePassthroughFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestTraceAnthropicFunction · 0.68
TestTraceAnthropicErrFunction · 0.68
TestTraceOpenAIFunction · 0.68
TestTraceOpenAIErrFunction · 0.68
TestTracePassthroughFunction · 0.68