@@ -234,7 +234,7 @@ defmodule Sentry.Opentelemetry.SpanProcessorTest do
234234 assert length ( transaction . spans ) == 0
235235 assert transaction . transaction == "child_instrumented_function_standalone"
236236 end
237-
237+
238238 @ tag span_storage: true
239239 test "treats HTTP request spans as transaction roots even with external parents" do
240240 put_test_config ( environment_name: "test" , traces_sample_rate: 1.0 )
@@ -248,7 +248,7 @@ defmodule Sentry.Opentelemetry.SpanProcessorTest do
248248
249249 # Create a span with HTTP attributes and an external parent span ID
250250 external_parent_span_id = "b943d7459127970c"
251-
251+
252252 # Start a span that simulates an HTTP request from an external trace
253253 Tracer . with_span "POST /api/v1alpha" , % {
254254 attributes: % {
@@ -258,7 +258,9 @@ defmodule Sentry.Opentelemetry.SpanProcessorTest do
258258 "server.address" => "localhost" ,
259259 "server.port" => 4000
260260 } ,
261- parent: { :span_context , :undefined , external_parent_span_id , :undefined , :undefined , :undefined , :undefined , :undefined , :undefined , :undefined }
261+ parent:
262+ { :span_context , :undefined , external_parent_span_id , :undefined , :undefined , :undefined ,
263+ :undefined , :undefined , :undefined , :undefined }
262264 } do
263265 # Simulate child spans (database queries, etc.) with proper DB attributes
264266 Tracer . with_span "matrix_data.repo.query" , % {
@@ -269,7 +271,7 @@ defmodule Sentry.Opentelemetry.SpanProcessorTest do
269271 } do
270272 Process . sleep ( 10 )
271273 end
272-
274+
273275 Tracer . with_span "matrix_data.repo.query:agents" , % {
274276 attributes: % {
275277 "db.system" => :postgresql ,
@@ -295,11 +297,11 @@ defmodule Sentry.Opentelemetry.SpanProcessorTest do
295297
296298 # Verify all spans share the same trace ID
297299 trace_id = transaction . contexts . trace . trace_id
300+
298301 Enum . each ( transaction . spans , fn span ->
299302 assert span . trace_id == trace_id
300303 end )
301304 end
302-
303305
304306 @ tag span_storage: true
305307 test "concurrent traces maintain independent sampling decisions" do
0 commit comments