Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.06 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.06 KB

Example - Release Process

This example presents how to instrument and trace a sample release pipeline (has build, test, package and publish phases) script with otel-bash automatically.

Run With Jaeger

  • Run Jaeger as OTLP HTTP/JSON endpoint active:
docker run -d --name jaeger -p 4318:4318 -p 16686:16686 jaegertracing/all-in-one:1.47
  • Make sure that Jaeger works by opening Jaeger UI at http://localhost:16686

  • Run example with Jaeger OTLP HTTP/JSON endpoint config:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 ./release.sh
  • Search your traces in Jaeger UI Search Traces

  • And see your trace in Jaeger UI See Trace

Run With OTEL SaaS Vendors

  • Run example with your OTEL Saas vendor OTLP HTTP/JSON endpoint and API authentication token configs:
OTEL_EXPORTER_OTLP_ENDPOINT=<YOUR-OTEL-VENDOR-OTLP-ENDPOINT> \
OTEL_EXPORTER_OTLP_HEADERS=<YOUR-OTEL-VENDOR-API-AUTH-HEADER-NAME>=<YOUR-OTEL-VENDOR-API-AUTH-TOKEN> \
./release.sh