Skip to content

Commit 4d0eda9

Browse files
committed
Fix formatting
1 parent 7602b83 commit 4d0eda9

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

lib/sentry/transaction.ex

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@ defmodule Sentry.Transaction do
2929
# Used to then encode the returned map to JSON.
3030
@doc false
3131
def to_map(%__MODULE__{} = transaction) do
32-
transaction_attrs = Map.take(transaction, [:event_id, :environment, :transaction, :transaction_info, :contexts, :measurements, :type])
32+
transaction_attrs =
33+
Map.take(transaction, [
34+
:event_id,
35+
:environment,
36+
:transaction,
37+
:transaction_info,
38+
:contexts,
39+
:measurements,
40+
:type
41+
])
42+
3343
{[root_span], child_spans} = Enum.split_with(transaction.spans, &is_nil(&1.parent_span_id))
3444

3545
root_span

test/sentry/client_report/sender_test.exs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ defmodule Sentry.ClientReportTest do
3333
Transaction.new(%{
3434
span_id: @span_id,
3535
transaction: "test-transaction",
36-
spans: [%Span{
37-
span_id: @span_id,
38-
trace_id: Sentry.UUID.uuid4_hex(),
39-
start_timestamp: "2024-10-12T13:21:13",
40-
timestamp: "2024-10-12T13:21:13"
41-
}]
36+
spans: [
37+
%Span{
38+
span_id: @span_id,
39+
trace_id: Sentry.UUID.uuid4_hex(),
40+
start_timestamp: "2024-10-12T13:21:13",
41+
timestamp: "2024-10-12T13:21:13"
42+
}
43+
]
4244
})
4345
]
4446

0 commit comments

Comments
 (0)