Skip to content

Instantly share code, notes, and snippets.

@graphaelli
Last active February 22, 2023 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphaelli/280d5a07cf19f0604b95c3be56ff8289 to your computer and use it in GitHub Desktop.
Save graphaelli/280d5a07cf19f0604b95c3be56ff8289 to your computer and use it in GitHub Desktop.
Jaeger OTLP export to Elastic Cloud (ESS)

Grab a recent CA cert bundle, to verify SSL connections

curl -LO https://raw.githubusercontent.com/stripe/stripe-ruby/master/lib/data/ca-certificates.crt

Start HotRod with OTLP export

ELASTIC_APM_SERVER_URL and ELASTIC_APM_SECRET_TOKEN can be found through kibana, at ${kibana_url}/app/home#/tutorial/apm (or click on "add data" in the APM UI)

docker run -it --rm -v $PWD/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
-e OTEL_EXPORTER_OTLP_ENDPOINT=${ELASTIC_APM_SERVER_URL} \
-e OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${ELASTIC_APM_SECRET_TOKEN}" \
-p 8080:8080 \
jaegertracing/example-hotrod:latest all -x otlp

Generate some application traffic

open http://localhost:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment