(id string)
| 54 | } |
| 55 | |
| 56 | func HexStringToSpanID(id string) ([]byte, error) { |
| 57 | id = strings.TrimLeft(id, "0") |
| 58 | return hexStringToID(id, true) |
| 59 | } |
| 60 | |
| 61 | // spanKindFNVHashes contains pre-calculated FNV hashes for all span kind values (and two spares) |
| 62 | // defined in the OTEL spec. |