Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Update ignored routes in OpenTelemetry sampler to include additional variants (#5542)

Cenk Kücük10ffd20cbb35
diff --git a/lib/plausible/open_telemetry/sampler.ex b/lib/plausible/open_telemetry/sampler.ex
index a56c0503a6..39ba762f4a 100644
--- a/lib/plausible/open_telemetry/sampler.ex
+++ b/lib/plausible/open_telemetry/sampler.ex
@@ -17,7 +17,7 @@ defmodule Plausible.OpenTelemetry.Sampler do
@behaviour :otel_sampler
require OpenTelemetry.Tracer, as: Tracer
- @routes_to_ignore ["/api/event", "/api/event/"]
+ @routes_to_ignore ["/api/event", "/api/event/", "/api//event", "//api/event"]
@tables_to_ignore ["oban_jobs", "site_imports"]
@impl true