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

Function TrackSyncStarted

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

Source from the content-addressed store, hash-verified

154}
155
156func TrackSyncStarted(ctx context.Context, invocationUUID uuid.UUID, event SyncStartedEvent) {
157 if client == nil {
158 return
159 }
160
161 details := getSyncEventDetails(ctx)
162 if details == nil {
163 return
164 }
165
166 if details.isCurrentTeamInternal {
167 return
168 }
169
170 _ = client.Enqueue(rudderstack.Track{
171 UserId: details.user.ID.String(),
172 Event: "sync_run_started",
173 Properties: getSyncCommonProps(invocationUUID, event, details),
174 })
175}
176
177type SyncFinishedEvent struct {
178 SyncStartedEvent

Callers

nothing calls this directly

Calls 3

getSyncEventDetailsFunction · 0.85
getSyncCommonPropsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected