-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor opentelemetry_exporter #4
refactor opentelemetry_exporter #4
Conversation
dede23d
to
3ad2447
Compare
3ad2447
to
5862458
Compare
{deps, [{grpcbox, ">= 0.0.0"}, | ||
{tls_certificate_check, "~> 1.18"}, | ||
|
||
{deps, [{grpc, {git, "https://github.com/emqx/grpc-erl", {tag, "0.6.11"}}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you maybe add some words why this change in the PR description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
[{scheme(Scheme), Host, Port, maps:get(ssl_options, Endpoint, [])} || | ||
#{scheme := Scheme, host := Host, port := Port} = Endpoint <- Endpoints]. | ||
%% Only called on a parsed and recomposed URL which is guaranteed to be a string | ||
is_ssl([$h,$t,$t,$p,$s,$:,$/,$/ | _]) -> true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit;
you can do is_ssl("https://" ++ _) -> true;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks
- use grpc-erl client instead of grpcbox - support exporter timeout - properly handle per-signal configuration - give precedence to directly passed exporter options over app env/ENV vars
5862458
to
043b18c
Compare
Motivation for chaning grpc client:
The request was just hanging and timing out...
I'm yet to report this issue to the upstream repo, but I decided that grpc-erl is ready to use and should be more resilient overall..