mirror of
https://github.com/traefik/traefik.git
synced 2025-05-05 23:43:01 +00:00
Document how to pass multiple Headers on tracing with CLI
This commit is contained in:
parent
88c5e6a3fd
commit
0664367c53
@ -128,15 +128,16 @@ It applies to client and server kind spans.
|
|||||||
tracing:
|
tracing:
|
||||||
capturedRequestHeaders:
|
capturedRequestHeaders:
|
||||||
- X-CustomHeader
|
- X-CustomHeader
|
||||||
|
- X-OtherHeader
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[tracing]
|
[tracing]
|
||||||
capturedRequestHeaders = ["X-CustomHeader"]
|
capturedRequestHeaders = ["X-CustomHeader", "X-OtherHeader"]
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--tracing.capturedRequestHeaders[0]=X-CustomHeader
|
--tracing.capturedRequestHeaders="X-CustomHeader,X-OtherHeader"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `capturedResponseHeaders`
|
#### `capturedResponseHeaders`
|
||||||
@ -150,15 +151,16 @@ It applies to client and server kind spans.
|
|||||||
tracing:
|
tracing:
|
||||||
capturedResponseHeaders:
|
capturedResponseHeaders:
|
||||||
- X-CustomHeader
|
- X-CustomHeader
|
||||||
|
- X-OtherHeader
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[tracing]
|
[tracing]
|
||||||
capturedResponseHeaders = ["X-CustomHeader"]
|
capturedResponseHeaders = ["X-CustomHeader", "X-OtherHeader"]
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--tracing.capturedResponseHeaders[0]=X-CustomHeader
|
--tracing.capturedResponseHeaders="X-CustomHeader,X-OtherHeader"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `safeQueryParams`
|
#### `safeQueryParams`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user