MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / TrackInitStarted

Function TrackInitStarted

cli/internal/analytics/client.go:270–295  ·  view source on GitHub ↗
(ctx context.Context, invocationUUID uuid.UUID, event InitEvent)

Source from the content-addressed store, hash-verified

268}
269
270func TrackInitStarted(ctx context.Context, invocationUUID uuid.UUID, event InitEvent) {
271 if client == nil {
272 return
273 }
274
275 details := getSyncEventDetails(ctx)
276 if details != nil && details.isCurrentTeamInternal {
277 return
278 }
279
280 props := getInitCommonProps(invocationUUID, event, details)
281 if details != nil {
282 _ = client.Enqueue(rudderstack.Track{
283 UserId: details.user.ID.String(),
284 Event: "init_started",
285 Properties: props,
286 })
287 return
288 }
289
290 _ = client.Enqueue(rudderstack.Track{
291 AnonymousId: invocationUUID.String(),
292 Event: "init_started",
293 Properties: props,
294 })
295}
296
297func TrackInitCompleted(ctx context.Context, invocationUUID uuid.UUID, event InitEvent) {
298 if client == nil {

Callers

nothing calls this directly

Calls 3

getSyncEventDetailsFunction · 0.85
getInitCommonPropsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected