(ctx context.Context, invocationUUID uuid.UUID, event SyncStartedEvent)
| 154 | } |
| 155 | |
| 156 | func 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 | |
| 177 | type SyncFinishedEvent struct { |
| 178 | SyncStartedEvent |
nothing calls this directly
no test coverage detected