Skip to content

chris-pinola-rf/local-otel-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Local OpenTelemetry Tracing Stack

Getting Started

  1. Clone this repo.
  2. Bring up the local dev stack with docker compose up from inside this directory.
  3. Download the OpenTelemetry javaagent JAR and move it somewhere where it can be read by your app at runtime.
  4. Start your JVM app with the following environment variables defined:
    1. JAVA_TOOL_OPTIONS=-javaagent:/path/to/javaagent/jar/from/prior/step/opentelemetry-javaagent.jar
    2. OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
    3. OTEL_SERVICE_NAME=name_of_your_app
    4. OTEL_RESOURCE_ATTRIBUTES=deployment.environment=local
  5. Explore your traces via the Jaeger UI on http://localhost:16686/

Note: depending on your platform you may need to use host.docker.internal instead of localhost to access the local Jaeger and OTel Collector instances.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published