Trace context propagation.

This commit is contained in:
Pavel Pautov 2022-12-06 00:01:46 -08:00 committed by dplotnikov-f5
parent 3430e85c34
commit 20f365b3c1
3 changed files with 260 additions and 5 deletions

View file

@ -45,6 +45,21 @@ Dumping all the requests could be useful even in non-distributed environment.
}
```
### Parent-based Tracing
```nginx
http {
server {
location / {
otel_trace on;
otel_trace_context propagate;
proxy_pass http://backend;
}
}
}
```
## How to Use
### Directives
@ -55,6 +70,10 @@ Dumping all the requests could be useful even in non-distributed environment.
The argument is a “complex value”, which should result in `on`/`off` or `1`/`0`. Default is `off`.
**`otel_trace_context`** `ignore | extract | inject | propagate;`
Defines how to propagate traceparent/tracestate headers. `extract` uses existing trace context from request. `inject` adds new context to request, rewriting existing headers if any. `propagate` updates existing context (i.e. combines `extract` and `inject`). `ignore` skips context headers processing. Default is `ignore`.
#### Available in `http` context
**`otel_exporter`**`;`