Commit ebb0b05
Otel improvements (#6014)
* include trace_id in log comments
* site team_id to OpenTelemetry attributes
* Move tracing to QueryRunner so that all queries profit from additional attributes in their spans
* Add trace_id assertion to debug metadata test
* Fix warning
* add trace_id
* remove integer check
* log trace_id to correlate logs and traces
* Update lib/plausible/clickhouse_repo.ex
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
* Update lib/plausible/open_telemetry/logger.ex
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
* mix format
* Refactor trace_id retrieval
* configure otlp endpoint via env
* disable sampler
* set default for variable
* remove custom opentelemetry sampler
---------
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>1 parent 0e7f366 commit ebb0b05
2 files changed
Lines changed: 3 additions & 66 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 237 | + | |
| 238 | + | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
942 | 940 | | |
943 | 941 | | |
944 | 942 | | |
945 | | - | |
946 | 943 | | |
947 | 944 | | |
948 | 945 | | |
949 | 946 | | |
950 | 947 | | |
951 | | - | |
| 948 | + | |
952 | 949 | | |
953 | 950 | | |
954 | 951 | | |
| |||
This file was deleted.
0 commit comments