github.com/waldiirawan/apm-agent-go/v2@v2.2.2/internal/testdata/json-specs/w3c_distributed_tracing.json (about)

     1  //
     2  // from https://github.com/w3c/distributed-tracing/blob/main/test/test_data.json
     3  //
     4  // NOTE: This file is manually copied from the above link and
     5  //       there is currently NO automation keeping it in sync with the upstream version.
     6  //
     7  // Latest commit 98f210e on Sep 24, 2019
     8  //
     9  [
    10  	{"headers": [["traceparent", "00-00000000000000000000000000000000-1234567890123456-01"]], "is_traceparent_valid": false},
    11  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    12  	{"headers": [], "is_traceparent_valid": false},
    13  	{"headers": [], "is_traceparent_valid": false},
    14  	{"headers": [["traceparent", "00-12345678901234567890123456789011-1234567890123456-01"], ["traceparent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    15  	{"headers": [], "is_traceparent_valid": false},
    16  	{"headers": [], "is_traceparent_valid": false},
    17  	{"headers": [["TraceParent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    18  	{"headers": [["TrAcEpArEnT", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    19  	{"headers": [["TRACEPARENT", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    20  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    21  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    22  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    23  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01 "]], "is_traceparent_valid": true},
    24  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01\t"]], "is_traceparent_valid": true},
    25  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01 \t"]], "is_traceparent_valid": true},
    26  	{"headers": [["traceparent", "00-12345678901234567890123456789012-0000000000000000-01"]], "is_traceparent_valid": false},
    27  	{"headers": [["traceparent", "00-12345678901234567890123456789012-.234567890123456-01"]], "is_traceparent_valid": false},
    28  	{"headers": [["traceparent", "00-12345678901234567890123456789012-123456789012345.-01"]], "is_traceparent_valid": false},
    29  	{"headers": [["traceparent", "00-12345678901234567890123456789012-12345678901234567-01"]], "is_traceparent_valid": false},
    30  	{"headers": [["traceparent", "00-12345678901234567890123456789012-123456789012345-01"]], "is_traceparent_valid": false},
    31  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-.0"]], "is_traceparent_valid": false},
    32  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-0."]], "is_traceparent_valid": false},
    33  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-001"]], "is_traceparent_valid": false},
    34  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-1"]], "is_traceparent_valid": false},
    35  	{"headers": [["traceparent", "00-00000000000000000000000000000000-1234567890123456-01"]], "is_traceparent_valid": false},
    36  	{"headers": [["traceparent", "00-.2345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    37  	{"headers": [["traceparent", "00-1234567890123456789012345678901.-1234567890123456-01"]], "is_traceparent_valid": false},
    38  	{"headers": [["traceparent", "00-123456789012345678901234567890123-1234567890123456-01"]], "is_traceparent_valid": false},
    39  	{"headers": [["traceparent", "00-1234567890123456789012345678901-1234567890123456-01"]], "is_traceparent_valid": false},
    40  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01."]], "is_traceparent_valid": false},
    41  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-01-what-the-future-will-be-like"]], "is_traceparent_valid": false},
    42  	{"headers": [["traceparent", "cc-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": true},
    43  	{"headers": [["traceparent", "cc-12345678901234567890123456789012-1234567890123456-01-what-the-future-will-be-like"]], "is_traceparent_valid": true},
    44  	{"headers": [["traceparent", "cc-12345678901234567890123456789012-1234567890123456-01.what-the-future-will-be-like"]], "is_traceparent_valid": false},
    45  	{"headers": [["traceparent", "ff-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    46  	{"headers": [["traceparent", ".0-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    47  	{"headers": [["traceparent", "0.-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    48  	{"headers": [["traceparent", "000-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    49  	{"headers": [["traceparent", "0000-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    50  	{"headers": [["traceparent", "0-12345678901234567890123456789012-1234567890123456-01"]], "is_traceparent_valid": false},
    51  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "abcdefghijklmnopqrstuvwxyz0123456789_-*/= !\"#$%&'()*+-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    52  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "abcdefghijklmnopqrstuvwxyz0123456789_-*/@a-z0-9_-*/= !\"#$%&'()*+-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    53  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1,foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    54  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1,foo=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    55  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    56  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "foo=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    57  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", ""]], "is_traceparent_valid": true},
    58  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", ""]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    59  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", ""], ["tracestate", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    60  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"]], "is_traceparent_valid": true},
    61  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"]], "is_traceparent_valid": true},
    62  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["TraceState", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    63  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["TrAcEsTaTe", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    64  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["TRACESTATE", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    65  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1,bar=2"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    66  	{"headers": [["tracestate", "foo=1"]], "is_traceparent_valid": false},
    67  	{"headers": [["tracestate", "foo=1,bar=2"]], "is_traceparent_valid": false},
    68  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo =1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    69  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "FOO=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    70  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo.bar=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    71  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo@=1,bar=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    72  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "@foo=1,bar=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    73  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo@@bar=1,bar=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    74  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo@bar@baz=1,bar=2"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    75  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    76  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    77  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt@vvvvvvvvvvvvvv=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    78  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt@v=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    79  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"], ["tracestate", "t@vvvvvvvvvvvvvvv=1"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    80  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "bar01=01,bar02=02,bar03=03,bar04=04,bar05=05,bar06=06,bar07=07,bar08=08,bar09=09,bar10=10"], ["tracestate", "bar11=11,bar12=12,bar13=13,bar14=14,bar15=15,bar16=16,bar17=17,bar18=18,bar19=19,bar20=20"], ["tracestate", "bar21=21,bar22=22,bar23=23,bar24=24,bar25=25,bar26=26,bar27=27,bar28=28,bar29=29,bar30=30"], ["tracestate", "bar31=31,bar32=32"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    81  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "bar01=01,bar02=02,bar03=03,bar04=04,bar05=05,bar06=06,bar07=07,bar08=08,bar09=09,bar10=10"], ["tracestate", "bar11=11,bar12=12,bar13=13,bar14=14,bar15=15,bar16=16,bar17=17,bar18=18,bar19=19,bar20=20"], ["tracestate", "bar21=21,bar22=22,bar23=23,bar24=24,bar25=25,bar26=26,bar27=27,bar28=28,bar29=29,bar30=30"], ["tracestate", "bar31=31,bar32=32,bar33=33"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    82  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1,bar=2"], ["tracestate", "rojo=1,congo=2"], ["tracestate", "baz=3"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    83  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1 \t , \t bar=2, \t baz=3"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    84  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1\t \t,\t \tbar=2,\t \tbaz=3"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    85  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    86  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    87  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1 "]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    88  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1\t"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    89  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=1 \t"]], "is_traceparent_valid": true, "is_tracestate_valid": true},
    90  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=bar=baz"]], "is_traceparent_valid": true, "is_tracestate_valid": false},
    91  	{"headers": [["traceparent", "00-12345678901234567890123456789012-1234567890123456-00"], ["tracestate", "foo=,bar=3"]], "is_traceparent_valid": true, "is_tracestate_valid": false}
    92  ]