Commit b8c5179
fix(w3c trace context): consider traceparent format version ff invalid
This is a follow up to commit
f283a4b
which added some tests for parsing newer versions. One of the tests used
format version "ff", which the W3C trace context specification
explicitly defines as invalid. This commit fixes that test and also the
regex used for parsing the traceparent header, so that a header with
version ff will be rejected as invalid.
Signed-off-by: Bastian Krol <[email protected]>1 parent a7a89db commit b8c5179
File tree
2 files changed
+7
-3
lines changed- instana/w3c_trace_context
- tests/w3c_trace_context
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
0 commit comments