Skip to content

Commit 914143f

Browse files
authored
Update instrument-java-application.rst
To send data directly from the Java 2.x agent to o11y cloud, we need to set OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc.
1 parent f1ca327 commit 914143f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,13 @@ If you need to send data directly to Splunk Observability Cloud, set the followi
259259

260260
export SPLUNK_ACCESS_TOKEN=<access_token>
261261
export SPLUNK_REALM=<realm>
262+
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
262263

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

265266
$env:SPLUNK_ACCESS_TOKEN=<access_token>
266267
$env:SPLUNK_REALM=<realm>
268+
$env:OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
267269

268270
To obtain an access token, see :ref:`admin-api-access-tokens`.
269271

0 commit comments

Comments
 (0)