Skip to content

Commit 1907ca5

Browse files
committed
docs: refer to boxo/docs/tracing.md
1 parent 99f0b46 commit 1907ca5

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/headers.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ Optional. Clients may use this header to return a additional vendor-specific tra
1111
Currently ignored unless `Authorization` matches [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth).
1212

1313
> [!TIP]
14-
> `Traceparent` value format is `00-32HEX-16HEX-2HEX`, for example:
15-
> ```
16-
> Traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00
17-
> base16(version) = 00 // version, currently always 00
18-
> base16(trace-id) = 4bf92f3577b34da6a3ce929d0e0e4736
19-
> base16(parent-id) = 00f067aa0ba902b7
20-
> base16(trace-flags) = 00 // 00 means not sampled (manual), 01 means sampled
21-
> ```
22-
>
23-
> See [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format) for more details.
14+
> `Traceparent` value format can be found in [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format).
15+
>
16+
> Sample code for generating it can be found in [boxo/docs/tracing.md](https://github.com/ipfs/boxo/blob/main/docs/tracing.md#generate-traceparent-header)
2417
2518
## `Tracestate`
2619

@@ -29,8 +22,7 @@ Optional. Clients may use this header to return a additional vendor-specific tra
2922
Currently ignored unless `Authorization` matches [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth).
3023

3124
> [!TIP]
32-
> `Tracestate` value format is
33-
> See [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format).
25+
> `Tracestate` value format can be found in [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format).
3426
3527
## Rainbow-No-Blockcache
3628

0 commit comments

Comments
 (0)