From 123aa3eecb4f8ae69e9b871d27d4dc37bbd32ea9 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Thu, 9 Jan 2025 17:19:38 +0100 Subject: [PATCH] fix: linter and replace deprecated scraper --- receiver/valkeyreceiver/config.go | 2 +- receiver/valkeyreceiver/factory.go | 2 +- receiver/valkeyreceiver/go.mod | 39 ++++++------- receiver/valkeyreceiver/go.sum | 70 ++++++++++++------------ receiver/valkeyreceiver/receiver_test.go | 4 +- 5 files changed, 60 insertions(+), 57 deletions(-) diff --git a/receiver/valkeyreceiver/config.go b/receiver/valkeyreceiver/config.go index 9dd74567495f..ba7308914777 100644 --- a/receiver/valkeyreceiver/config.go +++ b/receiver/valkeyreceiver/config.go @@ -9,7 +9,7 @@ import ( "go.opentelemetry.io/collector/config/confignet" "go.opentelemetry.io/collector/config/configtls" - "go.opentelemetry.io/collector/receiver/scraperhelper" + "go.opentelemetry.io/collector/scraper/scraperhelper" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/valkeyreceiver/internal/metadata" ) diff --git a/receiver/valkeyreceiver/factory.go b/receiver/valkeyreceiver/factory.go index 0e5aa7f3dbe3..261748ef24ca 100644 --- a/receiver/valkeyreceiver/factory.go +++ b/receiver/valkeyreceiver/factory.go @@ -12,8 +12,8 @@ import ( "go.opentelemetry.io/collector/config/configtls" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/receiver" - "go.opentelemetry.io/collector/receiver/scraperhelper" "go.opentelemetry.io/collector/scraper" + "go.opentelemetry.io/collector/scraper/scraperhelper" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/valkeyreceiver/internal/metadata" ) diff --git a/receiver/valkeyreceiver/go.mod b/receiver/valkeyreceiver/go.mod index ec6d63ff99f7..5ac1f3876882 100644 --- a/receiver/valkeyreceiver/go.mod +++ b/receiver/valkeyreceiver/go.mod @@ -5,23 +5,23 @@ go 1.22.7 require ( github.com/google/go-cmp v0.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.116.0 - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.116.0 - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.116.0 + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.117.0 + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.117.0 github.com/stretchr/testify v1.10.0 github.com/testcontainers/testcontainers-go v0.34.0 github.com/valkey-io/valkey-go v1.0.45 - go.opentelemetry.io/collector/component v0.116.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/component/componenttest v0.116.1-0.20241220212031-7c2639723f67 + go.opentelemetry.io/collector/component v0.117.0 + go.opentelemetry.io/collector/component/componenttest v0.117.0 go.opentelemetry.io/collector/config/confignet v1.22.1-0.20241220212031-7c2639723f67 go.opentelemetry.io/collector/config/configtls v1.22.1-0.20241220212031-7c2639723f67 go.opentelemetry.io/collector/confmap v1.22.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/consumer v1.22.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/consumer/consumertest v0.116.1-0.20241220212031-7c2639723f67 + go.opentelemetry.io/collector/consumer v1.23.0 + go.opentelemetry.io/collector/consumer/consumertest v0.117.0 go.opentelemetry.io/collector/filter v0.116.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/pdata v1.22.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/receiver v0.116.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/receiver/receivertest v0.116.1-0.20241220212031-7c2639723f67 - go.opentelemetry.io/collector/scraper v0.116.1-0.20241220212031-7c2639723f67 + go.opentelemetry.io/collector/pdata v1.23.0 + go.opentelemetry.io/collector/receiver v0.117.0 + go.opentelemetry.io/collector/receiver/receivertest v0.117.0 + go.opentelemetry.io/collector/scraper v0.117.0 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -66,7 +66,7 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/morikuni/aec v1.0.0 // indirect - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.116.0 // indirect + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.117.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -80,12 +80,13 @@ require ( github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opentelemetry.io/auto/sdk v1.1.0 // indirect go.opentelemetry.io/collector/config/configopaque v1.22.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.116.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/consumer/consumererror v0.116.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/consumer/xconsumer v0.116.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/pdata/pprofile v0.116.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/pipeline v0.116.1-0.20241220212031-7c2639723f67 // indirect - go.opentelemetry.io/collector/receiver/xreceiver v0.116.1-0.20241220212031-7c2639723f67 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.117.0 // indirect + go.opentelemetry.io/collector/consumer/consumererror v0.117.0 // indirect + go.opentelemetry.io/collector/consumer/xconsumer v0.117.0 // indirect + go.opentelemetry.io/collector/pdata/pprofile v0.117.0 // indirect + go.opentelemetry.io/collector/pipeline v0.117.0 // indirect + go.opentelemetry.io/collector/receiver/xreceiver v0.117.0 // indirect + go.opentelemetry.io/collector/scraper/scraperhelper v0.117.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.33.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect @@ -100,8 +101,8 @@ require ( golang.org/x/sys v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 // indirect - google.golang.org/grpc v1.69.0 // indirect - google.golang.org/protobuf v1.36.0 // indirect + google.golang.org/grpc v1.69.2 // indirect + google.golang.org/protobuf v1.36.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/receiver/valkeyreceiver/go.sum b/receiver/valkeyreceiver/go.sum index ca73b4bf66cb..c5f55d1405bd 100644 --- a/receiver/valkeyreceiver/go.sum +++ b/receiver/valkeyreceiver/go.sum @@ -140,46 +140,48 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/collector/component v0.116.1-0.20241220212031-7c2639723f67 h1:yQp5VcaPVHSGbwbDUspEThk7w6k6GzyYH2E8mGxdOQk= -go.opentelemetry.io/collector/component v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:HRkdqOVYd5eUNJISfwLt1a+EXP3rCdceDjqOJAifQnQ= -go.opentelemetry.io/collector/component/componenttest v0.116.1-0.20241220212031-7c2639723f67 h1:jvaFLY4LxAOiiSM2nqd+r4S6CoJwj5F+9zqa+qFjDn4= -go.opentelemetry.io/collector/component/componenttest v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:CkLEiU14Gru21AKrpFhGCg3CqmrfzSTLFuIKfSfd/xc= +go.opentelemetry.io/collector/component v0.117.0 h1:A3Im4PqLyfduAdVyUgbOZdUs7J/USegdpnkoIAOuN3Y= +go.opentelemetry.io/collector/component v0.117.0/go.mod h1:+SxJgeMwNV6y3aKNR2sP0PfovcUlRwC0+pEv4tTYdXA= +go.opentelemetry.io/collector/component/componenttest v0.117.0 h1:r3k0BsU/cJlqVQRtgFjxfduNEGaM2qCAU7JitIGkRds= +go.opentelemetry.io/collector/component/componenttest v0.117.0/go.mod h1:MoBWSGb3KwGc5FAIO+htez/QWK2uqJ4fnbEnfHB384c= go.opentelemetry.io/collector/config/confignet v1.22.1-0.20241220212031-7c2639723f67 h1:yTeR2OSVcmZ+mTUtwVIVjWUsLtr4ZpQyzNwjCwLqxN8= go.opentelemetry.io/collector/config/confignet v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:ZppUH1hgUJOubawEsxsQ9MzEYFytqo2GnVSS7d4CVxc= go.opentelemetry.io/collector/config/configopaque v1.22.1-0.20241220212031-7c2639723f67 h1:3MHaSS/9aLxgo8p2xuq3dZshIAHT92BWoH04f5xiaLA= go.opentelemetry.io/collector/config/configopaque v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:sW0t0iI/VfRL9VYX7Ik6XzVgPcR+Y5kejTLsYcMyDWs= -go.opentelemetry.io/collector/config/configtelemetry v0.116.1-0.20241220212031-7c2639723f67 h1:LSVqRWyoDbaNgvzmNkuT2rUd3HOpCAi7Cs0HUpRvU10= -go.opentelemetry.io/collector/config/configtelemetry v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:SlBEwQg0qly75rXZ6W1Ig8jN25KBVBkFIIAUI1GiAAE= +go.opentelemetry.io/collector/config/configtelemetry v0.117.0 h1:xsMfc89VByIF2fJzWuxs/2eqy44DWfNBAysReG4TAr8= +go.opentelemetry.io/collector/config/configtelemetry v0.117.0/go.mod h1:SlBEwQg0qly75rXZ6W1Ig8jN25KBVBkFIIAUI1GiAAE= go.opentelemetry.io/collector/config/configtls v1.22.1-0.20241220212031-7c2639723f67 h1:PWYn7OGB1oE1x5t/cfEq9DplzAehjL/UjPJrgon3dEo= go.opentelemetry.io/collector/config/configtls v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:CYFyMvbf10EoWhoFG8EYyxzFy4jcIPGIRMc8/HWLNQM= go.opentelemetry.io/collector/confmap v1.22.1-0.20241220212031-7c2639723f67 h1:aH9/KGWNM5vN0sSYJZWSPl1BQAMtoqiy2V+ZMWt8MuE= go.opentelemetry.io/collector/confmap v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:Rrhs+MWoaP6AswZp+ReQ2VO9dfOfcUjdjiSHBsG+nec= -go.opentelemetry.io/collector/consumer v1.22.1-0.20241220212031-7c2639723f67 h1:wTvxJ1LkX4ErBlYNUkeu/RdV2CpS+f9AINtvPcezbMo= -go.opentelemetry.io/collector/consumer v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:SXd1PETGjpCvR336mld7i+Nmq7srFENALfjeDKExgUE= -go.opentelemetry.io/collector/consumer/consumererror v0.116.1-0.20241220212031-7c2639723f67 h1:+wgtyKttv71S2iGATEHvcdClpsP8anNaB50D8CtrhbY= -go.opentelemetry.io/collector/consumer/consumererror v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:wOAV90zpjQg7B8WWb3T+PAfn4erRI1UnYhEQaCMTOaA= -go.opentelemetry.io/collector/consumer/consumertest v0.116.1-0.20241220212031-7c2639723f67 h1:35Wb/srRsTFaN1S1F53LQAQbXJHpl3O6WxmVRDUqXas= -go.opentelemetry.io/collector/consumer/consumertest v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:zznGaqot2BQUObyTnjILTBserFaV0OBBh6O3atyBhv0= -go.opentelemetry.io/collector/consumer/xconsumer v0.116.1-0.20241220212031-7c2639723f67 h1:UdNGjbmh33rj7Sim1Snl5KtfYCuQUz54rbF8jzVnyo4= -go.opentelemetry.io/collector/consumer/xconsumer v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:8RKit/X7qLXEIsaeUFucuj9NgeBtIum8aSq19Ij4iI0= +go.opentelemetry.io/collector/consumer v1.23.0 h1:JT0nE1vikL5yIk97IHBGzwx8co3w1WsAd3GFEl8r9XA= +go.opentelemetry.io/collector/consumer v1.23.0/go.mod h1:8d0uQ6gq64LbPktV4sc888lRj1cQCmrdl13hRIEURgA= +go.opentelemetry.io/collector/consumer/consumererror v0.117.0 h1:PPIZCcYZcENnyIrpRV4ERvMUoPSTV0zIP0QPzJvz80g= +go.opentelemetry.io/collector/consumer/consumererror v0.117.0/go.mod h1:L47xOVC+Vzos8350j3SWtU43w7rzms6UDhb6IrFxymY= +go.opentelemetry.io/collector/consumer/consumertest v0.117.0 h1:9WFyyjLudvfJDEuUaGsQyNRd1m6D1iRg8Iyg3xliFko= +go.opentelemetry.io/collector/consumer/consumertest v0.117.0/go.mod h1:B7A+OS76QKAzM8W7cmvlfVynFELj9Sa444hSm1SILFw= +go.opentelemetry.io/collector/consumer/xconsumer v0.117.0 h1:vsBNJGaEbYqgMU3PEsOcqjMxX5ul++Cxda44sttoi8c= +go.opentelemetry.io/collector/consumer/xconsumer v0.117.0/go.mod h1:dTr+Tms53lRLvR3OAzYic0yhcwldhTUdVIwJNSDmBmw= go.opentelemetry.io/collector/filter v0.116.1-0.20241220212031-7c2639723f67 h1:7qNlquetAVJCuCXEUv+GF9e7tSX+aFmxURP2Po7NWWI= go.opentelemetry.io/collector/filter v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:GoLxnSI6uE6QzmGOaiz0mkgirbQpj2A2Nb18bTKv5gI= -go.opentelemetry.io/collector/pdata v1.22.1-0.20241220212031-7c2639723f67 h1:qJ2VnulbhUdJhcHAqsQsbdxyPyskTGghL18m2EYo1Ws= -go.opentelemetry.io/collector/pdata v1.22.1-0.20241220212031-7c2639723f67/go.mod h1:u3EKrLq8yiwlpVNKpucpcDUqdl6RquaOqo3jXiN7jtg= -go.opentelemetry.io/collector/pdata/pprofile v0.116.1-0.20241220212031-7c2639723f67 h1:BE8oNrfh2cvembF8+QDHayf94zKD1jc8v1n57n2nUjU= -go.opentelemetry.io/collector/pdata/pprofile v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:7/n2x/hdz00grs4NtJWRsPwzbqdkQSj0UfyJF5u41bs= -go.opentelemetry.io/collector/pdata/testdata v0.116.0 h1:zmn1zpeX2BvzL6vt2dBF4OuAyFF2ml/OXcqflNgFiP0= -go.opentelemetry.io/collector/pdata/testdata v0.116.0/go.mod h1:ytWzICFN4XTDP6o65B4+Ed52JGdqgk9B8CpLHCeCpMo= -go.opentelemetry.io/collector/pipeline v0.116.1-0.20241220212031-7c2639723f67 h1:FVxoHfNfgHZ8gxdqvSOopWq7xrsHXOu6PYdPeyJtY10= -go.opentelemetry.io/collector/pipeline v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:qE3DmoB05AW0C3lmPvdxZqd/H4po84NPzd5MrqgtL74= -go.opentelemetry.io/collector/receiver v0.116.1-0.20241220212031-7c2639723f67 h1:vI94xzkxabk9PHq5BGlM2YgciZ6ncJVdB2/d7JNV2ws= -go.opentelemetry.io/collector/receiver v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:Yed4BYEfcF9lqKbozFfuutvGtwIzmj1xDZ/M9su78pw= -go.opentelemetry.io/collector/receiver/receivertest v0.116.1-0.20241220212031-7c2639723f67 h1:TDyCd9SA/RZDQeaZXxbQN/g+1hjXXqUyK9H6Ge2iX2Y= -go.opentelemetry.io/collector/receiver/receivertest v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:B2EVj9VPLn484MngVq/53+XRv2fFBa/kXL3K2aum5pc= -go.opentelemetry.io/collector/receiver/xreceiver v0.116.1-0.20241220212031-7c2639723f67 h1:bSP9NT4CF6Jw0PHtL3tsVt2/HoS00hHRhVIyxG6t2kY= -go.opentelemetry.io/collector/receiver/xreceiver v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:TzpQxAe+ZDfYjkww0L0lVoJ17pnieUOR4KHRk0shXYM= -go.opentelemetry.io/collector/scraper v0.116.1-0.20241220212031-7c2639723f67 h1:ZO6cGA0v76qsfy2jcQhZoYnLBxOt18OHliZEQNbCCpI= -go.opentelemetry.io/collector/scraper v0.116.1-0.20241220212031-7c2639723f67/go.mod h1:dzcUpTlfqLFepOpCzuQEJW5Omvg+bVxi5jwSLO2nNs4= +go.opentelemetry.io/collector/pdata v1.23.0 h1:tEk0dkfB8RdSukoOMfEa8duB938gfZowdfRkrJxGDrw= +go.opentelemetry.io/collector/pdata v1.23.0/go.mod h1:I2jggpBMiO8A+7TXhzNpcJZkJtvi1cU0iVNIi+6bc+o= +go.opentelemetry.io/collector/pdata/pprofile v0.117.0 h1:AyOK+rkNGeawmLGUqF84wYks22BSGJtEV++3YSfvD1I= +go.opentelemetry.io/collector/pdata/pprofile v0.117.0/go.mod h1:eh7TLIkLrSI79/R3RL+sZsKpLS0k+83WntucPtXC5Ak= +go.opentelemetry.io/collector/pdata/testdata v0.117.0 h1:ainpacShKHaDkPK6lcvgJ0aPKYUD/E3+I0gYJZleedo= +go.opentelemetry.io/collector/pdata/testdata v0.117.0/go.mod h1:LZAymmRKHQEqJqJUSO15rej3+V1rNRyBMF5mWCKCMBY= +go.opentelemetry.io/collector/pipeline v0.117.0 h1:CSv0Dd3n9AQNQ73e7PdEkgexkSMRZliKATxkoZKUFcY= +go.opentelemetry.io/collector/pipeline v0.117.0/go.mod h1:qE3DmoB05AW0C3lmPvdxZqd/H4po84NPzd5MrqgtL74= +go.opentelemetry.io/collector/receiver v0.117.0 h1:jm+b2G2IKKwGE213lB9cviKEdeATvYtNSY1kO0XdpMM= +go.opentelemetry.io/collector/receiver v0.117.0/go.mod h1:fZXigB3afp54OE+ogPcup/RPwI7j+CwZh9Mz6ObB/Cg= +go.opentelemetry.io/collector/receiver/receivertest v0.117.0 h1:aN4zOuWsiARa+RG9f89JyIrJbx5wsQ71Y0giiHsO1z8= +go.opentelemetry.io/collector/receiver/receivertest v0.117.0/go.mod h1:1wnGEowDmlO89feq1P+b4tQI2G/+iJxRrMallw7zeJE= +go.opentelemetry.io/collector/receiver/xreceiver v0.117.0 h1:HJjBj6P3/WQoYaRKZkWZHnUUCVFpBieqGKzKHcT6HUw= +go.opentelemetry.io/collector/receiver/xreceiver v0.117.0/go.mod h1:K1qMjIiAg6i3vHA+/EpM8nkhna3uIgoEellE2yuhz7A= +go.opentelemetry.io/collector/scraper v0.117.0 h1:FFBM6Pzc3L0sTronrceanvqxT74Nurbi8usUSImexJ0= +go.opentelemetry.io/collector/scraper v0.117.0/go.mod h1:6dM+85+aNPWfu63H+m8ZZutxDYCrWVXJ1yylR0jB9kA= +go.opentelemetry.io/collector/scraper/scraperhelper v0.117.0 h1:jyQ7cdanR541XKSryExBNYKZVvVw27Sos1Rb88Sf/II= +go.opentelemetry.io/collector/scraper/scraperhelper v0.117.0/go.mod h1:zt7M+HIlYJHdnFC5smM8AaczZevVHYkaG1yjnq26/i8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= @@ -253,10 +255,10 @@ google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697 h1: google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697/go.mod h1:+D9ySVjN8nY8YCVjc5O7PZDIdZporIDY3KaGfJunh88= google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 h1:LWZqQOEjDyONlF1H6afSWpAL/znlREo2tHfLoe+8LMA= google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= -google.golang.org/grpc v1.69.0 h1:quSiOM1GJPmPH5XtU+BCoVXcDVJJAzNcoyfC2cCjGkI= -google.golang.org/grpc v1.69.0/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= -google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ= -google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU= +google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= +google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU= +google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/receiver/valkeyreceiver/receiver_test.go b/receiver/valkeyreceiver/receiver_test.go index 5266b11a5fd4..142207a3510f 100644 --- a/receiver/valkeyreceiver/receiver_test.go +++ b/receiver/valkeyreceiver/receiver_test.go @@ -17,12 +17,12 @@ import ( ) //go:embed testdata/all-metrics/raw_info.txt -var raw_info string +var rawInfo string type mockClient struct{} func (mockClient) retrieveInfo(context.Context) (map[string]string, error) { - return parseRawDataMap(raw_info) + return parseRawDataMap(rawInfo) } func (mockClient) close() error {