Skip to content

Commit 5dcd9e4

Browse files
authored
Merge pull request #13 from sokac/fix/functions
Support 64 bit trace ID
2 parents c309115 + 9fe8a39 commit 5dcd9e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ function is_zipkin_timestamp($timestamp)
3535
* @return bool
3636
*/
3737
function is_zipkin_trace_identifier($identifier) {
38-
return ctype_xdigit((string) $identifier) && strlen((string) $identifier) === 32;
38+
return ctype_xdigit((string) $identifier) &&
39+
(strlen((string) $identifier) === 16 || strlen((string) $identifier) === 32);
3940
}
4041
}
4142

0 commit comments

Comments
 (0)