MCPcopy Create free account
hub / github.com/docker/docker-agent / WithTracer

Function WithTracer

pkg/runtime/runtime.go:374–378  ·  view source on GitHub ↗

WithTracer sets a custom OpenTelemetry tracer; if not provided, tracing is disabled (no-op).

(t trace.Tracer)

Source from the content-addressed store, hash-verified

372
373// WithTracer sets a custom OpenTelemetry tracer; if not provided, tracing is disabled (no-op).
374func WithTracer(t trace.Tracer) Opt {
375 return func(r *LocalRuntime) {
376 r.tracer = t
377 }
378}
379
380// WithSteerQueue sets a custom MessageQueue for mid-turn message injection.
381// If not provided, an in-memory buffered queue is used.

Callers 7

GetMethod · 0.92
runDockerAgentFunction · 0.92
CreateToolHandlerFunction · 0.92
runtimeForSessionMethod · 0.92
newRuntimeMethod · 0.92
runNewCommandMethod · 0.92
runtimeOptsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected