Skip to content

Commit 9fe8a39

Browse files
committed
Support 64 bit trace ID
Documentation: http://zipkin.io/pages/instrumenting.html Ticket: #11
1 parent ae07326 commit 9fe8a39

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)