opentelemetry-erlang-contrib/utilities/opentelemetry_aws_xray/README.md

701 B

OpentelemetryXray

Implements an Id Generator compatible with AWS X-Ray TraceId

Installation

The package can be installed by adding opentelemetry_xray to your list of dependencies in mix.exs for elixir and rebar.config for erlang :

{deps, [opentelemetry_xray]}.
def deps do
  [
    {:opentelemetry_xray, "~> 0.1"}
  ]
end

Usage

Configure the OpenTelemetry to use the X-Ray Id Generator

  config :opentelemetry,
    id_generator: :otel_aws_xray_id_generator
[
 {opentelemetry,
  [{id_generator, otel_aws_xray_id_generator}]}
].