 
   def instrument(body, %{module: module, name: name, arity: arity}) do
     quote do
-      Appsignal.Instrumentation.Helpers.instrument(
+      Appsignal.Instrumentation.instrument(
         "#{module_name(unquote(module))}.#{unquote(name)}/#{unquote(arity)}",
         fn -> unquote(body) end
       )


  def instrument(body, %{module: module, name: name}) do
    quote do
      Appsignal.Instrumentation.Helpers.instrument(
        "#{module_name(unquote(module))}.#{unquote(name)}",
        fn -> unquote(body) end
      )

  def instrument(namespace, body, %{module: module, name: name, arity: arity})
      when is_binary(namespace) do
    quote do
      Appsignal.Instrumentation.instrument(
        "#{module_name(unquote(module))}.#{unquote(name)}/#{unquote(arity)}",
        fn span ->
          unquote(@span).set_namespace(span, unquote(namespace))
