Skip to content

Commit

Permalink
Fjerner hardkoding av opentelemtry javaagent ved manglende mijøvariab…
Browse files Browse the repository at this point in the history
…el, siden nais håndterer det på annen måte
  • Loading branch information
baskevold committed Sep 2, 2024
1 parent 0ebaf64 commit d2e9145
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions nais/dev-fss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ spec:
value: http://abac-k9.k9saksbehandling.svc.nais.local/application/authorize

# open telemetry
- name: "OTEL_EXPORTER_OTLP_ENDPOINT"
value: "https://elastic-apm.adeo.no"
- name: "OTEL_METRICS_EXPORTER"
value: "otlp"
- name: "OTEL_LOGS_EXPORTER"
Expand Down
9 changes: 1 addition & 8 deletions src/main/resources/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,4 @@ then
echo "- exporting $KEY"
export "$KEY"="$VALUE"
done
fi

#start opentelemetyr-agenten dersom konfigurert
set +u
if [ ! -z "${OTEL_EXPORTER_OTLP_ENDPOINT}" ]; then
echo "Configuring attatchment of opentelemetry-agent"
JAVA_OPTS="${JAVA_OPTS} -javaagent:/app/opentelemetry-javaagent.jar"
fi
fi

0 comments on commit d2e9145

Please sign in to comment.