Docs » Instrument back-end applications to send spans to Splunk APM » Instrument Go applications for Splunk Observability Cloud » Go instrumentation compatibility and requirements

Go instrumentation compatibility and requirements 🔗

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

Supported libraries and frameworks 🔗

The Splunk Distribution of OpenTelemetry Go can instrument the following libraries. Check the documentation of each instrumentation package to learn how to activate it.

Target package

Instrumentation package

database/sql

splunksql

host

host

net/http

otelhttp

net/http/httptrace

httptrace

runtime

runtime

github.com/astaxie/beego

otelbeego

github.com/aws/aws-sdk-go-v2

otelaws

github.com/bradfitz/gomemcache

otelmemcache

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

splunkkafka

github.com/emicklei/go-restful

otelrestful

github.com/gin-gonic/gin

otelgin

github.com/go-chi/chi

splunkchi

github.com/go-kit/kit

otelkit

github.com/go-sql-driver/mysql

splunkmysql

github.com/gocql/gocql

otelgocql

github.com/gomodule/redigo

splunkredigo

github.com/gorilla/mux

otelmux

github.com/graph-gophers/graphql-go

splunkgraphql

github.com/jackc/pgx

splunkpgx

github.com/jinzhu/gorm

splunkgorm

github.com/jmoiron/sqlx

splunksqlx

github.com/julienschmidt/httprouter

splunkhttprouter

github.com/labstack/echo

otelecho

github.com/lib/pq

splunkpq

github.com/miekg/dns

splunkdns

gopkg.in/olivere/elastic

splunkelastic

github.com/Shopify/sarama

otelsarama

github.com/syndtr/goleveldb/leveldb

splunkleveldb

github.com/tidwall/buntdb

splunkbuntdb

go.mongodb.org/mongo-driver

otelmongo

google.golang.org/grpc

otelgrpc

gopkg.in/macaron.v1

otelmacaron

k8s.io/client-go

splunkclient-go

Ensure you are using supported Go versions 🔗

The Splunk Distribution of OpenTelemetry Go is compatible with Go 1.17 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 Observability Cloud, install the Splunk Distribution of OpenTelemetry Collector for your platform. The following distributions are available: