   defp create_child_span(%{span: span}) do
     [span: Tracer.create_span("child", span), parent: span]
   end
+
+  defp create_root_span_in_other_process(_context) do
+    pid = Process.whereis(WrappedNif)
+    [span: Tracer.create_span("root", nil, pid), pid: pid]
+  end
 end

  end

  describe "create_span/3, when passing a pid" do
    setup do
      [pid: Process.whereis(WrappedNif)]
    end

    setup :create_root_span

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

  end

  describe "close_span/2" do
    setup :create_root_span_in_other_process

    test "returns :ok", %{span: span, pid: pid} do
      assert Tracer.close_span(span, pid) == :ok
