#!/usr/bin/env bash # Starts the app on :8080. Boot's Docker Compose support auto-starts compose.yaml's # grafana/otel-lgtm container the first time this runs (needs Docker) and wires the OTLP # metrics/traces/logs exporters to it -- no management.otlp.* properties needed. # ./scripts/run.sh # default 0.10 trace sampling # ./scripts/run.sh fulltrace # 1.0 trace sampling -- see docs/03-otel-env-vars.md set -euo pipefail cd "$(dirname "$0")/.." PROFILE="${1:-}" if [ -n "$PROFILE" ]; then mvn -q -Dspring-boot.run.profiles="$PROFILE" spring-boot:run else mvn -q spring-boot:run fi