#!/bin/sh
set -eu
: "${JAVA_AGENT_JAR:?set a verified OpenTelemetry Java agent JAR}"
: "${APP_JAR:?set a controlled application JAR}"
: "${OTEL_EXPORTER_OTLP_ENDPOINT:?set the owned test collector endpoint}"
export OTEL_SERVICE_NAME=controlled-jvm-pilot
export OTEL_EXPORTER_OTLP_ENDPOINT
exec java -javaagent:"$JAVA_AGENT_JAR" -jar "$APP_JAR"
# Configure protocol and trust for the actual collector; compare existing JMX checks.
