Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit c2ee752

Browse files
authored
Merge pull request #1596 from dmitchsplunk/patch-1
Update instrument-java-application.rst
2 parents 09fd3af + 32e4583 commit c2ee752

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gdi/get-data-in/application/java/instrumentation/instrument-java-application.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,16 @@ If you need to send data directly to Splunk Observability Cloud, set the followi
260260
.. code-tab:: bash Linux
261261

262262
export SPLUNK_ACCESS_TOKEN=<access_token>
263-
export SPLUNK_REALM=<realm>
263+
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
264+
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://ingest.<realm>.signalfx.com/v2/trace/otlp
265+
export OTEL_LOGS_EXPORTER=none
264266

265267
.. code-tab:: shell Windows PowerShell
266268

267269
$env:SPLUNK_ACCESS_TOKEN=<access_token>
268-
$env:SPLUNK_REALM=<realm>
270+
$env:OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
271+
$env:OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://ingest.<realm>.signalfx.com/v2/trace/otlp
272+
$env:OTEL_LOGS_EXPORTER=none
269273

270274
To obtain an access token, see :ref:`admin-api-access-tokens`.
271275

0 commit comments

Comments
 (0)