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]}]}}}}
@d-webs
Copy link

d-webs commented Nov 29, 2020

Hi @gugahoa - I came across this gist in https://gitter.im/open-telemetry/opentelemetry-erlang 🙂 I'm running into the same problem - what ended up fixing it for you? I noticed you said the problem was the protocol key, for some reason it's throwing a badmatch error - but in order to setup gRPC, don't you need to set the :protocol key?

@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