Skip to content

Commit e61dffb

Browse files
authored
fix: do not fail telemetry on containers (#847)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 9a3b089 commit e61dffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cli/internal/telemetry/posthog/posthog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (p *Tracker) TrackEvent(_ context.Context, eventName string, id string, tag
8686
// - The machine ID is available and different from the userID.
8787
// - The userID is different from the default one.
8888
// An alias can help to track the same user across different devices even when it was not logged in.
89-
if (tags["machine_id"] != "" && tags["machine_id"] != id) || id != telemetry.UnrecognisedUserID {
89+
if (tags["machine_id"] != "" && tags["machine_id"] != id) && id != telemetry.UnrecognisedUserID {
9090
if err := p.client.Enqueue(posthog.Alias{
9191
DistinctId: id,
9292
Alias: tags["machine_id"],

0 commit comments

Comments
 (0)