Go instrumentation compatibility and requirements

This is what you need to instrument any Go application for Splunk Observability Cloud.

Meet these requirements to instrument Go applications for Splunk Observability Cloud.

Supported libraries and frameworks

You can use any of the instrumentation libraries listed in the OpenTelemetry Registry .

The following table lists all the instrumentations supported by Splunk. Check the documentation of each instrumentation package to learn how to activate it.

Target package

Instrumentation package

database/sql

splunksql

github.com/confluentinc/confluent-kafka-go/v2/kafka

splunkkafka

github.com/jackc/pgx/v4

splunkpgx

github.com/jackc/pgx/v5

splunkpgx

github.com/jinzhu/gorm

splunkgorm

github.com/jmoiron/sqlx

splunksqlx

github.com/lib/pq

splunkpq

Ensure you are using supported Go versions

The Splunk Distribution of OpenTelemetry Go is compatible with Go 1.24 and higher.

Install and configure the Splunk Distribution of OpenTelemetry Collector

The Splunk Distribution of OpenTelemetry Go exports application traces and spans to the Splunk Distribution of OpenTelemetry Collector, which also collects system metric data and logs.

To send application traces and spans to Splunk Observability Cloud, install the Splunk Distribution of OpenTelemetry Collector for your platform. The following distributions are available: