 
     assert span_ctx() = Span.end_span(s)
 
+    attributes =
+      :otel_attributes.new([{"attr-1", "value-1"}, {"attr-2", "value-2"}], 128, :infinity)
+
     assert_receive {:span,
                     span(
                       name: "span-2",
-                      attributes: [{"attr-1", "value-1"}, {"attr-2", "value-2"}]
+                      attributes: ^attributes
                     )}
   end
 


        stacktrace = Exception.format_stacktrace(__STACKTRACE__)

        assert_receive {:span,
                        span(
                          name: "span-4",
                          events: [
                            event(
                              name: "exception",
                              attributes: [
                                {"exception.type", "Elixir.RuntimeError"},
                                {"exception.message", "my error message"},
                                {"exception.stacktrace", ^stacktrace}
                              ]
                            )
                          ]
                        )}
    end
  end

    ret = Task.await(task)
    assert :hello = ret

    links = :otel_links.new([OpenTelemetry.link(parent)], 128, 128, :infinity)

    assert_receive {:span,
                    span(
                      name: "child",
                      parent_span_id: :undefined,
                      links: ^links
                    )}

    assert span_ctx() = Span.end_span(parent)
