Instrument your Java application for Splunk Observability Cloud

Learn how to activate Call Graph Profiling by instrumenting your Java application for Splunk Observability Cloud.

Activate Call Graph Profiling

To activate Call Graph Profiling, use the splunk.snapshot.profiler.enabled system property argument or the SPLUNK_SNAPSHOT_PROFILE_ENABLED environment variable. For more information on using the environment variable, see Java settings for Call Graph Profiling.

The following example shows how to activate Call Graph Profiling using the system property:
java -javaagent:./splunk-otel-javaagent.jar \
-Dsplunk.snapshot.profiler.enabled=true \
-Dotel.exporter.otlp.endpoint=http(s)://collector:4317 \
-jar <your_application>.jar
See Get data into Splunk APM Call Graph Profiling for more information. For more settings, see Java settings for Call Graph Profiling.