MCPcopy Create free account
hub / github.com/algolia/cli / TrackEvent

Function TrackEvent

pkg/telemetry/events.go:135–141  ·  view source on GitHub ↗

TrackEvent sends the event through the context's telemetry client, silently doing nothing when no client is present.

(ctx context.Context, event Event)

Source from the content-addressed store, hash-verified

133// TrackEvent sends the event through the context's telemetry client, silently
134// doing nothing when no client is present.
135func TrackEvent(ctx context.Context, event Event) {
136 client := GetTelemetryClient(ctx)
137 if client == nil {
138 return
139 }
140 _ = client.Track(ctx, event.Name, event.Properties)
141}
142
143// AuthStarted is emitted when the browser-based OAuth flow begins.
144func AuthStarted(flow Flow, noBrowser bool) Event {

Callers 10

RunOAuthFlowFunction · 0.92
trackOAuthFlowOutcomeFunction · 0.92
runLogoutCmdFunction · 0.92
RunFunction · 0.92
trackPlanChangeOutcomeFunction · 0.92
changePlanFunction · 0.92
runCreateCmdFunction · 0.92
trackCreateOutcomeFunction · 0.92
createApplicationFunction · 0.92

Calls 2

GetTelemetryClientFunction · 0.85
TrackMethod · 0.65

Tested by 1