View Source otel_exporter_otlp (opentelemetry_exporter v1.8.0)

A module of functionality shared between OTLP exporters for the various signals.

Summary

Types

-type compression() :: gzip.
-type endpoint() :: uri_string:uri_string() | uri_string:uri_map().
-type endpoint_map() ::
    #{scheme := unicode:chardata(),
      host := unicode:chardata(),
      path => unicode:chardata(),
      port => integer(),
      ssl_options => []}.
-type headers() :: [{unicode:chardata(), unicode:chardata()}].
-type opts() ::
    #{endpoints => [endpoint()],
      headers => headers(),
      protocol => protocol(),
      ssl_options => list()}.
-type protocol() :: grpc | http_protobuf | http_json.
-type state() ::
    #{channel := term() | undefined,
      httpc_profile := atom() | undefined,
      protocol := protocol(),
      channel_pid := pid() | undefined,
      headers := headers(),
      compression := compression() | undefined,
      grpc_metadata := map() | undefined,
      endpoints := [endpoint_map()]}.

Functions

Link to this function

endpoints(List, DefaultSSLOpts)

View Source
-spec endpoints([endpoint()], list() | undefined) -> [endpoint_map()].
Link to this function

export_grpc(GrpcCtx, GrpcServiceModule, Metadata, Request, Channel)

View Source
Link to this function

export_http(Address, Headers, Body, Compression, SSLOptions, HttpcProfile)

View Source
Export OTLP protocol telemery data to the configured endpoints.
-spec init(opts()) -> {ok, state()}.
Initialize the exporter based on the provided configuration.
Link to this function

merge_with_environment(ConfigMapping, AppEnv, Opts, SignalEndpointConfigKey, SignalHeadersConfigKey, SignalProtocolConfigKey, SignalCompressionConfigKey, DefaultPath)

View Source