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

Function RecordError

pkg/telemetry/context.go:28–32  ·  view source on GitHub ↗
(ctx context.Context, err string)

Source from the content-addressed store, hash-verified

26}
27
28func RecordError(ctx context.Context, err string) {
29 if client := FromContext(ctx); client != nil {
30 client.RecordError(ctx, err)
31 }
32}
33
34func RecordToolCall(ctx context.Context, toolName, sessionID, agentName string, duration time.Duration, err error) {
35 if client := FromContext(ctx); client != nil {

Callers 1

RecordErrorMethod · 0.92

Calls 2

FromContextFunction · 0.85
RecordErrorMethod · 0.65

Tested by

no test coverage detected