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 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
- 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