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

Function GetGlobalTelemetryClient

pkg/telemetry/global.go:53–56  ·  view source on GitHub ↗

GetGlobalTelemetryClient returns the global telemetry client for adding to context

(ctx context.Context)

Source from the content-addressed store, hash-verified

51
52// GetGlobalTelemetryClient returns the global telemetry client for adding to context
53func GetGlobalTelemetryClient(ctx context.Context) *Client {
54 EnsureGlobalTelemetryInitialized(ctx)
55 return globalToolTelemetryClient
56}
57
58// SetGlobalTelemetryVersion sets the version for automatic telemetry initialization
59// This should be called by the root package to provide the correct version

Callers 2

RunFunction · 0.92

Calls 1

Tested by 1