(ctx context.Context, invocationUUID uuid.UUID, event InitEvent)
| 268 | } |
| 269 | |
| 270 | func 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 | |
| 297 | func TrackInitCompleted(ctx context.Context, invocationUUID uuid.UUID, event InitEvent) { |
| 298 | if client == nil { |
nothing calls this directly
no test coverage detected