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

Commit 32e4583

Browse files
authored
Update instrument-java-application.rst
Use http/protobuf instead of grpc when sending traces directly to o11y cloud. Also, disable log export when sending directly to o11y cloud to avoid errors.
1 parent 914143f commit 32e4583

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,16 @@ If you need to send data directly to Splunk Observability Cloud, set the followi
258258
.. code-tab:: bash Linux
259259

260260
export SPLUNK_ACCESS_TOKEN=<access_token>
261-
export SPLUNK_REALM=<realm>
262-
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
261+
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
262+
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://ingest.<realm>.signalfx.com/v2/trace/otlp
263+
export OTEL_LOGS_EXPORTER=none
263264

264265
.. code-tab:: shell Windows PowerShell
265266

266267
$env:SPLUNK_ACCESS_TOKEN=<access_token>
267-
$env:SPLUNK_REALM=<realm>
268-
$env:OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
268+
$env:OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
269+
$env:OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://ingest.<realm>.signalfx.com/v2/trace/otlp
270+
$env:OTEL_LOGS_EXPORTER=none
269271

270272
To obtain an access token, see :ref:`admin-api-access-tokens`.
271273

0 commit comments

Comments
 (0)