Goインストルメンテーションの互換性と要件

これは、Splunk Observability Cloud 用に Go アプリケーションをインストルメンテーションするために必要なものです。

Go アプリケーションを Splunk Observability Cloud でインストルメンテーションするには、以下の要件を満たす必要があります。

サポートされているライブラリとフレームワーク

OpenTelemetry Registry に掲載されているインストルメンテーションライブラリのどれでも使用できます。

次の表に、Splunk でサポートされているすべてのインストルメンテーションがリストされています。各インストルメンテーションパッケージを有効にする方法については、各インストルメンテーション パッケージのドキュメントを確認してください。

ターゲット・パッケージ

インストルメンテーション・パッケージ

database/sql

splunksql

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

splunkkafka

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

splunkkafka

github.com/go-chi/chi

splunkchi

github.com/gomodule/redigo

splunkredigo

github.com/graph-gophers/graphql-go

splunkgraphql

github.com/jackc/pgx/v4

splunkpgx

github.com/jackc/pgx/v5

splunkpgx

github.com/jinzhu/gorm

splunkgorm

github.com/jmoiron/sqlx

splunksqlx

github.com/julienschmidt/httprouter

splunkhttprouter

github.com/lib/pq

splunkpq

github.com/miekg/dns

splunkdns

gopkg.in/olivere/elastic

splunkelastic

github.com/syndtr/goleveldb/leveldb

splunkleveldb

github.com/tidwall/buntdb

splunkbuntdb

k8s.io/client-go

splunkclient-go

サポートされているGoのバージョンを使用していることを確認してください。

Splunk Distribution of OpenTelemetry Collectorのインストールと設定

Splunk Distribution of OpenTelemetry Go は、アプリケーションのトレースとスパンを Splunk Distribution of OpenTelemetry Collector にエクスポートします。

アプリケーションのトレースとスパンを Splunk Observability Cloud に送信するには、お使いのプラットフォーム用の Splunk Distribution of OpenTelemetry Collector をインストールします。次のディストリビューションを使用できます。