From 4632f82c1c6a0031368bb9378bd5f1872f3b8a1c Mon Sep 17 00:00:00 2001 From: Samiur Arif Date: Thu, 30 Nov 2023 13:04:34 -0800 Subject: [PATCH] adding mysqlreceiver --- docs/components.md | 1 + go.mod | 51 ++++++------ go.sum | 105 +++++++++++++------------ internal/components/components.go | 2 + internal/components/components_test.go | 1 + tests/tools/go.mod | 4 +- 6 files changed, 87 insertions(+), 77 deletions(-) diff --git a/docs/components.md b/docs/components.md index b1d99e80a8..8148b1055e 100644 --- a/docs/components.md +++ b/docs/components.md @@ -34,6 +34,7 @@ The distribution offers support for the following components. | [lightprometheus](../internal/receiver/lightprometheusreceiver) | [in development] | | [mongodbatlas](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/mongodbatlasreceiver) | [beta] | | [mongodb](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/mongodbreceiver) | [beta] | +| [mysql](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/mysqlreceiver) |[beta] | | [oracledb](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/oracledbreceiver) | [alpha] | | [otlp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver) | [stable] | | [postgres](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/postgresqlreceiver) | [beta] | diff --git a/go.mod b/go.mod index 9a8b9b6ec8..6dabd26ff5 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/k8sobserver v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage v0.89.0 - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.89.0 + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.90.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.89.0 @@ -69,6 +69,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbreceiver v0.89.0 + github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver v0.90.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver v0.89.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.89.0 @@ -103,27 +104,27 @@ require ( go.etcd.io/bbolt v1.3.8 go.etcd.io/etcd/client/v2 v2.305.10 go.opentelemetry.io/collector/config/confighttp v0.89.0 - go.opentelemetry.io/collector/config/configtelemetry v0.89.0 - go.opentelemetry.io/collector/confmap v0.89.0 - go.opentelemetry.io/collector/connector v0.89.0 + go.opentelemetry.io/collector/config/configtelemetry v0.90.0 + go.opentelemetry.io/collector/confmap v0.90.0 + go.opentelemetry.io/collector/connector v0.90.0 go.opentelemetry.io/collector/connector/forwardconnector v0.89.0 - go.opentelemetry.io/collector/exporter v0.89.0 + go.opentelemetry.io/collector/exporter v0.90.0 go.opentelemetry.io/collector/exporter/debugexporter v0.89.0 go.opentelemetry.io/collector/exporter/loggingexporter v0.89.0 go.opentelemetry.io/collector/exporter/otlpexporter v0.89.0 go.opentelemetry.io/collector/exporter/otlphttpexporter v0.89.0 - go.opentelemetry.io/collector/extension v0.89.0 + go.opentelemetry.io/collector/extension v0.90.0 go.opentelemetry.io/collector/extension/ballastextension v0.89.0 go.opentelemetry.io/collector/extension/zpagesextension v0.89.0 go.opentelemetry.io/collector/otelcol v0.89.0 - go.opentelemetry.io/collector/pdata v1.0.0-rcv0018 - go.opentelemetry.io/collector/processor v0.89.0 + go.opentelemetry.io/collector/pdata v1.0.0 + go.opentelemetry.io/collector/processor v0.90.0 go.opentelemetry.io/collector/processor/batchprocessor v0.89.0 go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.89.0 - go.opentelemetry.io/collector/receiver v0.89.0 + go.opentelemetry.io/collector/receiver v0.90.0 go.opentelemetry.io/collector/receiver/otlpreceiver v0.89.0 - go.opentelemetry.io/otel/metric v1.20.0 - go.opentelemetry.io/otel/trace v1.20.0 + go.opentelemetry.io/otel/metric v1.21.0 + go.opentelemetry.io/otel/trace v1.21.0 go.uber.org/atomic v1.11.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.26.0 @@ -175,7 +176,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/kafka v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.89.0 // indirect - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.89.0 // indirect + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.90.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/azure v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.89.0 // indirect github.com/ovh/go-ovh v1.4.3 // indirect @@ -193,13 +194,13 @@ require ( github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect github.com/zeebo/xxh3 v1.0.2 // indirect go.mongodb.org/mongo-driver v1.13.0 // indirect - go.opentelemetry.io/collector v0.89.0 // indirect + go.opentelemetry.io/collector v0.90.0 // indirect go.opentelemetry.io/collector/config/configauth v0.89.0 // indirect go.opentelemetry.io/collector/config/configcompression v0.89.0 // indirect go.opentelemetry.io/collector/config/configgrpc v0.89.0 // indirect - go.opentelemetry.io/collector/config/confignet v0.89.0 // indirect - go.opentelemetry.io/collector/config/configopaque v0.89.0 // indirect - go.opentelemetry.io/collector/config/configtls v0.89.0 // indirect + go.opentelemetry.io/collector/config/confignet v0.90.0 // indirect + go.opentelemetry.io/collector/config/configopaque v0.90.0 // indirect + go.opentelemetry.io/collector/config/configtls v0.90.0 // indirect go.opentelemetry.io/collector/config/internal v0.89.0 // indirect go.opentelemetry.io/collector/extension/auth v0.89.0 // indirect go.opentelemetry.io/collector/service v0.89.0 // indirect @@ -209,7 +210,7 @@ require ( go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.20.0 // indirect - go.opentelemetry.io/otel/exporters/prometheus v0.43.0 // indirect + go.opentelemetry.io/otel/exporters/prometheus v0.44.0 // indirect go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.43.0 // indirect go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.20.0 // indirect go.opentelemetry.io/proto/otlp v1.0.0 // indirect @@ -425,7 +426,7 @@ require ( github.com/oklog/run v1.1.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.89.0 // indirect - github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.89.0 // indirect + github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.90.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/internal/docker v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.89.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.89.0 // indirect @@ -490,17 +491,17 @@ require ( go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect go.mongodb.org/atlas v0.35.0 // indirect go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.89.0 - go.opentelemetry.io/collector/consumer v0.89.0 - go.opentelemetry.io/collector/featuregate v1.0.0-rcv0018 // indirect - go.opentelemetry.io/collector/semconv v0.89.0 + go.opentelemetry.io/collector/component v0.90.0 + go.opentelemetry.io/collector/consumer v0.90.0 + go.opentelemetry.io/collector/featuregate v1.0.0 // indirect + go.opentelemetry.io/collector/semconv v0.90.0 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.20.0 // indirect go.opentelemetry.io/contrib/zpages v0.45.0 // indirect - go.opentelemetry.io/otel v1.20.0 // indirect - go.opentelemetry.io/otel/sdk v1.20.0 // indirect - go.opentelemetry.io/otel/sdk/metric v1.20.0 // indirect + go.opentelemetry.io/otel v1.21.0 // indirect + go.opentelemetry.io/otel/sdk v1.21.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.21.0 // indirect golang.org/x/crypto v0.15.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa golang.org/x/mod v0.14.0 // indirect diff --git a/go.sum b/go.sum index 06ae4243b4..f431f86312 100644 --- a/go.sum +++ b/go.sum @@ -1108,8 +1108,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/internal/collectd v0.8 github.com/open-telemetry/opentelemetry-collector-contrib/internal/collectd v0.89.0/go.mod h1:3d/jatqWWBIX2KEkuWPs7yFW7NMm44xqU2wtyxa27lo= github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.89.0 h1:stB4V0yU6htEVWxoNOVuiIPDUetbRLlpP4m1Rcn03G8= github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.89.0/go.mod h1:mrkZwYA2MKZaidETgwMffAyPzsLjOq5fEJB58TIXa0I= -github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.89.0 h1:OzyR48z06nE00fPS2pdyoBdY7MsnHvitiDZ6krDPKkM= -github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.89.0/go.mod h1:D32znNtx75Y0lUECRJRdQTyHjaropN8AD+qHqXs4/6Q= +github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.90.0 h1:mJUUjarDCMA+NnGpH45G3R5xNJWDnOyU1V14Df7rBoU= +github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.90.0/go.mod h1:fuLlV9ckNXKtZPTkoSnl/zohOXpjAALntCLt+iWGOi0= github.com/open-telemetry/opentelemetry-collector-contrib/internal/docker v0.89.0 h1:L6JRFuM7mxwmXWxWFdrKYKET2IHs6LKfGYDAJ1cnjXQ= github.com/open-telemetry/opentelemetry-collector-contrib/internal/docker v0.89.0/go.mod h1:2rTAiKh+I94QJGZqN05JvcIgeiSb7+o8GhoZd5z1vnY= github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.89.0 h1:6UTjDWi0qReo5pf34E6SEKwT81KCb5kUxi3vVhcRG48= @@ -1133,13 +1133,13 @@ github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0. github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.89.0/go.mod h1:sxkiM9W9qnjOF97UwGc0QMl3/PHc6eD3FcyTRZSUOFw= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.89.0 h1:4x6kzYkNTQOHo39Lj/0gNOub1hKfWcb/Y7GKawK+Evg= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.89.0/go.mod h1:ZDAKZVdDGJ9vCms2oUYRzWrrFIb8Wx8kcFRah7f7Op0= -github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.89.0 h1:GAI5zG4W6wo20qVLvZjamskPYh7JEPEPMboElWxWzQE= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.90.0 h1:ufn1/4yyLVLZB+v6xXI0eYHGYIEll1O0rTbU44HxybA= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.89.0 h1:E3uMN6efnooLi5/jz0hYlsvczaYg/XT7lNrv2/QjUa0= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.89.0/go.mod h1:TCT9B0MM0XsMdvJ9Hif1tZ/3rUkJH7nJ77mpvj6Wkh8= -github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.89.0 h1:haMoD8AR60bbBBc/z7J1jUqv0xaZ/TjTI5Frz+Rm8oc= -github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.89.0/go.mod h1:GSXiM7Mt/QZiwayIaVwEFrCXYHeII6fNU+14JkmvrPI= -github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.89.0 h1:6gs+KOZ77UhSJnNjpacptiMuvVqfmgYw/f24uqLFxzM= -github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.89.0/go.mod h1:oyLPe07YKGU38ANwNCisNyad2/xBUNslHuziYHE00v4= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.90.0 h1:pMBaQ/5fc4PPuCGb1DFzxdp1q04BKkCZapI3VnAWow4= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.90.0/go.mod h1:363jq6P5q9+NaIgAKUaIMtGdNzNy0cK4QOkxyXk5cOg= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.90.0 h1:ybdoWklcOxQ5Bv4SKuXn8OBjeImJozaF4YGvkgJkp6Y= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.90.0/go.mod h1:LrsgmhaNo+f3xb4loclG8+gLTWgyzmiS1bplK1CVRu0= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.89.0 h1:qPwyUva7Vjnp7WJAA8vOw7SEfGdKW2w5sKlCondKl68= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.89.0 h1:oYR/SD5tISa0VG+ZYz5+tcUinV7Ybu27l3iPDTnnMxg= github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.89.0/go.mod h1:7uCHpcHoawJsqoyPLxaFROWsZXPSF6/op3Hmw4pV4WE= @@ -1220,6 +1220,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasr github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver v0.89.0/go.mod h1:ZHVVcCAhtoa+FlNX6uxmKcyG4nTlarsoit5lNkMYy/U= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbreceiver v0.89.0 h1:yBeckcWoqHPT52BWuA51IhYHRkkrnWqmr4rRLQOAZrs= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbreceiver v0.89.0/go.mod h1:YyPXiyKU+vxwEKTszEyvkqQhGOPAZRwMARkL/fXyD9A= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver v0.90.0 h1:1vVXdAf9nHLGpukN+aQdDMjXj3sPic7IgGpvQ9c1+hU= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver v0.90.0/go.mod h1:pL18YDYS2tsy6XF764rmaVe0C632an9C93jm5UZBPEA= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver v0.89.0 h1:4MQ5Vpd9l888JUZhKWQ0scOcY2rwwA2rOZZwU1k/Pw4= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver v0.89.0/go.mod h1:VgsEtu2khDC3Yji3avDjWTJG7lKaPXpesUHZsF5NQi0= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver v0.89.0 h1:fr6njJMMaqCNAwEH+4HNIvvRWpD9HrIaH+E0/CY8T8g= @@ -1562,10 +1564,10 @@ go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.89.0 h1:lzpfD9NTHh+1M+qzcoYUH+i2rOgFSox3bGQFUI5BPJg= -go.opentelemetry.io/collector v0.89.0/go.mod h1:UZUtmQ3kai0CLPWvPmHKpmwqqEoo50n1bwzYYhXX0eA= -go.opentelemetry.io/collector/component v0.89.0 h1:PoQJX86BpaSZhzx0deQXHh3QMuW6XKVmolSdTKE506c= -go.opentelemetry.io/collector/component v0.89.0/go.mod h1:ZZncnMVaNs++JIbAMiemUIWLZrZ3PMEzI3S3K8pnkws= +go.opentelemetry.io/collector v0.90.0 h1:Wyiiu+78tV5zZDvza9hvZu6FgOkFqURNzPHkKcI+asw= +go.opentelemetry.io/collector v0.90.0/go.mod h1:qRhpGBXozKMn+7SiniobhcZ0AbCSWdYqL+XM3gnwejQ= +go.opentelemetry.io/collector/component v0.90.0 h1:rufHQfFpZQ4mc30GAsW6JSm1DvJWCGjoyw+dNXpgTV8= +go.opentelemetry.io/collector/component v0.90.0/go.mod h1:+WX5h5I98AwL256AdFvn8EpPZ02Q+UrKo9AdI8LLfuQ= go.opentelemetry.io/collector/config/configauth v0.89.0 h1:F082cy1OwrjyucI0wgEO2lRPTWJlgJzM/I5d0BoVgp4= go.opentelemetry.io/collector/config/configauth v0.89.0/go.mod h1:yRJj70B3MyfbyGuyKO1I+5LtGuvx/WLUh8kuQ/XX6RE= go.opentelemetry.io/collector/config/configcompression v0.89.0 h1:Z4LG045HwoNqXaibVbAQkcAQGmvY4OHrY4eCppoAzoQ= @@ -1574,26 +1576,26 @@ go.opentelemetry.io/collector/config/configgrpc v0.89.0 h1:Lnv/4EbImss5JuVE2nffk go.opentelemetry.io/collector/config/configgrpc v0.89.0/go.mod h1:2GuAxpU34a1X19kCZ8Kw3FUsxOIiFcWHiYorRCyhnCc= go.opentelemetry.io/collector/config/confighttp v0.89.0 h1:RatLdeZkCu3uLtCjbS8g5Aec2JB3/CSpB6O7P081Bhg= go.opentelemetry.io/collector/config/confighttp v0.89.0/go.mod h1:R5BIbvqlxSDQGpCRWd2HBZIWijfSIWRpLeSpZjkKkag= -go.opentelemetry.io/collector/config/confignet v0.89.0 h1:Ekh+XhXelnnJ9as8IWhdUOfjnDPhz12XMJQ8sWNAbGw= -go.opentelemetry.io/collector/config/confignet v0.89.0/go.mod h1:cpO8JYWGONaViOygKVw+Hd2UoBcn2cUiyi0WWeFTwJY= -go.opentelemetry.io/collector/config/configopaque v0.89.0 h1:Ad6yGcGBHs+J9SNjkedY68JsLZ1vBn4kKzdqKuTCRsE= -go.opentelemetry.io/collector/config/configopaque v0.89.0/go.mod h1:TPCHaU+QXiEV+JXbgyr6mSErTI9chwQyasDVMdJr3eY= -go.opentelemetry.io/collector/config/configtelemetry v0.89.0 h1:NtRknYDfMgP1r8mnByo6qQQK8IBw/lF9Qke5f7VhGZ0= -go.opentelemetry.io/collector/config/configtelemetry v0.89.0/go.mod h1:+LAXM5WFMW/UbTlAuSs6L/W72WC+q8TBJt/6z39FPOU= -go.opentelemetry.io/collector/config/configtls v0.89.0 h1:XDeUaTU7LYwnEXz/CSdjbCStJa7n0YR1q0QpK0Vtw9w= -go.opentelemetry.io/collector/config/configtls v0.89.0/go.mod h1:NlE4elqXoyFfzQvYfzgH6uOU1zNVa+5tt6EIq52TJ9Y= +go.opentelemetry.io/collector/config/confignet v0.90.0 h1:+1AR+lzjZ8LGHWM4ujOBUXu53hvnC6qycHVeNvp8+U4= +go.opentelemetry.io/collector/config/confignet v0.90.0/go.mod h1:cpO8JYWGONaViOygKVw+Hd2UoBcn2cUiyi0WWeFTwJY= +go.opentelemetry.io/collector/config/configopaque v0.90.0 h1:tnuwVWaKbPIhgLawcU4xnex53tJbQsecNq86eZRz1rE= +go.opentelemetry.io/collector/config/configopaque v0.90.0/go.mod h1:TPCHaU+QXiEV+JXbgyr6mSErTI9chwQyasDVMdJr3eY= +go.opentelemetry.io/collector/config/configtelemetry v0.90.0 h1:1exyNLDVSSkdDLUoVTLiy5pfzB7ak802JhOaOTOe2Zo= +go.opentelemetry.io/collector/config/configtelemetry v0.90.0/go.mod h1:+LAXM5WFMW/UbTlAuSs6L/W72WC+q8TBJt/6z39FPOU= +go.opentelemetry.io/collector/config/configtls v0.90.0 h1:bsPZkh5ejlIk/XwLdzz91empM3STU8xr6yArqMVYxJ4= +go.opentelemetry.io/collector/config/configtls v0.90.0/go.mod h1:eLLgpNPxHAtAynKCJN7p9O7GIDEIRKfjsFJs3BQazyg= go.opentelemetry.io/collector/config/internal v0.89.0 h1:fs7LJTJd1EF76pjK7ZZZMWNxze0+pDXq3mfRwhm0P0g= go.opentelemetry.io/collector/config/internal v0.89.0/go.mod h1:42VsQ/1kP2qnvzjNi+dfNP+KyCFRADejyrJ8m2GVL3M= -go.opentelemetry.io/collector/confmap v0.89.0 h1:N5Vg1+FXEFBHHlGIPg4OSlM9uTHjCI7RlWWrKjtOzWQ= -go.opentelemetry.io/collector/confmap v0.89.0/go.mod h1:D8FMPvuihtVxwXaz/qp5q9X2lq9l97QyjfsdZD1spmc= -go.opentelemetry.io/collector/connector v0.89.0 h1:2v7RgaLrlGmvHV1BjG133MswZ2BhH77vTHOLa4/Tqm0= -go.opentelemetry.io/collector/connector v0.89.0/go.mod h1:z82Yw0wZarpva9byeqByb3+eZSZ35DMdNRkjFgMm0S0= +go.opentelemetry.io/collector/confmap v0.90.0 h1:vU+759p/4zLeet8yeI8uVq4+xCm73/5K8t2Tx0MzX/8= +go.opentelemetry.io/collector/confmap v0.90.0/go.mod h1:uxV+fZ85kG31oovL6Cl3fAMQ3RRPwUvfAbbA9WT1Yhk= +go.opentelemetry.io/collector/connector v0.90.0 h1:a/LqC0FjcvTI2rCN4HOYDfVwAY8a3wmSosmPQTIyNgw= +go.opentelemetry.io/collector/connector v0.90.0/go.mod h1:qdIh6GGJvauYkTkqtoSQ3pQDh+DShZ/CH4lhguAOhag= go.opentelemetry.io/collector/connector/forwardconnector v0.89.0 h1:L2SjHTu2PtGJG9pHIBTlzWR5YnkApcR/5u3jgxa+XIM= go.opentelemetry.io/collector/connector/forwardconnector v0.89.0/go.mod h1:s0hVBjug/iwc9Fw6QlcKFZ5ezeqFfp3uK9IgS5cZNhc= -go.opentelemetry.io/collector/consumer v0.89.0 h1:MteKhkudX2L1ylbtdpSazO8SwyHSxl6fUEElc0rRLDQ= -go.opentelemetry.io/collector/consumer v0.89.0/go.mod h1:aOaoi6R0qVvfHu0pEPCzSE74gIPNJoCQM8Ml4Bc9NHE= -go.opentelemetry.io/collector/exporter v0.89.0 h1:8sYpJdKDQ2RuYOPKDsMz/lMJqp4WEWZgfJzyn9IgOag= -go.opentelemetry.io/collector/exporter v0.89.0/go.mod h1:zR8PFXMHlG0qPIEdRPNaefxDNj4UVP47uJ4vbHs+YME= +go.opentelemetry.io/collector/consumer v0.90.0 h1:5cScUTbv9PIvI/bKTa2GbAn/LAMwcg2znAb0UKfhVy4= +go.opentelemetry.io/collector/consumer v0.90.0/go.mod h1:mh/eEA0UClEtgQMDICQVL7oSylgbskFfueBO0i5HkSQ= +go.opentelemetry.io/collector/exporter v0.90.0 h1:XMpOprVtAG3yryRQ8fw6a9TZsL7t9jzCrYCvhHrtBw4= +go.opentelemetry.io/collector/exporter v0.90.0/go.mod h1:QNhT4FZ/698dDybYM2FbfguNvh2S7M7jKiDvFLntWOw= go.opentelemetry.io/collector/exporter/debugexporter v0.89.0 h1:MQUEX4OWszJQqQMqtYERiiw02Ta9QMWPe/hHWoD4YBU= go.opentelemetry.io/collector/exporter/debugexporter v0.89.0/go.mod h1:eLoVrKOjgPvAmg0XJuellJ03zEpEol26l8i48Rhv53Q= go.opentelemetry.io/collector/exporter/loggingexporter v0.89.0 h1:AdMGaH1p9D1Kvjkd/sXMg/Hkc5M1lqBdhXY5WfmiGSE= @@ -1602,34 +1604,35 @@ go.opentelemetry.io/collector/exporter/otlpexporter v0.89.0 h1:0oYIeiRTURjIIYXs1 go.opentelemetry.io/collector/exporter/otlpexporter v0.89.0/go.mod h1:kA+ycED/f5rUj2030XE45q0aXUe5haZhW62zdPgice0= go.opentelemetry.io/collector/exporter/otlphttpexporter v0.89.0 h1:HzEVN0r94lkymm9D+NlB/UUlLqZqC5rnHUBN0Kj/ZYs= go.opentelemetry.io/collector/exporter/otlphttpexporter v0.89.0/go.mod h1:2AhkhO9YDcbfZ5X5gwN+k51FYFW8qfOWIrCEASp13qI= -go.opentelemetry.io/collector/extension v0.89.0 h1:iiaWIPPFqP4T0FSgl6+D1xRUhVnhsk88uk2BxCFqt7E= -go.opentelemetry.io/collector/extension v0.89.0/go.mod h1:tBh5wD4AZ3xFO6M1CjkEEx2urexTqcAcgi9cJSPME3E= +go.opentelemetry.io/collector/extension v0.90.0 h1:NDvZneZEapDeOD195kDZiEW8IUb2SimmkI/CrKfy+WA= +go.opentelemetry.io/collector/extension v0.90.0/go.mod h1:vUiLcJQuM04CuyCf6AbjW8OCSeINSU4242GPVzTzX9w= go.opentelemetry.io/collector/extension/auth v0.89.0 h1:eo9JoWklZdSManEPLm1LqlwEq5v/YIsOupjZHdRYm3I= go.opentelemetry.io/collector/extension/auth v0.89.0/go.mod h1:TzC5WYGMgsZvkpYSU1Jlwxh46tSDmWRLFsc9awXaedk= go.opentelemetry.io/collector/extension/ballastextension v0.89.0 h1:9Nhxmaj2XtAMik3SSTswW+MiOHPzC6LE0ZJOsnmqkPY= go.opentelemetry.io/collector/extension/ballastextension v0.89.0/go.mod h1:kVGHc9tbBPaQgDsFEDhtwbQkWJmyHne2XrVhK0zyYZk= go.opentelemetry.io/collector/extension/zpagesextension v0.89.0 h1:opvHcGANx+dS4HJwGTPtRMd6dZdOmmGn6c3PfW/bihQ= go.opentelemetry.io/collector/extension/zpagesextension v0.89.0/go.mod h1:RlhcZHBMg86y1hgBf+j1lNvnZ8ihWiYTYXFiy5InwyY= -go.opentelemetry.io/collector/featuregate v1.0.0-rcv0018 h1:iK4muX3KIMqKk0xwKcRzu4ravgCtUdzsvuxxdz6A27g= -go.opentelemetry.io/collector/featuregate v1.0.0-rcv0018/go.mod h1:xGbRuw+GbutRtVVSEy3YR2yuOlEyiUMhN2M9DJljgqY= +go.opentelemetry.io/collector/featuregate v1.0.0 h1:5MGqe2v5zxaoo73BUOvUTunftX5J8RGrbFsC2Ha7N3g= +go.opentelemetry.io/collector/featuregate v1.0.0/go.mod h1:xGbRuw+GbutRtVVSEy3YR2yuOlEyiUMhN2M9DJljgqY= go.opentelemetry.io/collector/otelcol v0.89.0 h1:b3kC0zM9T6GxjhTcNEHIzXDd4zTIc7cBpexCPZ9nPzg= go.opentelemetry.io/collector/otelcol v0.89.0/go.mod h1:BILxDcJe32wK+paX7ssnt4jyjOmTkIHvXe9JNjlHUk8= -go.opentelemetry.io/collector/pdata v1.0.0-rcv0018 h1:a2IHOZKphRzPagcvOHQHHUE0DlITFSKlIBwaWhPZpl4= -go.opentelemetry.io/collector/pdata v1.0.0-rcv0018/go.mod h1:oNIcTRyEJYIfMcRYyyh5lquDU0Vl+ktTL6ka+p+dYvg= -go.opentelemetry.io/collector/processor v0.89.0 h1:ypMnoOqBYbXgbDnAm9/Cb4uN3kxvmI05Vf6o4u/riBU= -go.opentelemetry.io/collector/processor v0.89.0/go.mod h1:HzMQ2VbxaECk7Oy1mHtug4qsl4acAW4XP1hpTgQKv84= +go.opentelemetry.io/collector/pdata v1.0.0 h1:ECP2jnLztewsHmL1opL8BeMtWVc7/oSlKNhfY9jP8ec= +go.opentelemetry.io/collector/pdata v1.0.0/go.mod h1:TsDFgs4JLNG7t6x9D8kGswXUz4mme+MyNChHx8zSF6k= +go.opentelemetry.io/collector/processor v0.90.0 h1:GP9er9lx+lSUg1khsjkuiAN0VIGfkd517gl2KT5c64M= +go.opentelemetry.io/collector/processor v0.90.0/go.mod h1:EbXqZoGuLIc+qYa9uS3ZTU05r3e981No81vyp6PH2q0= go.opentelemetry.io/collector/processor/batchprocessor v0.89.0 h1:oTEOHs2t00f9LfRwZGzKSXJPR3FHjPDDhjt05iWXYZM= go.opentelemetry.io/collector/processor/batchprocessor v0.89.0/go.mod h1:xaTfwrIbnsUpvaUCIecvlH8wTH500U7LtczdaEPXmmk= go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.89.0 h1:Rw7SMMMGD9YIJjqwNA1nZTEFAMJumMv2hb58iTtCrH0= go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.89.0/go.mod h1:3gmY8wAiqcmThKH7e8t+J/p0BGvXymHrwum7tcm2rbs= -go.opentelemetry.io/collector/receiver v0.89.0 h1:wC/FB8e2Ej06jjNW2OiuZoyiSyB8TQNIzYyPlh9oRqI= -go.opentelemetry.io/collector/receiver v0.89.0/go.mod h1:Rk7Bkz45fVdrcJaVDsPTnHa97ZfSs1ULO76LXc4kLN0= +go.opentelemetry.io/collector/receiver v0.90.0 h1:cVp1s9c9kSfn5ZTXb9o8nlZnLEgs2gutEYzty5+eUEI= +go.opentelemetry.io/collector/receiver v0.90.0/go.mod h1:oRmH7WKmkJo7tgc7odoArLXjrz2TZdcw7pco0KRZjWo= go.opentelemetry.io/collector/receiver/otlpreceiver v0.89.0 h1:ayqzWyj56xyc0tcBpaYjWtxvj5pfZNhYC8LrwvlLAeE= go.opentelemetry.io/collector/receiver/otlpreceiver v0.89.0/go.mod h1:7p2oZ09hP+h6WpTv67PgEJx+azViVqLBE4IfrnDOWOc= -go.opentelemetry.io/collector/semconv v0.89.0 h1:Sw+MiI3/oiYIY+ebkanZsOaBxXMx3sqnH1/6NaD4rLQ= -go.opentelemetry.io/collector/semconv v0.89.0/go.mod h1:j/8THcqVxFna1FpvA2zYIsUperEtOaRaqoLYIN4doWw= +go.opentelemetry.io/collector/semconv v0.90.0 h1:X361OfWNRqCgMCht+nuo7NH4OzpfYEbh9JTga7r5d0c= +go.opentelemetry.io/collector/semconv v0.90.0/go.mod h1:j/8THcqVxFna1FpvA2zYIsUperEtOaRaqoLYIN4doWw= go.opentelemetry.io/collector/service v0.89.0 h1:dZSK++Eu2H/vzWjhVG3yC0P76Xu5xE6qji0dMy0fRTw= go.opentelemetry.io/collector/service v0.89.0/go.mod h1:6IAr9Asn6t6YxSw6Qv5LwA+ilVUtP0nQsu1xzc9+mZA= +go.opentelemetry.io/contrib/config v0.1.1 h1:lIUTrMWkfDE0GvzBLhwv6ATDB1vntrnTsRvUMkZKnfQ= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 h1:PzIubN4/sjByhDRHLviCjJuweBXWFZWhghjg7cS28+M= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0/go.mod h1:Ct6zzQEuGK3WpJs2n4dn+wfJYzd/+hNnxMRTWjGn30M= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0 h1:1eHu3/pUSWaOgltNK3WJFaywKsTIr/PwvHyDmi0lQA0= @@ -1638,8 +1641,8 @@ go.opentelemetry.io/contrib/propagators/b3 v1.20.0 h1:Yty9Vs4F3D6/liF1o6FNt0PvN8 go.opentelemetry.io/contrib/propagators/b3 v1.20.0/go.mod h1:On4VgbkqYL18kbJlWsa18+cMNe6rYpBnPi1ARI/BrsU= go.opentelemetry.io/contrib/zpages v0.45.0 h1:jIwHHGoWzJoZdbIUtWdErjL85Gni6BignnAFqDtMRL4= go.opentelemetry.io/contrib/zpages v0.45.0/go.mod h1:4mIdA5hqH6hEx9sZgV50qKfQO8aIYolUZboHmz+G7vw= -go.opentelemetry.io/otel v1.20.0 h1:vsb/ggIY+hUjD/zCAQHpzTmndPqv/ml2ArbsbfBYTAc= -go.opentelemetry.io/otel v1.20.0/go.mod h1:oUIGj3D77RwJdM6PPZImDpSZGDvkD9fhesHny69JFrs= +go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= +go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= go.opentelemetry.io/otel/bridge/opencensus v0.43.0 h1:E/sf+2slCUb7wqh5FHwhdwKWTA+VXyMMAcFNlKVf4yw= go.opentelemetry.io/otel/bridge/opencensus v0.43.0/go.mod h1:2xuXI78Xp9cttLsJMF/Y08cJUqckLt0kLasn+vcHR5w= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.43.0 h1:tFUz2BE6ucxU9PuPCwzbfDeQjMznIySJ4/73a3FSPUs= @@ -1652,20 +1655,20 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 h1:gvmNv go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0/go.mod h1:vNUq47TGFioo+ffTSnKNdob241vePmtNZnAODKapKd0= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.20.0 h1:CsBiKCiQPdSjS+MlRiqeTI9JDDpSuk0Hb6QTRfwer8k= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.20.0/go.mod h1:CMJYNAfooOwSZSAmAeMUV1M+TXld3BiK++z9fqIm2xk= -go.opentelemetry.io/otel/exporters/prometheus v0.43.0 h1:Skkl6akzvdWweXX6LLAY29tyFSO6hWZ26uDbVGTDXe8= -go.opentelemetry.io/otel/exporters/prometheus v0.43.0/go.mod h1:nZStMoc1H/YJpRjSx9IEX4abBMekORTLQcTUT1CgLkg= +go.opentelemetry.io/otel/exporters/prometheus v0.44.0 h1:08qeJgaPC0YEBu2PQMbqU3rogTlyzpjhCI2b58Yn00w= +go.opentelemetry.io/otel/exporters/prometheus v0.44.0/go.mod h1:ERL2uIeBtg4TxZdojHUwzZfIFlUIjZtxubT5p4h1Gjg= go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.43.0 h1:vcSjcjn/BTeM6abI5CDymZdtd1m24quD1Mx4VE3N3fM= go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.43.0/go.mod h1:HblEnlZQNsVuuDpszdKTWcrHBI09OjBn2pWSzBx1goM= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.20.0 h1:4s9HxB4azeeQkhY0GE5wZlMj4/pz8tE5gx2OQpGUw58= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.20.0/go.mod h1:djVA3TUJ2fSdMX0JE5XxFBOaZzprElJoP7fD4vnV2SU= -go.opentelemetry.io/otel/metric v1.20.0 h1:ZlrO8Hu9+GAhnepmRGhSU7/VkpjrNowxRN9GyKR4wzA= -go.opentelemetry.io/otel/metric v1.20.0/go.mod h1:90DRw3nfK4D7Sm/75yQ00gTJxtkBxX+wu6YaNymbpVM= -go.opentelemetry.io/otel/sdk v1.20.0 h1:5Jf6imeFZlZtKv9Qbo6qt2ZkmWtdWx/wzcCbNUlAWGM= -go.opentelemetry.io/otel/sdk v1.20.0/go.mod h1:rmkSx1cZCm/tn16iWDn1GQbLtsW/LvsdEEFzCSRM6V0= -go.opentelemetry.io/otel/sdk/metric v1.20.0 h1:5eD40l/H2CqdKmbSV7iht2KMK0faAIL2pVYzJOWobGk= -go.opentelemetry.io/otel/sdk/metric v1.20.0/go.mod h1:AGvpC+YF/jblITiafMTYgvRBUiwi9hZf0EYE2E5XlS8= -go.opentelemetry.io/otel/trace v1.20.0 h1:+yxVAPZPbQhbC3OfAkeIVTky6iTFpcr4SiY9om7mXSQ= -go.opentelemetry.io/otel/trace v1.20.0/go.mod h1:HJSK7F/hA5RlzpZ0zKDCHCDHm556LCDtKaAo6JmBFUU= +go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4= +go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= +go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= +go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/sdk/metric v1.21.0 h1:smhI5oD714d6jHE6Tie36fPx4WDFIg+Y6RfAY4ICcR0= +go.opentelemetry.io/otel/sdk/metric v1.21.0/go.mod h1:FJ8RAsoPGv/wYMgBdUJXOm+6pzFY3YdljnXtv1SBE8Q= +go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= +go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= diff --git a/internal/components/components.go b/internal/components/components.go index d02a1ae01c..b43d9368ad 100644 --- a/internal/components/components.go +++ b/internal/components/components.go @@ -67,6 +67,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbreceiver" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver" @@ -158,6 +159,7 @@ func Get() (otelcol.Factories, error) { kubeletstatsreceiver.NewFactory(), mongodbatlasreceiver.NewFactory(), mongodbreceiver.NewFactory(), + mysqlreceiver.NewFactory(), oracledbreceiver.NewFactory(), otlpreceiver.NewFactory(), postgresqlreceiver.NewFactory(), diff --git a/internal/components/components_test.go b/internal/components/components_test.go index 56276621e1..a1358544ab 100644 --- a/internal/components/components_test.go +++ b/internal/components/components_test.go @@ -61,6 +61,7 @@ func TestDefaultComponents(t *testing.T) { "kubeletstats", "mongodbatlas", "mongodb", + "mysql", "lightprometheus", "oracledb", "otlp", diff --git a/tests/tools/go.mod b/tests/tools/go.mod index 9646093e1a..ae116c79dc 100644 --- a/tests/tools/go.mod +++ b/tests/tools/go.mod @@ -1,6 +1,8 @@ module github.com/signalfx/splunk-otel-collector/tests/tools -go 1.20 +go 1.21 + +toolchain go1.21.1 require github.com/Songmu/gotesplit v0.3.1