MCPcopy
hub / github.com/docker/docker-agent / RecordError

Method RecordError

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

RecordError is fired when the run loop or a model call surfaces a fatal error.

(ctx context.Context, message string)

Source from the content-addressed store, hash-verified

24 RecordSessionEnd(ctx context.Context)
25 // RecordError is fired when the run loop or a model call surfaces a fatal error.
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.

Callers 15

StartMethod · 0.65
refreshStoredTokenMethod · 0.65
handleOAuthFlowMethod · 0.65
ListToolsMethod · 0.65
CallToolMethod · 0.65
ListPromptsMethod · 0.65
GetPromptMethod · 0.65
GenerateMethod · 0.65
RecordErrorFunction · 0.65
RecordErrorMethod · 0.65
RecordErrorMethod · 0.65
RecvMethod · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected