vernedeng commented on code in PR #8612: URL: https://github.com/apache/inlong/pull/8612#discussion_r1279185573
########## inlong-agent/bin/agent-env.sh: ########## @@ -61,3 +61,19 @@ if [[ $JMX_ENABLED == 1 ]]; then else export AGENT_ARGS="$AGENT_JVM_ARGS -cp $CLASSPATH -Dagent.home=$BASE_DIR" fi + +# Opentelemetry java agent path +JAVA_AGENT="${BASE_DIR}/bin/opentelemetry-javaagent.jar" +DOWNLOAD_URL="https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.28.0/opentelemetry-javaagent.jar" +if [ ! -f "$JAVA_AGENT" ]; then + wget -O "$JAVA_AGENT" "$DOWNLOAD_URL" +fi + +# Opentelemetry startup parameter configuration +export OTEL_SERVICE_NAME=inlong_agent +export OTEL_TRACES_EXPORTER=otlp +export OTEL_METRICS_EXPORTER=otlp +export OTEL_LOGS_EXPORTER=otlp +export OTEL_INSTRUMENTATION_PULSAR_ENABLED=false +export OTEL_EXPORTER_OTLP_ENDPOINT="http://otel-collect-proxy.zhiyan.tencent-cloud.net:4317" Review Comment: Do not put the internal address to the community -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org