Commit 6c62a01
committed
BAU: configure OpenTelemetry ID Generator
We need to use the XRay ID generator when using the XRay propagator, in
order to generate trace IDs in the correct format. As we're configuring
the propagator via the OTEL_PROPAGATORS environment variable, we can
gate the ID generator configuration behind the same variable to keep
things agnostic.
This can only be done via code, so we have to add this to the
OpenTelemetry SDK configuration in an initializer.
see: https://arc.net/l/quote/ctffkmlm1 parent 53ba2aa commit 6c62a01
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
0 commit comments