MCPcopy Index your code
hub / github.com/docker/docker-agent / RecordToolCall

Method RecordToolCall

pkg/runtime/telemetry.go:28–28  ·  view source on GitHub ↗

RecordToolCall is fired after every tool invocation, regardless of outcome.

(ctx context.Context, toolName, sessionID, agentName string, duration time.Duration, err error)

Source from the content-addressed store, hash-verified

26 RecordError(ctx context.Context, message string)
27 // RecordToolCall is fired after every tool invocation, regardless of outcome.
28 RecordToolCall(ctx context.Context, toolName, sessionID, agentName string, duration time.Duration, err error)
29 // RecordTokenUsage is fired after each model response that reports usage.
30 RecordTokenUsage(ctx context.Context, model string, inputTokens, outputTokens int64, cost float64)
31}

Callers 4

TestNewClientFunction · 0.65
TestSessionTrackingFunction · 0.65
TestAllEventTypesFunction · 0.65
RecordToolCallFunction · 0.65

Implementers 3

Clientpkg/telemetry/types.go
recordingTelemetrypkg/runtime/telemetry_test.go
defaultTelemetrypkg/runtime/telemetry.go

Calls

no outgoing calls

Tested by 3

TestNewClientFunction · 0.52
TestSessionTrackingFunction · 0.52
TestAllEventTypesFunction · 0.52