We supervise our infrastructure and our applications in datadog saas. We added them in APM so that we can follow the tracks. I would like to include APM in keycloak to follow the trace end to end.
This consists of adding the option “-javaagent” with a special jar. I tried with keycloak v11 and it doesn’t work. Has anyone ever added APM to keycloak? Do you know how to do it ? Do we need a special module instead of a jar? Do I need to add a specific parameter in the configuration?
For a KC 11 and a domain cluster, you have to modify host-master ou slave.xml in configuration folder and add parameters into jvms level like below and restart KC :
Why not to use vendor neutral Open Telemetry (at least for tracing)
Dockerfile:
FROM jboss/keycloak:latest
RUN \
curl -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent-all.jar \
-o /tmp/opentelemetry-javaagent-all.jar
Then otlp exporter can be configured for example via env variables: