We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267b822 commit 8574f4cCopy full SHA for 8574f4c
lib/sentry/opentelemetry/span_processor.ex
@@ -33,20 +33,16 @@ defmodule Sentry.OpenTelemetry.SpanProcessor do
33
transaction = build_transaction(root_span_record, child_span_records)
34
35
result =
36
- if transaction do
37
- case Sentry.send_transaction(transaction) do
38
- {:ok, _id} ->
39
- true
40
-
41
- :ignored ->
42
43
44
- {:error, error} ->
45
- Logger.error("Failed to send transaction to Sentry: #{inspect(error)}")
46
- {:error, :invalid_span}
47
- end
48
- else
49
+ case Sentry.send_transaction(transaction) do
+ {:ok, _id} ->
+ true
+
+ :ignored ->
+ {:error, error} ->
+ Logger.error("Failed to send transaction to Sentry: #{inspect(error)}")
+ {:error, :invalid_span}
50
end
51
52
:ok = SpanStorage.remove_span(span_record.span_id)
0 commit comments