Skip to content

Instantly share code, notes, and snippets.

@gugahoa
Created June 30, 2020 19:12
Show Gist options
  • Save gugahoa/f3bfb5e120100e4d1bb6e841fe9d4a06 to your computer and use it in GitHub Desktop.
Save gugahoa/f3bfb5e120100e4d1bb6e841fe9d4a06 to your computer and use it in GitHub Desktop.
config :opentelemetry, :processors,
ot_batch_processor: %{
exporter: {
:opentelemetry_exporter,
%{
protocol: :grpc,
endpoints: [
{:http, "localhost", 55680, []},
]
}
}
}
** (Mix) Could not start application opentelemetry: :opentelemetry_app.start(:normal, []) returned an error: shutdown: failed to start child: :ot_batch_processor
** (EXIT) {:badmatch, {:error, {:noproc, {:gen_server, :call, [:gproc_pool, {:new, :opentelemetry_exporter, :round_robin, [size: 1, autosize: true]}]}}}}
@gugahoa
Copy link
Author

gugahoa commented Nov 29, 2020

@dwebster17 If I'm not mistaken, right now there's only support for grpc.

The config we're using is this one, and it's working, but I'm using an outdated version of both opentelemetry_exporter and opentelemetry_erlang (not related to this problem, we just didn't get around to update it yet)

# Configure OpenTelemetry
config :opentelemetry, :processors,
  ot_batch_processor: %{
    exporter: {
      :opentelemetry_exporter,
      %{
        endpoints: [
          {:http, "localhost", 55680, []}
        ]
      }
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment