pub fn validate_span_id(span_id: &str) -> Result<(), OtelIdError>Expand description
Validates a span_id according to OTEL specification.
Span IDs must be exactly 16 lowercase hexadecimal characters.
ยงExamples
use northroot_proof_engine::ids::validate_span_id;
assert!(validate_span_id("d2b8c1e4f7a12345").is_ok());
assert!(validate_span_id("d2b8c1e4f7a1234").is_err()); // too short
assert!(validate_span_id("d2b8c1e4f7a1234G").is_err()); // invalid hex