Go instrumentation compatibility and requirements 🔗
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 |
|
github.com/confluentinc/confluent-kafka-go/kafka |
|
github.com/confluentinc/confluent-kafka-go/v2/kafka |
|
github.com/go-chi/chi |
|
github.com/gomodule/redigo |
|
github.com/graph-gophers/graphql-go |
|
github.com/jackc/pgx/v4 |
|
github.com/jackc/pgx/v5 |
|
github.com/jinzhu/gorm |
|
github.com/jmoiron/sqlx |
|
github.com/julienschmidt/httprouter |
|
github.com/lib/pq |
|
github.com/miekg/dns |
|
gopkg.in/olivere/elastic |
|
github.com/syndtr/goleveldb/leveldb |
|
github.com/tidwall/buntdb |
|
k8s.io/client-go |
Ensure you are using supported Go versions 🔗
The Splunk Distribution of OpenTelemetry Go is compatible with Go 1.22 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:
Splunk OTel Collector for Linux. See Install the Collector for Linux with the installer script.
Splunk OTel Collector for Windows. See Install the Collector for Windows with the installer script.
Splunk OTel Collector for Kubernetes. See Install the Collector for Kubernetes using Helm.