All Tools
X
Dev ToolsFreeOpen Source
XID
Compact globally unique IDs for Go
MIT
ABOUT
Agent APIs need unique, URL-safe IDs that also sort by time. UUIDs are long and random; xid packs a timestamp, machine id, and counter into 20 characters so run IDs stay compact in logs and object keys.
INSTALL
go get github.com/rs/xidINTEGRATION GUIDE
1. Assign compact run IDs to Go agent jobs
2. Key API objects and webhook events with sortable IDs
3. Tag inference requests for log correlation
4. Store xid values as MongoDB-style 12-byte binary keys
TAGS
goidentifiersunique-idwebtracing