From c45865527157c58d071f85432159798990c5fafe Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Wed, 28 Feb 2024 11:45:05 +0100 Subject: [PATCH 1/5] feat(sumologicexporter): sync internal package with Sumo Logic repository Signed-off-by: Dominik Rosiek --- .../internal/observability/observability.go | 137 +++++++++++++ .../observability/observability_test.go | 188 ++++++++++++++++++ 2 files changed, 325 insertions(+) create mode 100644 exporter/sumologicexporter/internal/observability/observability.go create mode 100644 exporter/sumologicexporter/internal/observability/observability_test.go diff --git a/exporter/sumologicexporter/internal/observability/observability.go b/exporter/sumologicexporter/internal/observability/observability.go new file mode 100644 index 000000000000..6076bfe713fb --- /dev/null +++ b/exporter/sumologicexporter/internal/observability/observability.go @@ -0,0 +1,137 @@ +// Copyright 2022 Sumo Logic, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package observability + +import ( + "context" + "fmt" + "time" + + "go.opencensus.io/stats" + "go.opencensus.io/stats/view" + "go.opencensus.io/tag" +) + +func init() { + err := view.Register( + viewRequestsSent, + viewRequestsDuration, + viewRequestsBytes, + viewRequestsRecords, + ) + if err != nil { + fmt.Printf("Failed to register sumologic exporter's views: %v\n", err) + } +} + +var ( + mRequestsSent = stats.Int64("exporter/requests/sent", "Number of requests", "1") + mRequestsDuration = stats.Int64("exporter/requests/duration", "Duration of HTTP requests (in milliseconds)", "0") + mRequestsBytes = stats.Int64("exporter/requests/bytes", "Total size of requests (in bytes)", "0") + mRequestsRecords = stats.Int64("exporter/requests/records", "Total size of requests (in number of records)", "0") + + statusKey, _ = tag.NewKey("status_code") // nolint:errcheck + endpointKey, _ = tag.NewKey("endpoint") // nolint:errcheck + pipelineKey, _ = tag.NewKey("pipeline") // nolint:errcheck + exporterKey, _ = tag.NewKey("exporter") // nolint:errcheck +) + +var viewRequestsSent = &view.View{ + Name: mRequestsSent.Name(), + Description: mRequestsSent.Description(), + Measure: mRequestsSent, + TagKeys: []tag.Key{statusKey, endpointKey, pipelineKey, exporterKey}, + Aggregation: view.Count(), +} + +var viewRequestsDuration = &view.View{ + Name: mRequestsDuration.Name(), + Description: mRequestsDuration.Description(), + Measure: mRequestsDuration, + TagKeys: []tag.Key{statusKey, endpointKey, pipelineKey, exporterKey}, + Aggregation: view.Sum(), +} + +var viewRequestsBytes = &view.View{ + Name: mRequestsBytes.Name(), + Description: mRequestsBytes.Description(), + Measure: mRequestsBytes, + TagKeys: []tag.Key{statusKey, endpointKey, pipelineKey, exporterKey}, + Aggregation: view.Sum(), +} + +var viewRequestsRecords = &view.View{ + Name: mRequestsRecords.Name(), + Description: mRequestsRecords.Description(), + Measure: mRequestsRecords, + TagKeys: []tag.Key{statusKey, endpointKey, pipelineKey, exporterKey}, + Aggregation: view.Sum(), +} + +// RecordRequestsSent increments the metric that records sent requests +func RecordRequestsSent(statusCode int, endpoint string, pipeline string, exporter string) error { + return stats.RecordWithTags( + context.Background(), + []tag.Mutator{ + tag.Insert(statusKey, fmt.Sprint(statusCode)), + tag.Insert(endpointKey, endpoint), + tag.Insert(pipelineKey, pipeline), + tag.Insert(exporterKey, exporter), + }, + mRequestsSent.M(int64(1)), + ) +} + +// RecordRequestsDuration update metric which records request duration +func RecordRequestsDuration(duration time.Duration, statusCode int, endpoint string, pipeline string, exporter string) error { + return stats.RecordWithTags( + context.Background(), + []tag.Mutator{ + tag.Insert(statusKey, fmt.Sprint(statusCode)), + tag.Insert(endpointKey, endpoint), + tag.Insert(pipelineKey, pipeline), + tag.Insert(exporterKey, exporter), + }, + mRequestsDuration.M(duration.Milliseconds()), + ) +} + +// RecordRequestsBytes update metric which records number of send bytes +func RecordRequestsBytes(bytes int64, statusCode int, endpoint string, pipeline string, exporter string) error { + return stats.RecordWithTags( + context.Background(), + []tag.Mutator{ + tag.Insert(statusKey, fmt.Sprint(statusCode)), + tag.Insert(endpointKey, endpoint), + tag.Insert(pipelineKey, pipeline), + tag.Insert(exporterKey, exporter), + }, + mRequestsBytes.M(bytes), + ) +} + +// RecordRequestsRecords update metric which records number of sent records +func RecordRequestsRecords(records int64, statusCode int, endpoint string, pipeline string, exporter string) error { + return stats.RecordWithTags( + context.Background(), + []tag.Mutator{ + tag.Insert(statusKey, fmt.Sprint(statusCode)), + tag.Insert(endpointKey, endpoint), + tag.Insert(pipelineKey, pipeline), + tag.Insert(exporterKey, exporter), + }, + mRequestsRecords.M(records), + ) +} diff --git a/exporter/sumologicexporter/internal/observability/observability_test.go b/exporter/sumologicexporter/internal/observability/observability_test.go new file mode 100644 index 000000000000..f3e6849b831a --- /dev/null +++ b/exporter/sumologicexporter/internal/observability/observability_test.go @@ -0,0 +1,188 @@ +// Copyright 2020 OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package observability + +import ( + "context" + "sort" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "go.opencensus.io/metric/metricdata" + "go.opencensus.io/metric/metricexport" +) + +type exporter struct { + pipe chan *metricdata.Metric +} + +func newExporter() *exporter { + return &exporter{ + make(chan *metricdata.Metric), + } +} + +// Run goroutine which is going to receive `after` metrics. +// Goroutine is writing to returned chan +func (e *exporter) ReturnAfter(after int) chan []*metricdata.Metric { + ch := make(chan []*metricdata.Metric) + go func() { + received := []*metricdata.Metric{} + for m := range e.pipe { + received = append(received, m) + if len(received) >= after { + break + } + } + ch <- received + }() + return ch +} + +// Write received metrics to data channel +func (e *exporter) ExportMetrics(ctx context.Context, data []*metricdata.Metric) error { + for _, m := range data { + e.pipe <- m + } + return nil +} + +// Creates metrics reader and forward metrics from it to chData +// Sens empty structs to fail chan afterwards +func metricReader(chData chan []*metricdata.Metric, fail chan struct{}, count int) { + + // Add a manual retry mechanism in case there's a hiccup reading the + // metrics from producers in ReadAndExport(): we can wait for the metrics + // to come instead of failing because they didn't come right away. + for i := 0; i < 10; i++ { + e := newExporter() + ch := e.ReturnAfter(count) + go metricexport.NewReader().ReadAndExport(e) + + select { + case <-time.After(500 * time.Millisecond): + + case data := <-ch: + chData <- data + return + } + } + + fail <- struct{}{} +} + +// NOTE: +// This test can only be run with -count 1 because of static +// metricproducer.GlobalManager() used in metricexport.NewReader(). +func TestMetrics(t *testing.T) { + const ( + statusCode = 200 + endpoint = "some/uri" + pipeline = "metrics" + exporter = "sumologic/my-name" + bytesFunc = "bytes" + recordsFunc = "records" + durationFunc = "duration" + sentFunc = "sent" + ) + type testCase struct { + name string + bytes int64 + records int64 + recordFunc string + duration time.Duration + } + tests := []testCase{ + { + name: "exporter/requests/sent", + recordFunc: sentFunc, + }, + { + name: "exporter/requests/duration", + recordFunc: durationFunc, + duration: time.Millisecond, + }, + { + name: "exporter/requests/bytes", + recordFunc: bytesFunc, + bytes: 1, + }, + { + name: "exporter/requests/records", + recordFunc: recordsFunc, + records: 1, + }, + } + + var ( + fail = make(chan struct{}) + chData = make(chan []*metricdata.Metric) + ) + + go metricReader(chData, fail, len(tests)) + + for _, tt := range tests { + switch tt.recordFunc { + case sentFunc: + require.NoError(t, RecordRequestsSent(statusCode, endpoint, pipeline, exporter)) + case durationFunc: + require.NoError(t, RecordRequestsDuration(tt.duration, statusCode, endpoint, pipeline, exporter)) + case bytesFunc: + require.NoError(t, RecordRequestsBytes(tt.bytes, statusCode, endpoint, pipeline, exporter)) + case recordsFunc: + require.NoError(t, RecordRequestsRecords(tt.records, statusCode, endpoint, pipeline, exporter)) + } + } + + var data []*metricdata.Metric + select { + case <-fail: + t.Fatalf("timedout waiting for metrics to arrive") + case data = <-chData: + } + + sort.Slice(tests, func(i, j int) bool { + return tests[i].name < tests[j].name + }) + + sort.Slice(data, func(i, j int) bool { + return data[i].Descriptor.Name < data[j].Descriptor.Name + }) + + for i, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + require.Len(t, data, len(tests)) + d := data[i] + assert.Equal(t, tt.name, d.Descriptor.Name, "Expected %v at index %v, but got %v.", tt.name, i, d.Descriptor.Name) + require.Len(t, d.TimeSeries, 1) + require.Len(t, d.TimeSeries[0].Points, 1) + assert.Equal(t, d.TimeSeries[0].Points[0].Value, int64(1)) + + require.Len(t, d.TimeSeries[0].LabelValues, 4) + + require.True(t, d.TimeSeries[0].LabelValues[0].Present) + require.True(t, d.TimeSeries[0].LabelValues[1].Present) + require.True(t, d.TimeSeries[0].LabelValues[2].Present) + require.True(t, d.TimeSeries[0].LabelValues[3].Present) + + assert.Equal(t, d.TimeSeries[0].LabelValues[0].Value, "some/uri") + assert.Equal(t, d.TimeSeries[0].LabelValues[1].Value, "sumologic/my-name") + assert.Equal(t, d.TimeSeries[0].LabelValues[2].Value, "metrics") + assert.Equal(t, d.TimeSeries[0].LabelValues[3].Value, "200") + }) + } +} From 809c2da6de852bf4d72a71a570c51bf48e973d6a Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Wed, 28 Feb 2024 11:54:17 +0100 Subject: [PATCH 2/5] chore: fix due to go test Signed-off-by: Dominik Rosiek --- exporter/sumologicexporter/go.mod | 2 + exporter/sumologicexporter/go.sum | 76 +++++++++++++++++++ .../internal/observability/observability.go | 17 +---- .../observability/observability_test.go | 19 +---- 4 files changed, 85 insertions(+), 29 deletions(-) diff --git a/exporter/sumologicexporter/go.mod b/exporter/sumologicexporter/go.mod index c08010455f13..65ef254e28cb 100644 --- a/exporter/sumologicexporter/go.mod +++ b/exporter/sumologicexporter/go.mod @@ -4,6 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 + go.opencensus.io v0.24.0 go.opentelemetry.io/collector/component v0.96.1-0.20240305232712-5a68058e0e3a go.opentelemetry.io/collector/config/confighttp v0.96.1-0.20240305232712-5a68058e0e3a go.opentelemetry.io/collector/config/configretry v0.96.1-0.20240305232712-5a68058e0e3a @@ -26,6 +27,7 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/hashicorp/go-version v1.6.0 // indirect diff --git a/exporter/sumologicexporter/go.sum b/exporter/sumologicexporter/go.sum index 7fdf1528c611..8546a8ae2591 100644 --- a/exporter/sumologicexporter/go.sum +++ b/exporter/sumologicexporter/go.sum @@ -1,12 +1,21 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= @@ -20,15 +29,35 @@ github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 h1:TQcrn6Wq+sKGkpyPvppOz99zsM github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= @@ -60,6 +89,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.0 h1:k1v3CzpSRUTrKMppY35TLwPvxHqBu0bYgxZzqGIgaos= github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8= github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE= @@ -71,11 +101,18 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo= github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +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.96.1-0.20240305232712-5a68058e0e3a h1:Q+xft9nvig8Qd8/vfmnCj7n2pCJBujCN7SBhliRaBpo= go.opentelemetry.io/collector v0.96.1-0.20240305232712-5a68058e0e3a/go.mod h1:BIhfobl2CIS7CfkJmFThY3z61PgQjZB5gnWImEaRi/k= go.opentelemetry.io/collector/component v0.96.1-0.20240305232712-5a68058e0e3a h1:T3AlPGKU93PO/nU7INHzs/XMeFKVrCnQVr8cEaqnSa4= @@ -135,17 +172,30 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -156,6 +206,10 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -163,10 +217,29 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM= google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= @@ -174,5 +247,8 @@ google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHh 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= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/exporter/sumologicexporter/internal/observability/observability.go b/exporter/sumologicexporter/internal/observability/observability.go index 6076bfe713fb..6bdffa919842 100644 --- a/exporter/sumologicexporter/internal/observability/observability.go +++ b/exporter/sumologicexporter/internal/observability/observability.go @@ -1,18 +1,7 @@ -// Copyright 2022 Sumo Logic, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 -package observability +package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/observability" import ( "context" diff --git a/exporter/sumologicexporter/internal/observability/observability_test.go b/exporter/sumologicexporter/internal/observability/observability_test.go index f3e6849b831a..435b51bac509 100644 --- a/exporter/sumologicexporter/internal/observability/observability_test.go +++ b/exporter/sumologicexporter/internal/observability/observability_test.go @@ -1,18 +1,7 @@ -// Copyright 2020 OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package observability +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/observability" import ( "context" From c50e8b315e34e0442c45b52aa47bb0a7dbc7b13d Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Wed, 28 Feb 2024 12:03:34 +0100 Subject: [PATCH 3/5] chore: fix due to porto check Signed-off-by: Dominik Rosiek --- .../sumologicexporter/internal/observability/observability.go | 2 +- .../internal/observability/observability_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/sumologicexporter/internal/observability/observability.go b/exporter/sumologicexporter/internal/observability/observability.go index 6bdffa919842..8476713bd2c7 100644 --- a/exporter/sumologicexporter/internal/observability/observability.go +++ b/exporter/sumologicexporter/internal/observability/observability.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/observability" +package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/internal/observability" import ( "context" diff --git a/exporter/sumologicexporter/internal/observability/observability_test.go b/exporter/sumologicexporter/internal/observability/observability_test.go index 435b51bac509..545958b84a1d 100644 --- a/exporter/sumologicexporter/internal/observability/observability_test.go +++ b/exporter/sumologicexporter/internal/observability/observability_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/observability" +package observability // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter/internal/observability" import ( "context" From 0c3ecb85ae0abc76a16a4a6ef7e62ecf8f2e5c3b Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Wed, 28 Feb 2024 12:13:52 +0100 Subject: [PATCH 4/5] chore: fix due to lint check Signed-off-by: Dominik Rosiek --- .../internal/observability/observability_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/internal/observability/observability_test.go b/exporter/sumologicexporter/internal/observability/observability_test.go index 545958b84a1d..321394115ac8 100644 --- a/exporter/sumologicexporter/internal/observability/observability_test.go +++ b/exporter/sumologicexporter/internal/observability/observability_test.go @@ -43,7 +43,7 @@ func (e *exporter) ReturnAfter(after int) chan []*metricdata.Metric { } // Write received metrics to data channel -func (e *exporter) ExportMetrics(ctx context.Context, data []*metricdata.Metric) error { +func (e *exporter) ExportMetrics(_ context.Context, data []*metricdata.Metric) error { for _, m := range data { e.pipe <- m } From 63c8e5c697dba9989442b94a68d796a6e5513d87 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Wed, 20 Mar 2024 09:11:39 +0100 Subject: [PATCH 5/5] chore: fix go.mod Signed-off-by: Dominik Rosiek --- exporter/sumologicexporter/go.mod | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/exporter/sumologicexporter/go.mod b/exporter/sumologicexporter/go.mod index f579fd6dd684..d270fd7d1c70 100644 --- a/exporter/sumologicexporter/go.mod +++ b/exporter/sumologicexporter/go.mod @@ -5,13 +5,13 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/config/confighttp v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/config/configretry v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/confmap v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/consumer v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/exporter v0.96.1-0.20240305232712-5a68058e0e3a - go.opentelemetry.io/collector/pdata v1.3.1-0.20240305230428-621d8669ec4c + go.opentelemetry.io/collector/component v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/config/confighttp v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/config/configretry v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/confmap v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/consumer v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/exporter v0.96.1-0.20240315172937-3b5aee0c7a16 + go.opentelemetry.io/collector/pdata v1.3.1-0.20240315172937-3b5aee0c7a16 go.opentelemetry.io/otel/metric v1.24.0 go.opentelemetry.io/otel/trace v1.24.0 )