Skip to content

Commit 9982d71

Browse files
committed
Oops, fix filtering Oban Stager spans
1 parent 65f6b11 commit 9982d71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/sentry/opentelemetry/span_processor.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ defmodule Sentry.OpenTelemetry.SpanProcessor do
5959
:ok
6060
end
6161

62-
# TODO: is it safe to ignore these? ie "Elixir.Oban.Stager process" is an internal span
63-
# and it prodocuses a lot of noise, so it makes sense to ignore it.
64-
defp build_transaction(%{kind: :internal}, _), do: nil
62+
# TODO: "Elixir.Oban.Stager process" is an internal span and it produces a lot of noise
63+
# so it makes sense to ignore it - should this be configurable?
64+
defp build_transaction(%{name: "Elixir.Oban.Stager process"}, _), do: nil
6565

6666
defp build_transaction(root_span_record, child_span_records) do
6767
root_span = build_span(root_span_record)

0 commit comments

Comments
 (0)