Skip to content

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

Ignore `site_imports` query traces when sampling for OpenTelemetry (#4241)

Adrian Gruntkowskia5c61e493013
diff --git a/lib/plausible/open_telemetry/sampler.ex b/lib/plausible/open_telemetry/sampler.ex
index e6a4599049..a56c0503a6 100644
--- a/lib/plausible/open_telemetry/sampler.ex
+++ b/lib/plausible/open_telemetry/sampler.ex
@@ -18,7 +18,7 @@ defmodule Plausible.OpenTelemetry.Sampler do
require OpenTelemetry.Tracer, as: Tracer
@routes_to_ignore ["/api/event", "/api/event/"]
- @tables_to_ignore ["oban_jobs"]
+ @tables_to_ignore ["oban_jobs", "site_imports"]
@impl true
def setup(%{ratio: ratio}) when is_number(ratio) do