opentelemetry-erlang-contrib/examples/basic_elixir
Raphael D. Pinheiro 8755d5fdba
Avoid syntax error for insecure key (#45)
According to the docs: https://opentelemetry.io/docs/collector/configuration/#exporters the insecure key should be inside tls key otherwise the service doesn't start.
2021-11-24 10:38:59 -07:00
..
config Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
lib Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
test Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
.dockerignore Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
.formatter.exs Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
.gitignore Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
Dockerfile Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
README.md Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
docker-compose.yml Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
mix.exs Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
mix.lock Port example from opentelemetry-examples (#31) 2021-11-23 13:15:59 -07:00
otel-collector-config.yaml Avoid syntax error for insecure key (#45) 2021-11-24 10:38:59 -07:00

README.md

Basic Elixir Example

This is a sample repository that demo how to setup a basic Elixir application with opentelemetry-api and opentelemetry_exporter. Here, we are using opentelemetry_exporter to export the traces to OpenTelemetry Collector. The collector in turn export the traces to Zipkin and Jaeger respectively.

Getting Stated

Assuming you already have Docker and Docker Compose installed:

  1. Run docker-compose up to start the application, OpenTelemetry Collector, Zipkin and Jaeger.
  2. Visit Zipkin at http://localhost:9411 and hit Run Query to look the the sample trace.
  3. Visit Jaeger UI at http://localhost:16686 and click Find Trace to look at the sample trace.