Adds the OTel deps (opentelemetry + exporter + phoenix / ecto / oban / bandit auto-instrumentation helpers) and attaches them in Application.start/2 so the existing Phoenix, Ecto, Oban, and Bandit telemetry events flow as OTLP spans without any call-site changes. Exporter config is gated on OTEL_EXPORTER_OTLP_ENDPOINT in config/runtime.exs — set in the k8s manifests to the cluster collector (otel-collector.observability.svc.cluster.local:4317). When unset we switch traces_exporter to :none so nothing is shipped; dev/test stays quiet. Resource attributes tag spans with service.name=microwaveprop and service.namespace=prop, matching the Rust workers' attribute shape so Tempo can group the full hourly chain across both languages. Both the main prop deployment and the backfill deployment get the env; backfill is still a full BEAM node running enrichment workers, so its Oban/Ecto spans are worth seeing too. |
||
|---|---|---|
| .. | ||
| config.exs | ||
| dev.exs | ||
| prod.exs | ||
| runtime.exs | ||
| test.exs | ||