Commit eac5540
committed
Add and configure OpenTelemetry for tracing
This will auto-hook into Rails and other libraries to produce traces.
No explicit trace spans are created yet, only automatic instrumentation.
The only explicit configuration is to avoid tracing the /up endpoint
used for health checks. This prevents a large number of unhelpful traces
from being created. All other configuration is provided through
environment variables, specified in `forms-deploy`.
We also disable logging for Rake tasks to avoid cluttering output
when running tasks like database migrations.
Finally, OpenTelemetry is only enabled if the `ENABLE_OTEL` environment
variable is set to "true". This allows us to control whether tracing
is active without changing the code. Again, this is configured in
`forms-deploy` when deploying to different environments.1 parent 319e15c commit eac5540
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
| 1046 | + | |
0 commit comments