HashForTraceID generates a generic hash for the trace ID, suitable for mapping and deduping.
(tid []byte)
| 24 | |
| 25 | // HashForTraceID generates a generic hash for the trace ID, suitable for mapping and deduping. |
| 26 | func HashForTraceID(tid []byte) uint64 { |
| 27 | h := fnv.New64() |
| 28 | _, _ = h.Write(tid) |
| 29 | return h.Sum64() |
| 30 | } |