Skip to content

Commit

Permalink
docs: refer to boxo/docs/tracing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 27, 2024
1 parent 99f0b46 commit 1907ca5
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions docs/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ Optional. Clients may use this header to return a additional vendor-specific tra
Currently ignored unless `Authorization` matches [`RAINBOW_TRACING_AUTH`](./environment-variables.md#rainbow_tracing_auth).

> [!TIP]
> `Traceparent` value format is `00-32HEX-16HEX-2HEX`, for example:
> ```
> Traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00
> base16(version) = 00 // version, currently always 00
> base16(trace-id) = 4bf92f3577b34da6a3ce929d0e0e4736
> base16(parent-id) = 00f067aa0ba902b7
> base16(trace-flags) = 00 // 00 means not sampled (manual), 01 means sampled
> ```
>
> See [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format) for more details.
> `Traceparent` value format can be found in [W3C Trace Context Specification](https://www.w3.org/TR/trace-context-1/#trace-context-http-headers-format).
>
> 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)
## `Tracestate`

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

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

Expand Down

0 comments on commit 1907ca5

Please sign in to comment.