Step 2: Instrument your Java application for Splunk Observability Cloud
Alpha features described in this document are provided by Splunk to you "as is" without any warranties, maintenance and support, or service-level commitments. Splunk makes this Alpha feature available at its sole discretion and may discontinue it at any time. These documents are not yet publicly available and we ask that you keep this information confidential.
Use of Alpha features is subject to the Splunk Pre-Release Agreement for Hosted Services. Use these links to navigate to topics within this private preview:
The Secure Application Java Virtual Machine (JVM) agent, splunk-otel-javaagent-csa, adds APM instrumentation to your Java application and sends the data it collects to the Splunk Distribution of OpenTelemetry Collector. Follow these steps to add the JVM agent to your application and configure it to send the OpenTelemetry events and logs that Secure Application needs.
| Command-line parameter | Environment variable | Description |
|---|---|---|
otel.service.name | OTEL_SERVICE_NAME | Service name of your Java application. |
otel.resource.attributes | OTEL_RESOURCE_ATTRIBUTES | Resource attributes to associate with your Java application. Recommended:
|
otel.exporter.otlp.endpoint | OTEL_EXPORTER_OTLP_ENDPOINT | FQDN and gRPC port of your OpenTelemetry collector. Example: |
Your Java application launches with the JVM agent enabled. The JVM agent gathers a list of runtime libraries, formats them as OTLP logs, and sends the data to the OTLP exporter endpoint specified above. The JVM agent reports library data once at application startup and then every twenty four hours thereafter.