snowplow / snowplow-golang-tracker

Snowplow event tracker for Golang. Add analytics to your Go apps and servers
http://snowplowanalytics.com
Apache License 2.0
25 stars 14 forks source link

Use `uuid.EnableRandPool()` setting #81

Open colmsnowplow opened 2 months ago

colmsnowplow commented 2 months ago

I have noticed in investigating another issue that UUID distribution is slightly skewed when using generating UUIDs without setting uuid.EnableRandPool().

This has resulted in a noticeable effect on the distribution of data when setting partition keys - I'm not sure of the specifics of risk of conflicts for ID generation, but I think we should consider enabling that setting in the tracker to ensure as random ID generation as possible.