You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If a higher version is detected, the implementation SHOULD try to parse it by trying the following:
625
+
// o If the size of the header is shorter than 55 characters, the vendor should not parse the header and should restart the trace.
626
+
// o Parse trace-id (from the first dash through the next 32 characters). Vendors MUST check that the 32 characters are hex, and that they are followed by a dash (-).
627
+
// o Parse parent-id (from the second dash at the 35th position through the next 16 characters). Vendors MUST check that the 16 characters are hex and followed by a dash.
628
+
// o Parse the sampled bit of flags (2 characters from the third dash). Vendors MUST check that the 2 characters are either the end of the string or a dash.
629
+
if(traceParent.Length>55&&traceParent[55]!='-')
630
+
{
631
+
returntrue;// invalid format for version other than 00
// Example 00-0af7651916cd43dd8448eb211c80319c-b9c7c989f97918e1-01
329
+
// If a higher version is detected, the implementation SHOULD try to parse it by trying the following:
330
+
// o If the size of the header is shorter than 55 characters, the vendor should not parse the header and should restart the trace.
331
+
// o Parse trace-id (from the first dash through the next 32 characters). Vendors MUST check that the 32 characters are hex, and that they are followed by a dash (-).
332
+
// o Parse parent-id (from the second dash at the 35th position through the next 16 characters). Vendors MUST check that the 16 characters are hex and followed by a dash.
333
+
// o Parse the sampled bit of flags (2 characters from the third dash). Vendors MUST check that the 2 characters are either the end of the string or a dash.
yieldreturnnewobject[]{"01-0af7651916cd43dd8448eb211c80319c-b9c7c989f97918e1-011",false};// version higher than 00 but it supposes to have '-' after the sampling flags
359
+
360
+
// version higher than 00, can have '-' after the sampling flags and more data. Vendors MUST NOT parse or assume anything about unknown fields for this version
0 commit comments