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

Commit f791380

Browse files
Merge pull request #2786 from splunk/pkopta_opt-in_support_added
Changes in exporters configurations and SPLUNK_REALM
2 parents fd189ec + 85ea550 commit f791380

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gdi/get-data-in/application/go/configuration/advanced-go-otel-configuration.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following settings are specific to the Splunk Distribution of OpenTelemetry
5353
* - ``SPLUNK_ACCESS_TOKEN``
5454
- A Splunk authentication token that lets exporters send data directly to Splunk Observability Cloud. Unset by default. Not required unless you need to send data to the Splunk Observability Cloud ingest endpoint. See :ref:`admin-tokens`.
5555
* - ``SPLUNK_REALM``
56-
- The name of your organization's realm, for example, ``us0``. When you set the realm, telemetry is sent directly to the ingest endpoint of Splunk Observability Cloud, bypassing the Splunk Distribution of OpenTelemetry Collector.
56+
- The name of your organization's realm, for example, ``us0``. When you set the realm, telemetry is sent directly to the ingest endpoint of Splunk Observability Cloud, bypassing the Splunk Distribution of OpenTelemetry Collector. This setting applies only to metrics and traces and does not work for logs.
5757
* - ``SPLUNK_TRACE_RESPONSE_HEADER_ENABLED``
5858
- Lets you add server trace information to HTTP response headers using the ``net/http`` instrumentation package. For more information, see :ref:`server-trace-information-go`. The default value is ``true``.
5959
* - ``OTEL_LOG_LEVEL``
@@ -104,6 +104,8 @@ The following settings control trace exporters and their endpoints:
104104
- The traces exporter to use. The default value is ``otlp``. Acceptable values are ``otlp`` and ``none``. Setting ``none`` deactivates trace exports.
105105
* - ``OTEL_METRICS_EXPORTER``
106106
- The metrics exporter to use. The default value is ``otlp``. Accepted values are ``otlp`` and ``none``. Setting ``none`` deactivates metric exports.
107+
* - ``OTEL_LOGS_EXPORTER``
108+
- The logs exporter to use. The default value is ``none``. Accepted values are ``otlp`` and ``none``. Setting ``none`` deactivates logs exports.
107109
* - ``OTEL_METRIC_EXPORT_INTERVAL``
108110
- Interval, in milliseconds, between the start of two export attempts. The default value is ``60000``.
109111
* - ``OTEL_METRIC_EXPORT_TIMEOUT``
@@ -114,7 +116,9 @@ The following settings control trace exporters and their endpoints:
114116
- The OTLP endpoint for traces. The default value is ``http://localhost:4317``.
115117
* - ``OTEL_EXPORTER_OTLP_METRICS_ENDPOINT``
116118
- The OTLP endpoint. The default value is ``http://localhost:4317``.
117-
119+
* - ``OTEL_EXPORTER_OTLP_LOGS_ENDPOINT``
120+
- The OTLP endpoint. The default value is ``http://localhost:4317``.
121+
118122
To send data directly to Splunk Observability Cloud, see :ref:`export-directly-to-olly-cloud-go`.
119123

120124
.. _trace-sampling-settings-go-otel:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ The following example shows how to update a deployment to expose environment var
169169
Send data directly to Splunk Observability Cloud
170170
==================================================================
171171

172-
By default, all telemetry is sent to the local instance of the Splunk Distribution of OpenTelemetry Collector.
172+
By default, all telemetry is sent to the local OpenTelemetry Collector before being forwarded to Splunk Observability Cloud.
173+
It is also possible to send data directly to Splunk Observability Cloud without using the OpenTelemetry Collector.
174+
.. note:: Sending data directly to Splunk Observability Cloud is supported only for traces and metrics. Logs cannot be sent using this method.
173175

174176
If you need to send data directly to Splunk Observability Cloud, set the following environment variables:
175177

0 commit comments

Comments
 (0)