Skip to content

Commit bfcda6c

Browse files
committed
Remove redundant function
1 parent 403a1fc commit bfcda6c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/sentry/opentelemetry/span_processor.ex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
2222
root_span = SpanStorage.get_root_span(span_record.span_id)
2323
child_spans = SpanStorage.get_child_spans(span_record.span_id)
2424

25-
transaction = transaction_from_root_span(root_span, child_spans)
25+
transaction = build_transaction(root_span, child_spans)
26+
2627
Sentry.send_transaction(transaction)
2728
end
2829

@@ -34,10 +35,6 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
3435
:ok
3536
end
3637

37-
defp transaction_from_root_span(root_span, child_spans) do
38-
build_transaction(root_span, child_spans)
39-
end
40-
4138
defp build_transaction(%SpanRecord{origin: :undefined} = root_span, child_spans) do
4239
Transaction.new(%{
4340
transaction: root_span.name,

0 commit comments

Comments
 (0)