Skip to content
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

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

SergeTupchiy
Copy link

@SergeTupchiy SergeTupchiy commented Nov 7, 2023

  • 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

Motivation for chaning grpc client:

@SergeTupchiy SergeTupchiy force-pushed the refactor-exporter-add-timeout branch 2 times, most recently from dede23d to 3ad2447 Compare November 8, 2023 13:39
@SergeTupchiy SergeTupchiy marked this pull request as ready for review November 8, 2023 13:46
{deps, [{grpcbox, ">= 0.0.0"},
{tls_certificate_check, "~> 1.18"},

{deps, [{grpc, {git, "https://github.com/emqx/grpc-erl", {tag, "0.6.11"}}},
Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

rebar.config Show resolved Hide resolved
[{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;
Copy link
Member

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;

Copy link
Author

@SergeTupchiy SergeTupchiy Nov 9, 2023

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
@SergeTupchiy SergeTupchiy merged commit 719ad2b into emqx:main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants