Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp with not enough precision #198

Open
lucasflink opened this issue Dec 13, 2023 · 0 comments
Open

Timestamp with not enough precision #198

lucasflink opened this issue Dec 13, 2023 · 0 comments

Comments

@lucasflink
Copy link

lucasflink commented Dec 13, 2023

We are using this library to send events to segment but it seems the timestamp of the event does not have enough precision
i.e 2023-12-05T07:00:09.404Z

This is an issue when we send two events at the same time, so they go to segment with the same 3 ms digits values but if we extend to more digits it would work. Any idea what we can do to improve this?

Code example:

return analytics.Track{
		Event:     "eventName",
		UserId:    "userID",
		Timestamp: time.Now(),
		Properties: map[string]any{
			subscriptionID:       "subscriptionID",
		},
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant