Skip to content

Timestamp with not enough precision #198

Description

@lucasflink

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",
		},
	}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions