Created
June 30, 2020 19:12
-
-
Save gugahoa/f3bfb5e120100e4d1bb6e841fe9d4a06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config :opentelemetry, :processors, | |
ot_batch_processor: %{ | |
exporter: { | |
:opentelemetry_exporter, | |
%{ | |
protocol: :grpc, | |
endpoints: [ | |
{:http, "localhost", 55680, []}, | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** (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]}]}}}} |
@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
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?