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

Struct defaultTelemetry

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

defaultTelemetry forwards to the package-level helpers in pkg/telemetry. They look up the optional client from context and no-op when none is present, so this is safe to use in tests that haven't called telemetry.WithClient on their context.

Source from the content-addressed store, hash-verified

35// present, so this is safe to use in tests that haven't called
36// telemetry.WithClient on their context.
37type defaultTelemetry struct{}
38
39func (defaultTelemetry) RecordSessionStart(ctx context.Context, agentName, sessionID string) {
40 telemetry.RecordSessionStart(ctx, agentName, sessionID)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected