   end
 
   describe "close_span/1, when passing a span" do
-    setup do
-      [span: Tracer.create_span("root")]
-    end
+    setup :create_root_span
 
     test "returns :ok", %{span: span} do
       assert Tracer.close_span(span) == :ok

      assert [^reference] = WrappedNif.get(:close_span)
    end
  end
end

  end

  describe "create_span/1" do
    setup :create_root_span

    test "returns a span", %{span: span} do
      assert %Span{} = span
