Based on PostHog Go SDK. See upstream LICENSE for attribution.
