From b6b344e707f6a880af2dfa51e7f4bf3270aebeb4 Mon Sep 17 00:00:00 2001 From: Ian Adams Date: Thu, 21 Nov 2024 14:35:37 -0500 Subject: [PATCH 1/4] Update modules to v1.66.0 --- cmd/plugindocgen/go.mod | 2 +- docs/development.md | 26 +++----- exporter/chronicleexporter/go.mod | 2 +- exporter/chronicleforwarderexporter/go.mod | 2 +- exporter/qradar/go.mod | 2 +- extension/bindplaneextension/go.mod | 2 +- go.mod | 64 +++++++++---------- internal/rehydration/go.mod | 2 +- processor/datapointcountprocessor/go.mod | 6 +- processor/logcountprocessor/go.mod | 6 +- processor/metricextractprocessor/go.mod | 4 +- processor/samplingprocessor/go.mod | 2 +- processor/snapshotprocessor/go.mod | 2 +- processor/spancountprocessor/go.mod | 6 +- .../throughputmeasurementprocessor/go.mod | 2 +- receiver/awss3rehydrationreceiver/go.mod | 2 +- receiver/azureblobrehydrationreceiver/go.mod | 2 +- updater/go.mod | 2 +- 18 files changed, 63 insertions(+), 73 deletions(-) diff --git a/cmd/plugindocgen/go.mod b/cmd/plugindocgen/go.mod index b39826171..21e841279 100644 --- a/cmd/plugindocgen/go.mod +++ b/cmd/plugindocgen/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/plugindocgen go 1.22.7 require ( - github.com/observiq/bindplane-agent/receiver/pluginreceiver v1.65.0 + github.com/observiq/bindplane-agent/receiver/pluginreceiver v1.66.0 github.com/spf13/pflag v1.0.5 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/docs/development.md b/docs/development.md index d9498b064..ac2777341 100644 --- a/docs/development.md +++ b/docs/development.md @@ -33,9 +33,9 @@ The steps are as follows: ./scripts/update-otel.sh {COLLECTOR_VERSION} {CONTRIB_VERSION} {PDATA_VERSION} ``` Grab the different versions from OTEL's GitHub by checking the latest release versions of [collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib) and the [collector](https://github.com/open-telemetry/opentelemetry-collector). They should be the same. - The pdata version can be found by checking which version of it is imported in the collector-contrib [go.mod file](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/go.mod). The specific line with the pdata version should look similar to - ``` - go.opentelemetry.io/collector/pdata v1.0.0 // indirect + The pdata version can be found by checking the latest release notes of the collector in a header with {PDATA_VERSION}/{COLLECTOR_VERSION}. All three version arguments should include the v - an example run of the script would look like this: + ```sh + ./scripts/update-otel.sh v0.114.0 v0.114.0 v1.20.0 ``` 2. Run `make tidy` @@ -46,25 +46,15 @@ The steps are as follows: ``` These should be the same versions used in the first step. -4. Update the `mdatagen` package in the `install-tools` command in the Makefile to now point to the same version as collector-contrib. - - Specifically, this line is the one to update: - ``` - .PHONY: install-tools - install-tools: - ... - go install github.com/open-telemetry/opentelemetry-collector-contrib/cmd/mdatagen@v0.90.1 - ``` - -5. Run `make install-tools` +4. Run `make install-tools` -6. Run `make generate` +5. Run `make generate` -7. Run `make tidy` +6. Run `make tidy` -8. Run `make ci-checks` +7. Run `make ci-checks` -If all was successful, the repo has had it's OTEL dependencies updated to the latest version. +If all was successful, the repo has had its OTEL dependencies updated to the latest version. There is potential for tests to fail, deprecation issues, code changes, or a variety of other problems to arise, but once the above steps are successful the repo can be updated. diff --git a/exporter/chronicleexporter/go.mod b/exporter/chronicleexporter/go.mod index a7f8c9f29..f3fa47301 100644 --- a/exporter/chronicleexporter/go.mod +++ b/exporter/chronicleexporter/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 - github.com/observiq/bindplane-agent/expr v1.65.0 + github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/shirou/gopsutil/v3 v3.24.5 github.com/stretchr/testify v1.9.0 diff --git a/exporter/chronicleforwarderexporter/go.mod b/exporter/chronicleforwarderexporter/go.mod index 23fb7cb7d..56c912756 100644 --- a/exporter/chronicleforwarderexporter/go.mod +++ b/exporter/chronicleforwarderexporter/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/exporter/chronicleforwarderexporter go 1.22.7 require ( - github.com/observiq/bindplane-agent/expr v1.65.0 + github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/exporter/qradar/go.mod b/exporter/qradar/go.mod index 6364789c5..095083d26 100644 --- a/exporter/qradar/go.mod +++ b/exporter/qradar/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/exporter/qradar go 1.22.7 require ( - github.com/observiq/bindplane-agent/expr v1.65.0 + github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/extension/bindplaneextension/go.mod b/extension/bindplaneextension/go.mod index 10af49d9b..f23e52de7 100644 --- a/extension/bindplaneextension/go.mod +++ b/extension/bindplaneextension/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/golang/snappy v0.0.4 - github.com/observiq/bindplane-agent/internal/measurements v1.65.0 + github.com/observiq/bindplane-agent/internal/measurements v1.66.0 github.com/open-telemetry/opamp-go v0.17.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/opampcustommessages v0.114.0 github.com/stretchr/testify v1.9.0 diff --git a/go.mod b/go.mod index c1966a7d9..7905e3dc2 100644 --- a/go.mod +++ b/go.mod @@ -4,36 +4,36 @@ go 1.22.7 require ( github.com/google/uuid v1.6.0 - github.com/observiq/bindplane-agent/exporter/azureblobexporter v1.65.0 - github.com/observiq/bindplane-agent/exporter/chronicleexporter v1.65.0 - github.com/observiq/bindplane-agent/exporter/chronicleforwarderexporter v1.65.0 - github.com/observiq/bindplane-agent/exporter/googlecloudexporter v1.65.0 - github.com/observiq/bindplane-agent/exporter/googlemanagedprometheusexporter v1.65.0 - github.com/observiq/bindplane-agent/exporter/qradar v1.65.0 - github.com/observiq/bindplane-agent/exporter/snowflakeexporter v1.65.0 - github.com/observiq/bindplane-agent/internal/measurements v1.65.0 - github.com/observiq/bindplane-agent/internal/report v1.65.0 - github.com/observiq/bindplane-agent/packagestate v1.65.0 - github.com/observiq/bindplane-agent/processor/datapointcountprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/logcountprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/lookupprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/maskprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/metricextractprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/metricstatsprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/removeemptyvaluesprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/resourceattributetransposerprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/samplingprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/spancountprocessor v1.65.0 - github.com/observiq/bindplane-agent/processor/throughputmeasurementprocessor v1.65.0 - github.com/observiq/bindplane-agent/receiver/awss3rehydrationreceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/azureblobrehydrationreceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/httpreceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/m365receiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/oktareceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/pluginreceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/routereceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/sapnetweaverreceiver v1.65.0 - github.com/observiq/bindplane-agent/receiver/telemetrygeneratorreceiver v1.65.0 + github.com/observiq/bindplane-agent/exporter/azureblobexporter v1.66.0 + github.com/observiq/bindplane-agent/exporter/chronicleexporter v1.66.0 + github.com/observiq/bindplane-agent/exporter/chronicleforwarderexporter v1.66.0 + github.com/observiq/bindplane-agent/exporter/googlecloudexporter v1.66.0 + github.com/observiq/bindplane-agent/exporter/googlemanagedprometheusexporter v1.66.0 + github.com/observiq/bindplane-agent/exporter/qradar v1.66.0 + github.com/observiq/bindplane-agent/exporter/snowflakeexporter v1.66.0 + github.com/observiq/bindplane-agent/internal/measurements v1.66.0 + github.com/observiq/bindplane-agent/internal/report v1.66.0 + github.com/observiq/bindplane-agent/packagestate v1.66.0 + github.com/observiq/bindplane-agent/processor/datapointcountprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/logcountprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/lookupprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/maskprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/metricextractprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/metricstatsprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/removeemptyvaluesprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/resourceattributetransposerprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/samplingprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/spancountprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/throughputmeasurementprocessor v1.66.0 + github.com/observiq/bindplane-agent/receiver/awss3rehydrationreceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/azureblobrehydrationreceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/httpreceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/m365receiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/oktareceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/pluginreceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/sapnetweaverreceiver v1.66.0 + github.com/observiq/bindplane-agent/receiver/telemetrygeneratorreceiver v1.66.0 github.com/oklog/ulid/v2 v2.1.0 github.com/open-telemetry/opamp-go v0.17.0 github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector v0.114.0 @@ -360,8 +360,8 @@ require ( github.com/mitchellh/go-ps v1.0.0 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect - github.com/observiq/bindplane-agent/counter v1.65.0 // indirect - github.com/observiq/bindplane-agent/expr v1.65.0 // indirect + github.com/observiq/bindplane-agent/counter v1.66.0 // indirect + github.com/observiq/bindplane-agent/expr v1.66.0 // indirect github.com/observiq/bindplane-agent/internal/rehydration v1.62.0 // indirect github.com/okta/okta-sdk-golang/v2 v2.20.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter v0.114.0 // indirect diff --git a/internal/rehydration/go.mod b/internal/rehydration/go.mod index b0f0640d3..66ff82424 100644 --- a/internal/rehydration/go.mod +++ b/internal/rehydration/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/internal/rehydration go 1.22.7 require ( - github.com/observiq/bindplane-agent/internal/testutils v1.65.0 + github.com/observiq/bindplane-agent/internal/testutils v1.66.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 diff --git a/processor/datapointcountprocessor/go.mod b/processor/datapointcountprocessor/go.mod index 92e2e885e..605885f43 100644 --- a/processor/datapointcountprocessor/go.mod +++ b/processor/datapointcountprocessor/go.mod @@ -3,9 +3,9 @@ module github.com/observiq/bindplane-agent/processor/datapointcountprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/counter v1.65.0 - github.com/observiq/bindplane-agent/expr v1.65.0 - github.com/observiq/bindplane-agent/receiver/routereceiver v1.65.0 + github.com/observiq/bindplane-agent/counter v1.66.0 + github.com/observiq/bindplane-agent/expr v1.66.0 + github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/processor/logcountprocessor/go.mod b/processor/logcountprocessor/go.mod index 128adda7b..15dcd4de2 100644 --- a/processor/logcountprocessor/go.mod +++ b/processor/logcountprocessor/go.mod @@ -3,9 +3,9 @@ module github.com/observiq/bindplane-agent/processor/logcountprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/counter v1.65.0 - github.com/observiq/bindplane-agent/expr v1.65.0 - github.com/observiq/bindplane-agent/receiver/routereceiver v1.65.0 + github.com/observiq/bindplane-agent/counter v1.66.0 + github.com/observiq/bindplane-agent/expr v1.66.0 + github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/processor/metricextractprocessor/go.mod b/processor/metricextractprocessor/go.mod index 259fee1c9..bce219d62 100644 --- a/processor/metricextractprocessor/go.mod +++ b/processor/metricextractprocessor/go.mod @@ -3,8 +3,8 @@ module github.com/observiq/bindplane-agent/processor/metricextractprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/expr v1.65.0 - github.com/observiq/bindplane-agent/receiver/routereceiver v1.65.0 + github.com/observiq/bindplane-agent/expr v1.66.0 + github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 github.com/stretchr/testify v1.9.0 diff --git a/processor/samplingprocessor/go.mod b/processor/samplingprocessor/go.mod index 1eeeacfc1..246c6e69a 100644 --- a/processor/samplingprocessor/go.mod +++ b/processor/samplingprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/samplingprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/expr v1.65.0 + github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/processor/snapshotprocessor/go.mod b/processor/snapshotprocessor/go.mod index 3e748723e..c8306a9b9 100644 --- a/processor/snapshotprocessor/go.mod +++ b/processor/snapshotprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/snapshotprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/internal/report v1.65.0 + github.com/observiq/bindplane-agent/internal/report v1.66.0 github.com/open-telemetry/opamp-go v0.15.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/opampcustommessages v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 diff --git a/processor/spancountprocessor/go.mod b/processor/spancountprocessor/go.mod index dffcc8961..4bf494f9b 100644 --- a/processor/spancountprocessor/go.mod +++ b/processor/spancountprocessor/go.mod @@ -3,9 +3,9 @@ module github.com/observiq/bindplane-agent/processor/spancountprocessor go 1.22.7 require ( - github.com/observiq/bindplane-agent/counter v1.65.0 - github.com/observiq/bindplane-agent/expr v1.65.0 - github.com/observiq/bindplane-agent/receiver/routereceiver v1.65.0 + github.com/observiq/bindplane-agent/counter v1.66.0 + github.com/observiq/bindplane-agent/expr v1.66.0 + github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 diff --git a/processor/throughputmeasurementprocessor/go.mod b/processor/throughputmeasurementprocessor/go.mod index 9d0db62b9..764572547 100644 --- a/processor/throughputmeasurementprocessor/go.mod +++ b/processor/throughputmeasurementprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/throughputmeasurementproces go 1.22.7 require ( - github.com/observiq/bindplane-agent/internal/measurements v1.65.0 + github.com/observiq/bindplane-agent/internal/measurements v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 github.com/stretchr/testify v1.9.0 diff --git a/receiver/awss3rehydrationreceiver/go.mod b/receiver/awss3rehydrationreceiver/go.mod index 674de376b..9418baa76 100644 --- a/receiver/awss3rehydrationreceiver/go.mod +++ b/receiver/awss3rehydrationreceiver/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 github.com/observiq/bindplane-agent/internal/rehydration v1.62.0 - github.com/observiq/bindplane-agent/internal/testutils v1.65.0 + github.com/observiq/bindplane-agent/internal/testutils v1.66.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 diff --git a/receiver/azureblobrehydrationreceiver/go.mod b/receiver/azureblobrehydrationreceiver/go.mod index 754b8190c..dd334b391 100644 --- a/receiver/azureblobrehydrationreceiver/go.mod +++ b/receiver/azureblobrehydrationreceiver/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.5.0 github.com/observiq/bindplane-agent/internal/rehydration v1.62.0 - github.com/observiq/bindplane-agent/internal/testutils v1.65.0 + github.com/observiq/bindplane-agent/internal/testutils v1.66.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 diff --git a/updater/go.mod b/updater/go.mod index 9e3dc56b4..8291a0bc9 100644 --- a/updater/go.mod +++ b/updater/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 - github.com/observiq/bindplane-agent/packagestate v1.65.0 + github.com/observiq/bindplane-agent/packagestate v1.66.0 github.com/open-telemetry/opamp-go v0.9.0 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.9.0 From 3b25deadac31a92480c31c347cacebdb960bc09a Mon Sep 17 00:00:00 2001 From: Justin Voss <90650155+justinianvoss22@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:11:49 -0500 Subject: [PATCH 2/4] fix: secops processor works with https protocol (#2020) works with https --- exporter/chronicleexporter/marshal.go | 76 +++++++- exporter/chronicleexporter/marshal_test.go | 212 ++++++++++++++++++++- 2 files changed, 279 insertions(+), 9 deletions(-) diff --git a/exporter/chronicleexporter/marshal.go b/exporter/chronicleexporter/marshal.go index b4ca34ffd..7963b6c2c 100644 --- a/exporter/chronicleexporter/marshal.go +++ b/exporter/chronicleexporter/marshal.go @@ -163,18 +163,26 @@ func (m *protoMarshaler) processLogRecord(ctx context.Context, logRecord plog.Lo return rawLog, logType, namespace, ingestionLabels, nil } -func (m *protoMarshaler) processHTTPLogRecord(ctx context.Context, logRecord plog.LogRecord, scope plog.ScopeLogs, resource plog.ResourceLogs) (string, string, error) { +func (m *protoMarshaler) processHTTPLogRecord(ctx context.Context, logRecord plog.LogRecord, scope plog.ScopeLogs, resource plog.ResourceLogs) (string, string, string, map[string]*api.Log_LogLabel, error) { rawLog, err := m.getRawLog(ctx, logRecord, scope, resource) if err != nil { - return "", "", err + return "", "", "", nil, err } logType, err := m.getLogType(ctx, logRecord, scope, resource) if err != nil { - return "", "", err + return "", "", "", nil, err + } + namespace, err := m.getNamespace(ctx, logRecord, scope, resource) + if err != nil { + return "", "", "", nil, err + } + ingestionLabels, err := m.getHTTPIngestionLabels(logRecord) + if err != nil { + return "", "", "", nil, err } - return rawLog, logType, nil + return rawLog, logType, namespace, ingestionLabels, nil } func (m *protoMarshaler) getRawLog(ctx context.Context, logRecord plog.LogRecord, scope plog.ScopeLogs, resource plog.ResourceLogs) (string, error) { @@ -239,6 +247,7 @@ func (m *protoMarshaler) getIngestionLabels(logRecord plog.LogRecord) ([]*api.La if err != nil { return []*api.Label{}, fmt.Errorf("get chronicle ingestion labels: %w", err) } + if len(ingestionLabels) != 0 { return ingestionLabels, nil } @@ -253,6 +262,27 @@ func (m *protoMarshaler) getIngestionLabels(logRecord plog.LogRecord) ([]*api.La return configLabels, nil } +func (m *protoMarshaler) getHTTPIngestionLabels(logRecord plog.LogRecord) (map[string]*api.Log_LogLabel, error) { + // Check for labels in attributes["chronicle_ingestion_labels"] + ingestionLabels, err := m.getHTTPRawNestedFields(chronicleIngestionLabelsPrefix, logRecord) + if err != nil { + return nil, fmt.Errorf("get chronicle ingestion labels: %w", err) + } + + if len(ingestionLabels) != 0 { + return ingestionLabels, nil + } + + // use labels defined in the config if needed + configLabels := make(map[string]*api.Log_LogLabel) + for key, value := range m.cfg.IngestionLabels { + configLabels[key] = &api.Log_LogLabel{ + Value: value, + } + } + return configLabels, nil +} + func (m *protoMarshaler) getRawField(ctx context.Context, field string, logRecord plog.LogRecord, scope plog.ScopeLogs, resource plog.ResourceLogs) (string, error) { switch field { case "body": @@ -344,6 +374,34 @@ func (m *protoMarshaler) getRawNestedFields(field string, logRecord plog.LogReco return nestedFields, nil } +func (m *protoMarshaler) getHTTPRawNestedFields(field string, logRecord plog.LogRecord) (map[string]*api.Log_LogLabel, error) { + nestedFields := make(map[string]*api.Log_LogLabel) // Map with key as string and value as Log_LogLabel + logRecord.Attributes().Range(func(key string, value pcommon.Value) bool { + if !strings.HasPrefix(key, field) { + return true + } + // Extract the key name from the nested field + cleanKey := strings.Trim(key[len(field):], `[]"`) + var jsonMap map[string]string + + // If needs to be parsed as JSON + if err := json.Unmarshal([]byte(value.AsString()), &jsonMap); err == nil { + for k, v := range jsonMap { + nestedFields[k] = &api.Log_LogLabel{ + Value: v, + } + } + } else { + nestedFields[cleanKey] = &api.Log_LogLabel{ + Value: value.AsString(), + } + } + return true + }) + + return nestedFields, nil +} + func (m *protoMarshaler) constructPayloads(rawLogs map[string][]*api.LogEntry, namespaceMap map[string]string, ingestionLabelsMap map[string][]*api.Label) []*api.BatchCreateLogsRequest { payloads := make([]*api.BatchCreateLogsRequest, 0, len(rawLogs)) for logType, entries := range rawLogs { @@ -387,7 +445,7 @@ func (m *protoMarshaler) extractRawHTTPLogs(ctx context.Context, ld plog.Logs) ( scopeLog := resourceLog.ScopeLogs().At(j) for k := 0; k < scopeLog.LogRecords().Len(); k++ { logRecord := scopeLog.LogRecords().At(k) - rawLog, logType, err := m.processHTTPLogRecord(ctx, logRecord, scopeLog, resourceLog) + rawLog, logType, namespace, ingestionLabels, err := m.processHTTPLogRecord(ctx, logRecord, scopeLog, resourceLog) if err != nil { m.teleSettings.Logger.Error("Error processing log record", zap.Error(err)) continue @@ -405,9 +463,11 @@ func (m *protoMarshaler) extractRawHTTPLogs(ctx context.Context, ld plog.Logs) ( } entry := &api.Log{ - LogEntryTime: timestamppb.New(timestamp), - CollectionTime: timestamppb.New(logRecord.ObservedTimestamp().AsTime()), - Data: []byte(rawLog), + LogEntryTime: timestamppb.New(timestamp), + CollectionTime: timestamppb.New(logRecord.ObservedTimestamp().AsTime()), + Data: []byte(rawLog), + EnvironmentNamespace: namespace, + Labels: ingestionLabels, } entries[logType] = append(entries[logType], entry) } diff --git a/exporter/chronicleexporter/marshal_test.go b/exporter/chronicleexporter/marshal_test.go index 0416e6def..fb5694239 100644 --- a/exporter/chronicleexporter/marshal_test.go +++ b/exporter/chronicleexporter/marshal_test.go @@ -462,7 +462,6 @@ func TestProtoMarshaler_MarshalRawLogsForHTTP(t *testing.T) { cfg: Config{ CustomerID: uuid.New().String(), LogType: "WINEVTLOG", - IngestionLabels: map[string]string{`chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}, RawLogField: "attributes", OverrideLogType: false, }, @@ -495,6 +494,217 @@ func TestProtoMarshaler_MarshalRawLogsForHTTP(t *testing.T) { require.Len(t, requests, 0, "Expected no requests due to no log records") }, }, + { + name: "No log type set in config or attributes", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "WINEVTLOG", + RawLogField: "attributes", + OverrideLogType: false, + }, + labels: []*api.Label{}, + logRecords: func() plog.Logs { + return mockLogs(mockLogRecord("", map[string]any{"key1": "value1", "log_type": "WINEVTLOG", "namespace": "test", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"})) + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + require.Len(t, requests, 1) + logs := requests["WINEVTLOG"].GetInlineSource().Logs + // Assuming the attributes are marshaled into the Data field as a JSON string + expectedData := `{"key1":"value1", "log_type":"WINEVTLOG", "namespace":"test", "chronicle_ingestion_label[\"key1\"]": "value1", "chronicle_ingestion_label[\"key2\"]": "value2"}` + actualData := string(logs[0].Data) + require.JSONEq(t, expectedData, actualData, "Log attributes should match expected") + }, + }, + { + name: "Multiple log records with duplicate data, no log type in attributes", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "WINEVTLOG", + RawLogField: "body", + OverrideLogType: false, + }, + logRecords: func() plog.Logs { + logs := plog.NewLogs() + record1 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record1.Body().SetStr("First log message") + record1.Attributes().FromRaw(map[string]any{"chronicle_namespace": "test1", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + record2 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record2.Body().SetStr("Second log message") + record2.Attributes().FromRaw(map[string]any{"chronicle_namespace": "test1", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + return logs + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + // verify one request for log type in config + require.Len(t, requests, 1, "Expected a single batch request") + logs := requests["WINEVTLOG"].GetInlineSource().Logs + // verify batch source labels + require.Len(t, logs[0].Labels, 2) + require.Len(t, logs, 2, "Expected two log entries in the batch") + // Verifying the first log entry data + require.Equal(t, "First log message", string(logs[0].Data)) + // Verifying the second log entry data + require.Equal(t, "Second log message", string(logs[1].Data)) + }, + }, + { + name: "Multiple log records with different data, no log type in attributes", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "WINEVTLOG", + RawLogField: "body", + OverrideLogType: false, + }, + logRecords: func() plog.Logs { + logs := plog.NewLogs() + record1 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record1.Body().SetStr("First log message") + record1.Attributes().FromRaw(map[string]any{`chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + record2 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record2.Body().SetStr("Second log message") + record2.Attributes().FromRaw(map[string]any{`chronicle_ingestion_label["key3"]`: "value3", `chronicle_ingestion_label["key4"]`: "value4"}) + return logs + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + // verify one request for one log type + require.Len(t, requests, 1, "Expected a single batch request") + logs := requests["WINEVTLOG"].GetInlineSource().Logs + require.Len(t, logs, 2, "Expected two log entries in the batch") + require.Equal(t, "", logs[0].EnvironmentNamespace) + // verify batch source labels + require.Len(t, logs[0].Labels, 2) + require.Len(t, logs[1].Labels, 2) + // Verifying the first log entry data + require.Equal(t, "First log message", string(logs[0].Data)) + // Verifying the second log entry data + require.Equal(t, "Second log message", string(logs[1].Data)) + }, + }, + { + name: "Override log type with attribute", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "DEFAULT", // This should be overridden by the log_type attribute + RawLogField: "body", + OverrideLogType: true, + }, + logRecords: func() plog.Logs { + return mockLogs(mockLogRecord("Log with overridden type", map[string]any{"log_type": "windows_event.application", "namespace": "test", `ingestion_label["realkey1"]`: "realvalue1", `ingestion_label["realkey2"]`: "realvalue2"})) + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + require.Len(t, requests, 1) + logs := requests["WINEVTLOG"].GetInlineSource().Logs + require.NotEqual(t, len(logs), 0) + }, + }, + { + name: "Override log type with chronicle attribute", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "DEFAULT", // This should be overridden by the chronicle_log_type attribute + RawLogField: "body", + OverrideLogType: true, + }, + logRecords: func() plog.Logs { + return mockLogs(mockLogRecord("Log with overridden type", map[string]any{"chronicle_log_type": "ASOC_ALERT", "chronicle_namespace": "test", `chronicle_ingestion_label["realkey1"]`: "realvalue1", `chronicle_ingestion_label["realkey2"]`: "realvalue2"})) + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + require.Len(t, requests, 1) + logs := requests["ASOC_ALERT"].GetInlineSource().Logs + require.Equal(t, "test", logs[0].EnvironmentNamespace, "Expected namespace to be overridden by attribute") + expectedLabels := map[string]string{ + "realkey1": "realvalue1", + "realkey2": "realvalue2", + } + for key, label := range logs[0].Labels { + require.Equal(t, expectedLabels[key], label.Value, "Expected ingestion label to be overridden by attribute") + } + }, + }, + { + name: "Multiple log records with duplicate data, log type in attributes", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "WINEVTLOG", + RawLogField: "body", + OverrideLogType: false, + }, + logRecords: func() plog.Logs { + logs := plog.NewLogs() + record1 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record1.Body().SetStr("First log message") + record1.Attributes().FromRaw(map[string]any{"chronicle_log_type": "WINEVTLOGS", "chronicle_namespace": "test1", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + + record2 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record2.Body().SetStr("Second log message") + record2.Attributes().FromRaw(map[string]any{"chronicle_log_type": "WINEVTLOGS", "chronicle_namespace": "test1", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + return logs + }, + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + // verify 1 request, 2 batches for same log type + require.Len(t, requests, 1, "Expected a single batch request") + logs := requests["WINEVTLOGS"].GetInlineSource().Logs + require.Len(t, logs, 2, "Expected two log entries in the batch") + // verify variables + require.Equal(t, "test1", logs[0].EnvironmentNamespace) + require.Len(t, logs[0].Labels, 2) + expectedLabels := map[string]string{ + "key1": "value1", + "key2": "value2", + } + for key, label := range logs[0].Labels { + require.Equal(t, expectedLabels[key], label.Value, "Expected ingestion label to be overridden by attribute") + } + }, + }, + { + name: "Multiple log records with different data, log type in attributes", + cfg: Config{ + CustomerID: uuid.New().String(), + LogType: "WINEVTLOG", + RawLogField: "body", + OverrideLogType: false, + }, + logRecords: func() plog.Logs { + logs := plog.NewLogs() + record1 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record1.Body().SetStr("First log message") + record1.Attributes().FromRaw(map[string]any{"chronicle_log_type": "WINEVTLOGS1", "chronicle_namespace": "test1", `chronicle_ingestion_label["key1"]`: "value1", `chronicle_ingestion_label["key2"]`: "value2"}) + + record2 := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + record2.Body().SetStr("Second log message") + record2.Attributes().FromRaw(map[string]any{"chronicle_log_type": "WINEVTLOGS2", "chronicle_namespace": "test2", `chronicle_ingestion_label["key3"]`: "value3", `chronicle_ingestion_label["key4"]`: "value4"}) + return logs + }, + + expectations: func(t *testing.T, requests map[string]*api.ImportLogsRequest) { + expectedLabels := map[string]string{ + "key1": "value1", + "key2": "value2", + "key3": "value3", + "key4": "value4", + } + // verify 2 requests, with 1 batch for different log types + require.Len(t, requests, 2, "Expected a two batch request") + + logs1 := requests["WINEVTLOGS1"].GetInlineSource().Logs + require.Len(t, logs1, 1, "Expected one log entries in the batch") + // verify variables for first log + require.Equal(t, logs1[0].EnvironmentNamespace, "test1") + require.Len(t, logs1[0].Labels, 2) + for key, label := range logs1[0].Labels { + require.Equal(t, expectedLabels[key], label.Value, "Expected ingestion label to be overridden by attribute") + } + + logs2 := requests["WINEVTLOGS2"].GetInlineSource().Logs + require.Len(t, logs2, 1, "Expected one log entries in the batch") + // verify variables for second log + require.Equal(t, logs2[0].EnvironmentNamespace, "test2") + require.Len(t, logs2[0].Labels, 2) + for key, label := range logs2[0].Labels { + require.Equal(t, expectedLabels[key], label.Value, "Expected ingestion label to be overridden by attribute") + } + }, + }, } for _, tt := range tests { From 97f5f27f0a0503a4f4aab96abba6fdfeaa4685eb Mon Sep 17 00:00:00 2001 From: Keith Schmitt <32067685+schmikei@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:34:59 -0500 Subject: [PATCH 3/4] feat: unroll processor (#2021) * unroll processor spike * Minimize copying and complexity (#2022) * minimal readme.md * make fmt * remove some of the otel-community specific things * add-licenses * Feat/unroll processor tests (#2024) Add golden test cases * don't update go version * some more test cases * remove some otel stuff and add some more tests * make add-licenses * reset go version update * update configuration parameter documentation * address feedback and add another test case encapsulating empty and byte slice --------- Co-authored-by: Daniel Jaglowski --- factories/processors.go | 2 + go.mod | 3 + processor/unrollprocessor/README.md | 124 ++++++++++++++++ processor/unrollprocessor/config.go | 43 ++++++ processor/unrollprocessor/config_test.go | 53 +++++++ processor/unrollprocessor/factory.go | 70 ++++++++++ processor/unrollprocessor/factory_test.go | 47 +++++++ processor/unrollprocessor/go.mod | 52 +++++++ processor/unrollprocessor/go.sum | 132 ++++++++++++++++++ processor/unrollprocessor/processor.go | 100 +++++++++++++ processor/unrollprocessor/processor_test.go | 112 +++++++++++++++ .../testdata/empty/expected.yaml | 28 ++++ .../unrollprocessor/testdata/empty/input.yaml | 14 ++ .../testdata/mixed_slice_types/expected.yaml | 73 ++++++++++ .../testdata/mixed_slice_types/input.yaml | 57 ++++++++ .../testdata/nop/expected.yaml | 16 +++ .../unrollprocessor/testdata/nop/input.yaml | 16 +++ .../testdata/recursive_false/expected.yaml | 22 +++ .../testdata/recursive_false/input.yaml | 19 +++ .../testdata/recursive_true/expected.yaml | 29 ++++ .../testdata/recursive_true/input.yaml | 19 +++ .../testdata/simple/expected.yaml | 121 ++++++++++++++++ .../testdata/simple/input.yaml | 97 +++++++++++++ .../testdata/some_not_slices/expected.yaml | 34 +++++ .../testdata/some_not_slices/input.yaml | 28 ++++ 25 files changed, 1311 insertions(+) create mode 100644 processor/unrollprocessor/README.md create mode 100644 processor/unrollprocessor/config.go create mode 100644 processor/unrollprocessor/config_test.go create mode 100644 processor/unrollprocessor/factory.go create mode 100644 processor/unrollprocessor/factory_test.go create mode 100644 processor/unrollprocessor/go.mod create mode 100644 processor/unrollprocessor/go.sum create mode 100644 processor/unrollprocessor/processor.go create mode 100644 processor/unrollprocessor/processor_test.go create mode 100644 processor/unrollprocessor/testdata/empty/expected.yaml create mode 100644 processor/unrollprocessor/testdata/empty/input.yaml create mode 100644 processor/unrollprocessor/testdata/mixed_slice_types/expected.yaml create mode 100644 processor/unrollprocessor/testdata/mixed_slice_types/input.yaml create mode 100644 processor/unrollprocessor/testdata/nop/expected.yaml create mode 100644 processor/unrollprocessor/testdata/nop/input.yaml create mode 100644 processor/unrollprocessor/testdata/recursive_false/expected.yaml create mode 100644 processor/unrollprocessor/testdata/recursive_false/input.yaml create mode 100644 processor/unrollprocessor/testdata/recursive_true/expected.yaml create mode 100644 processor/unrollprocessor/testdata/recursive_true/input.yaml create mode 100644 processor/unrollprocessor/testdata/simple/expected.yaml create mode 100644 processor/unrollprocessor/testdata/simple/input.yaml create mode 100644 processor/unrollprocessor/testdata/some_not_slices/expected.yaml create mode 100644 processor/unrollprocessor/testdata/some_not_slices/input.yaml diff --git a/factories/processors.go b/factories/processors.go index 4fb43a0f5..cde11368c 100644 --- a/factories/processors.go +++ b/factories/processors.go @@ -27,6 +27,7 @@ import ( "github.com/observiq/bindplane-agent/processor/samplingprocessor" "github.com/observiq/bindplane-agent/processor/spancountprocessor" "github.com/observiq/bindplane-agent/processor/throughputmeasurementprocessor" + "github.com/observiq/bindplane-agent/processor/unrollprocessor" "github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor" "github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor" "github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatorateprocessor" @@ -87,4 +88,5 @@ var defaultProcessors = []processor.Factory{ throughputmeasurementprocessor.NewFactory(), tailsamplingprocessor.NewFactory(), transformprocessor.NewFactory(), + unrollprocessor.NewFactory(), } diff --git a/go.mod b/go.mod index 7905e3dc2..ccc92e103 100644 --- a/go.mod +++ b/go.mod @@ -25,6 +25,7 @@ require ( github.com/observiq/bindplane-agent/processor/samplingprocessor v1.66.0 github.com/observiq/bindplane-agent/processor/spancountprocessor v1.66.0 github.com/observiq/bindplane-agent/processor/throughputmeasurementprocessor v1.66.0 + github.com/observiq/bindplane-agent/processor/unrollprocessor v1.66.0 github.com/observiq/bindplane-agent/receiver/awss3rehydrationreceiver v1.66.0 github.com/observiq/bindplane-agent/receiver/azureblobrehydrationreceiver v1.66.0 github.com/observiq/bindplane-agent/receiver/httpreceiver v1.66.0 @@ -853,6 +854,8 @@ replace github.com/observiq/bindplane-agent/processor/datapointcountprocessor => replace github.com/observiq/bindplane-agent/processor/lookupprocessor => ./processor/lookupprocessor +replace github.com/observiq/bindplane-agent/processor/unrollprocessor => ./processor/unrollprocessor + replace github.com/observiq/bindplane-agent/expr => ./expr replace github.com/observiq/bindplane-agent/counter => ./counter diff --git a/processor/unrollprocessor/README.md b/processor/unrollprocessor/README.md new file mode 100644 index 000000000..e2d2455f4 --- /dev/null +++ b/processor/unrollprocessor/README.md @@ -0,0 +1,124 @@ +# Unroll Processor + +This is an experimental processor that will take a log record with slice bodies and expand each element of the slice into its own log record within the slice. + +## Important Note + +This is an experimental processor and is expected that this functionality would eventually be moved to an [OTTL function](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl). + +## Supported pipelines + +- Logs + + +## How it works + +1. The user configures the `unroll` processor in their desired logs pipeline +2. Logs that go into this pipeline with a pcommon.Slice body will have each element of that body be expanded into its own log record + + +## Configuration +| Field | Type | Default | Description | +| --------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------- | +| field | string | body | note: body is currently the only available value for unrolling; making this configuration currently static | +| recursive | bool | false | whether to recursively unroll body slices of slices | + + +### Example configuration + +```yaml +unroll: + recursive: false +``` + + + +## How To + +### Split a log record into multiple via a delimiter: "," + +The following configuration utilizes the [transformprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor) to first split the original string body and then the unroll processor can create multiple events + +```yaml +receivers: + filelog: + include: [ ./test.txt ] + start_at: beginning +processors: + transform: + log_statements: + - context: log + statements: + - set(body, Split(body, ",")) + unroll: +exporters: + file: + path: ./test/output.json +service: + pipelines: + logs: + receivers: [filelog] + processors: [transform, unroll] + exporters: [file] +``` + +
+ Sample Data + +```txt +1,2,3 +``` + +```json +{ + "resourceLogs": [ + { + "resource": {}, + "scopeLogs": [ + { + "scope": {}, + "logRecords": [ + { + "observedTimeUnixNano": "1733240156591852000", + "body": { "stringValue": "1" }, + "attributes": [ + { + "key": "log.file.name", + "value": { "stringValue": "test.txt" } + }, + ], + "traceId": "", + "spanId": "" + }, + { + "observedTimeUnixNano": "1733240156591852000", + "body": { "stringValue": "2" }, + "attributes": [ + { + "key": "log.file.name", + "value": { "stringValue": "test.txt" } + }, + ], + "traceId": "", + "spanId": "" + }, + { + "observedTimeUnixNano": "1733240156591852000", + "body": { "stringValue": "3" }, + "attributes": [ + { + "key": "log.file.name", + "value": { "stringValue": "test.txt" } + }, + ], + "traceId": "", + "spanId": "" + } + ] + } + ] + } + ] +} +``` +
diff --git a/processor/unrollprocessor/config.go b/processor/unrollprocessor/config.go new file mode 100644 index 000000000..c0c5199b6 --- /dev/null +++ b/processor/unrollprocessor/config.go @@ -0,0 +1,43 @@ +// Copyright observIQ, 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 unrollprocessor contains the logic to unroll logs from a slice in the body field. +package unrollprocessor + +import ( + "errors" +) + +// Config is the configuration for the unroll processor. +type Config struct { + Field UnrollField `mapstructure:"field"` + Recursive bool `mapstructure:"recursive"` +} + +// UnrollField is the field to unroll. +type UnrollField string + +const ( + // UnrollFieldBody is the only supported field for unrolling logs. + UnrollFieldBody UnrollField = "body" +) + +// Validate checks the configuration for any issues. +func (c *Config) Validate() error { + if c.Field != UnrollFieldBody { + return errors.New("only unrolling logs from a body slice is currently supported") + } + + return nil +} diff --git a/processor/unrollprocessor/config_test.go b/processor/unrollprocessor/config_test.go new file mode 100644 index 000000000..96d783681 --- /dev/null +++ b/processor/unrollprocessor/config_test.go @@ -0,0 +1,53 @@ +// Copyright observIQ, 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 unrollprocessor + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestValidate(t *testing.T) { + + testCases := []struct { + desc string + cfg *Config + expectedErr string + }{ + { + desc: "valid config", + cfg: createDefaultConfig().(*Config), + }, + { + desc: "config without body field", + cfg: &Config{ + Field: "attributes", + }, + expectedErr: "only unrolling logs from a body slice is currently supported", + }, + } + + for _, tc := range testCases { + t.Run(tc.desc, func(t *testing.T) { + err := tc.cfg.Validate() + if tc.expectedErr != "" { + require.ErrorContains(t, err, tc.expectedErr) + } else { + require.NoError(t, err) + } + }) + } +} diff --git a/processor/unrollprocessor/factory.go b/processor/unrollprocessor/factory.go new file mode 100644 index 000000000..36d7aa616 --- /dev/null +++ b/processor/unrollprocessor/factory.go @@ -0,0 +1,70 @@ +// Copyright observIQ, 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 unrollprocessor // import "github.com/observiq/bindplane-agent/processor/unrollprocessor" + +import ( + "context" + "fmt" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/consumer" + "go.opentelemetry.io/collector/processor" + "go.opentelemetry.io/collector/processor/processorhelper" +) + +var processorCapabilities = consumer.Capabilities{MutatesData: true} + +// componentType is the value of the "type" key in configuration. +var componentType = component.MustNewType("unroll") + +const ( + stability = component.StabilityLevelAlpha +) + +// NewFactory returns a new factory for the Transform processor. +func NewFactory() processor.Factory { + return processor.NewFactory( + componentType, + createDefaultConfig, + processor.WithLogs(createLogsProcessor, stability), + ) +} + +func createDefaultConfig() component.Config { + return &Config{ + Field: UnrollFieldBody, + } +} + +func createLogsProcessor( + ctx context.Context, + set processor.Settings, + cfg component.Config, + nextConsumer consumer.Logs, +) (processor.Logs, error) { + oCfg := cfg.(*Config) + + proc, err := newUnrollProcessor(oCfg) + if err != nil { + return nil, fmt.Errorf("invalid config for \"unroll\" processor %w", err) + } + return processorhelper.NewLogs( + ctx, + set, + cfg, + nextConsumer, + proc.ProcessLogs, + processorhelper.WithCapabilities(processorCapabilities)) +} diff --git a/processor/unrollprocessor/factory_test.go b/processor/unrollprocessor/factory_test.go new file mode 100644 index 000000000..f0f11ba14 --- /dev/null +++ b/processor/unrollprocessor/factory_test.go @@ -0,0 +1,47 @@ +// Copyright observIQ, 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 unrollprocessor + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/consumer/consumertest" + "go.opentelemetry.io/collector/processor/processortest" +) + +func TestNewFactory(t *testing.T) { + factory := NewFactory() + require.Equal(t, componentType, factory.Type()) + + expectedCfg := &Config{ + Field: UnrollFieldBody, + } + + cfg, ok := factory.CreateDefaultConfig().(*Config) + require.True(t, ok) + require.Equal(t, expectedCfg, cfg) +} + +func TestBadFactory(t *testing.T) { + factory := NewFactory() + cfg := factory.CreateDefaultConfig().(*Config) + cfg.Field = "invalid" + + _, err := factory.CreateLogs(context.Background(), processortest.NewNopSettings(), cfg, &consumertest.LogsSink{}) + require.Error(t, err) + require.ErrorContains(t, err, "invalid config for \"unroll\" processor") +} diff --git a/processor/unrollprocessor/go.mod b/processor/unrollprocessor/go.mod new file mode 100644 index 000000000..5c5060d6e --- /dev/null +++ b/processor/unrollprocessor/go.mod @@ -0,0 +1,52 @@ +module github.com/observiq/bindplane-agent/processor/unrollprocessor + +go 1.22.7 + +require ( + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 + github.com/stretchr/testify v1.9.0 + go.opentelemetry.io/collector/component v0.114.0 + go.opentelemetry.io/collector/consumer v0.114.0 + go.opentelemetry.io/collector/consumer/consumertest v0.114.0 + go.opentelemetry.io/collector/pdata v1.20.0 + go.opentelemetry.io/collector/processor v0.114.0 + go.opentelemetry.io/collector/processor/processortest v0.114.0 +) + +require ( + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/go-logr/logr v1.4.2 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.114.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + go.opentelemetry.io/collector/component/componentstatus v0.114.0 // indirect + go.opentelemetry.io/collector/component/componenttest v0.114.0 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.114.0 // indirect + go.opentelemetry.io/collector/consumer/consumerprofiles v0.114.0 // indirect + go.opentelemetry.io/collector/pdata/pprofile v0.114.0 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.114.0 // indirect + go.opentelemetry.io/collector/pipeline v0.114.0 // indirect + go.opentelemetry.io/collector/processor/processorprofiles v0.114.0 // indirect + go.opentelemetry.io/otel v1.32.0 // indirect + go.opentelemetry.io/otel/metric v1.32.0 // indirect + go.opentelemetry.io/otel/sdk v1.32.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.32.0 // indirect + go.opentelemetry.io/otel/trace v1.32.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.27.0 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/sys v0.27.0 // indirect + golang.org/x/text v0.19.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect + google.golang.org/grpc v1.67.1 // indirect + google.golang.org/protobuf v1.35.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/processor/unrollprocessor/go.sum b/processor/unrollprocessor/go.sum new file mode 100644 index 000000000..e8c8de141 --- /dev/null +++ b/processor/unrollprocessor/go.sum @@ -0,0 +1,132 @@ +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +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/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +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.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 h1:SXi6JSSs2cWROnC1U2v3XysG3t58ilGUwoLqxpGuwFU= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0/go.mod h1:LSd6sus2Jvpg3M3vM4HgmVh3/dmMtcJmTqELrFOQFRg= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 h1:m8uPYU2rTj0sKiYgzCvIPajD3meiYsu+nX0hplUnlEU= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0/go.mod h1:P0BaP92pXPkTyTmObfLYUoRBfMYU+i0hdS3oM1DpGJo= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.114.0 h1:Qg80zPfNMlub7LO07VMDElOu3M2oxqdZgvvB+X72a4U= +github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.114.0/go.mod h1:5qsGcjFV3WFI6J2onAlkR7Xd/8VtwJcECaDRZfW4Tb4= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= +go.opentelemetry.io/collector/component v0.114.0/go.mod h1:MLxtjZ6UVHjDxSdhGLuJfHBHvfl1iT/Y7IaQPD24Eww= +go.opentelemetry.io/collector/component/componentstatus v0.114.0 h1:y9my/xink8KB5lK8zFAjgB2+pEh0QYy5TM972fxZY9w= +go.opentelemetry.io/collector/component/componentstatus v0.114.0/go.mod h1:RIoeCYZpPaae7QLE/1RacqzhHuXBmzRAk9H/EwYtIIs= +go.opentelemetry.io/collector/component/componenttest v0.114.0 h1:GM4FTTlfeXoVm6sZYBHImwlRN8ayh2oAfUhvaFj7Zo8= +go.opentelemetry.io/collector/component/componenttest v0.114.0/go.mod h1:ZZEJMtbJtoVC/3/9R1HzERq+cYQRxuMFQrPCpfZ4Xos= +go.opentelemetry.io/collector/config/configtelemetry v0.114.0 h1:kjLeyrumge6wsX6ZIkicdNOlBXaEyW2PI2ZdVXz/rzY= +go.opentelemetry.io/collector/config/configtelemetry v0.114.0/go.mod h1:R0MBUxjSMVMIhljuDHWIygzzJWQyZHXXWIgQNxcFwhc= +go.opentelemetry.io/collector/consumer v0.114.0 h1:1zVaHvfIZowGwZRitRBRo3i+RP2StlU+GClYiofSw0Q= +go.opentelemetry.io/collector/consumer v0.114.0/go.mod h1:d+Mrzt9hsH1ub3zmwSlnQVPLeTYir4Mgo7CrWfnncN4= +go.opentelemetry.io/collector/consumer/consumerprofiles v0.114.0 h1:5pXYy3E6UK5Huu3aQbsYL8B6E6MyWx4fvXXDn+oXZaA= +go.opentelemetry.io/collector/consumer/consumerprofiles v0.114.0/go.mod h1:PMq3f54KcJQO4v1tue0QxQScu7REFVADlXxXSAYMiN0= +go.opentelemetry.io/collector/consumer/consumertest v0.114.0 h1:isaTwJK5DOy8Bs7GuLq23ejfgj8gLIo5dOUvkRnLF4g= +go.opentelemetry.io/collector/consumer/consumertest v0.114.0/go.mod h1:GNeLPkfRPdh06n/Rv1UKa/cAtCKjN0a7ADyHjIj4HFE= +go.opentelemetry.io/collector/pdata v1.20.0 h1:ePcwt4bdtISP0loHaE+C9xYoU2ZkIvWv89Fob16o9SM= +go.opentelemetry.io/collector/pdata v1.20.0/go.mod h1:Ox1YVLe87cZDB/TL30i4SUz1cA5s6AM6SpFMfY61ICs= +go.opentelemetry.io/collector/pdata/pprofile v0.114.0 h1:pUNfTzsI/JUTiE+DScDM4lsrPoxnVNLI2fbTxR/oapo= +go.opentelemetry.io/collector/pdata/pprofile v0.114.0/go.mod h1:4aNcj6WM1n1uXyFSXlhVs4ibrERgNYsTbzcYI2zGhxA= +go.opentelemetry.io/collector/pdata/testdata v0.114.0 h1:+AzszWSL1i4K6meQ8rU0JDDW55SYCXa6FVqfDixhhTo= +go.opentelemetry.io/collector/pdata/testdata v0.114.0/go.mod h1:bv8XFdCTZxG2MQB5l9dKxSxf5zBrcodwO6JOy1+AxXM= +go.opentelemetry.io/collector/pipeline v0.114.0 h1:v3YOhc5z0tD6QbO5n/pnftpIeroihM2ks9Z2yKPCcwY= +go.opentelemetry.io/collector/pipeline v0.114.0/go.mod h1:4vOvjVsoYTHVGTbfFwqfnQOSV2K3RKUHofh3jNRc2Mg= +go.opentelemetry.io/collector/processor v0.114.0 h1:6bqQgLL7BtKrNv4YkEOGjZfkcfZv/ciJSQx1epGG9Zk= +go.opentelemetry.io/collector/processor v0.114.0/go.mod h1:DV/wa+nAmSHIDeD9NblPwkY9PbgtDQAZJ+PE5biZwPc= +go.opentelemetry.io/collector/processor/processorprofiles v0.114.0 h1:+P/1nLouEXTnN8DVQl+qWwO4BTkQyNPG9t/FrpUqrSI= +go.opentelemetry.io/collector/processor/processorprofiles v0.114.0/go.mod h1:3fuHeNIpINwx3bqFMprmDJyr6y5tWoWbJH599kltO5Y= +go.opentelemetry.io/collector/processor/processortest v0.114.0 h1:3FTaVXAp0LoVmUJn1ewBFckAby7AHa6/Kcdj0xuW14c= +go.opentelemetry.io/collector/processor/processortest v0.114.0/go.mod h1:OgsdOs1Fv5ZGTTJPF5nNIUJh2YkuV1acWd73yWgnti4= +go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U= +go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg= +go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M= +go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8= +go.opentelemetry.io/otel/sdk v1.32.0 h1:RNxepc9vK59A8XsgZQouW8ue8Gkb4jpWtJm9ge5lEG4= +go.opentelemetry.io/otel/sdk v1.32.0/go.mod h1:LqgegDBjKMmb2GC6/PrTnteJG39I8/vJCAP9LlJXEjU= +go.opentelemetry.io/otel/sdk/metric v1.32.0 h1:rZvFnvmvawYb0alrYkjraqJq0Z4ZUJAiyYCU9snn1CU= +go.opentelemetry.io/otel/sdk/metric v1.32.0/go.mod h1:PWeZlq0zt9YkYAp3gjKZ0eicRYvOh1Gd+X99x6GHpCQ= +go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM= +go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +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/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-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.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +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-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= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +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= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +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/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd h1:6TEm2ZxXoQmFWFlt1vNxvVOa1Q0dXFQD1m/rYjXmS0E= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/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= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/processor/unrollprocessor/processor.go b/processor/unrollprocessor/processor.go new file mode 100644 index 000000000..f065aae34 --- /dev/null +++ b/processor/unrollprocessor/processor.go @@ -0,0 +1,100 @@ +// Copyright observIQ, 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 unrollprocessor + +import ( + "context" + "fmt" + + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" +) + +type unrollProcessor struct { + cfg *Config +} + +// newUnrollProcessor returns a new unrollProcessor. +func newUnrollProcessor(config *Config) (*unrollProcessor, error) { + if err := config.Validate(); err != nil { + return nil, fmt.Errorf("invalid configuration: %w", err) + } + + return &unrollProcessor{ + cfg: config, + }, nil +} + +// ProcessLogs implements the processor interface +func (p *unrollProcessor) ProcessLogs(_ context.Context, ld plog.Logs) (plog.Logs, error) { + var errs error + for i := 0; i < ld.ResourceLogs().Len(); i++ { + rls := ld.ResourceLogs().At(i) + for j := 0; j < rls.ScopeLogs().Len(); j++ { + sls := rls.ScopeLogs().At(j) + origLen := sls.LogRecords().Len() + var last func() int + if p.cfg.Recursive { + last = sls.LogRecords().Len + } else { + last = func() int { return origLen } + } + for k := 0; k < last(); k++ { + lr := sls.LogRecords().At(k) + if lr.Body().Type() != pcommon.ValueTypeSlice { + continue + } + for l := 0; l < lr.Body().Slice().Len(); l++ { + newRecord := sls.LogRecords().AppendEmpty() + lr.CopyTo(newRecord) + p.setBody(newRecord, lr.Body().Slice().At(l)) + } + } + sls.LogRecords().RemoveIf(func(lr plog.LogRecord) bool { + if p.cfg.Recursive { + return lr.Body().Type() == pcommon.ValueTypeSlice + } + if origLen == 0 { + return false + } + origLen-- + return lr.Body().Type() == pcommon.ValueTypeSlice + }) + } + } + return ld, errs +} + +// setBody will set the body of the log record to the provided value +func (p *unrollProcessor) setBody(newLogRecord plog.LogRecord, expansion pcommon.Value) { + switch expansion.Type() { + case pcommon.ValueTypeStr: + newLogRecord.Body().SetStr(expansion.Str()) + case pcommon.ValueTypeInt: + newLogRecord.Body().SetInt(expansion.Int()) + case pcommon.ValueTypeDouble: + newLogRecord.Body().SetDouble(expansion.Double()) + case pcommon.ValueTypeBool: + newLogRecord.Body().SetBool(expansion.Bool()) + case pcommon.ValueTypeMap: + expansion.Map().CopyTo(newLogRecord.Body().SetEmptyMap()) + case pcommon.ValueTypeSlice: + expansion.Slice().CopyTo(newLogRecord.Body().SetEmptySlice()) + case pcommon.ValueTypeBytes: + expansion.Bytes().CopyTo(newLogRecord.Body().SetEmptyBytes()) + case pcommon.ValueTypeEmpty: + expansion.CopyTo(newLogRecord.Body()) + } +} diff --git a/processor/unrollprocessor/processor_test.go b/processor/unrollprocessor/processor_test.go new file mode 100644 index 000000000..78e0810ff --- /dev/null +++ b/processor/unrollprocessor/processor_test.go @@ -0,0 +1,112 @@ +// Copyright observIQ, 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 unrollprocessor + +import ( + "context" + "path/filepath" + "testing" + + "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden" + "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest/plogtest" + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/consumer/consumertest" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/processor/processortest" +) + +func BenchmarkUnroll(b *testing.B) { + unrollProcessor := &unrollProcessor{ + cfg: createDefaultConfig().(*Config), + } + testLogs := createTestResourceLogs() + + for n := 0; n < b.N; n++ { + unrollProcessor.ProcessLogs(context.Background(), testLogs) + } +} + +func TestInvalidConfig(t *testing.T) { + _, err := newUnrollProcessor(&Config{ + Field: "invalid", + Recursive: true, + }) + require.Error(t, err) +} + +func createTestResourceLogs() plog.Logs { + rl := plog.NewLogs() + for i := 0; i < 10; i++ { + resourceLog := rl.ResourceLogs().AppendEmpty() + for j := 0; j < 10; j++ { + scopeLogs := resourceLog.ScopeLogs().AppendEmpty() + scopeLogs.LogRecords().AppendEmpty().Body().SetEmptySlice().FromRaw([]any{1, 2, 3, 4, 5, 6, 7}) + } + } + return rl +} + +func TestProcessor(t *testing.T) { + for _, test := range []struct { + name string + recursive bool + }{ + { + name: "nop", + }, + { + name: "simple", + }, + { + name: "mixed_slice_types", + }, + { + name: "some_not_slices", + }, + { + name: "recursive_false", + }, + { + name: "recursive_true", + recursive: true, + }, + { + name: "empty", + }, + } { + t.Run(test.name, func(t *testing.T) { + input, err := golden.ReadLogs(filepath.Join("testdata", test.name, "input.yaml")) + require.NoError(t, err) + expected, err := golden.ReadLogs(filepath.Join("testdata", test.name, "expected.yaml")) + require.NoError(t, err) + + f := NewFactory() + cfg := f.CreateDefaultConfig().(*Config) + cfg.Recursive = test.recursive + set := processortest.NewNopSettings() + sink := &consumertest.LogsSink{} + p, err := f.CreateLogs(context.Background(), set, cfg, sink) + require.NoError(t, err) + + err = p.ConsumeLogs(context.Background(), input) + require.NoError(t, err) + + actual := sink.AllLogs() + require.Equal(t, 1, len(actual)) + + require.NoError(t, plogtest.CompareLogs(expected, actual[0])) + }) + } +} diff --git a/processor/unrollprocessor/testdata/empty/expected.yaml b/processor/unrollprocessor/testdata/empty/expected.yaml new file mode 100644 index 000000000..5bb334b5e --- /dev/null +++ b/processor/unrollprocessor/testdata/empty/expected.yaml @@ -0,0 +1,28 @@ +resourceLogs: + - resource: {} + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: {} + spanId: "" + traceId: "" + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + spanId: "" + traceId: "" + - attributes: + - key: recordName + value: + stringValue: recordA + body: + bytesValue: aGVsbG8gd29ybGQ= + spanId: "" + traceId: "" + scope: {} diff --git a/processor/unrollprocessor/testdata/empty/input.yaml b/processor/unrollprocessor/testdata/empty/input.yaml new file mode 100644 index 000000000..b11bc44d5 --- /dev/null +++ b/processor/unrollprocessor/testdata/empty/input.yaml @@ -0,0 +1,14 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - emptyValue: + - stringValue: value2 + - bytesValue: aGVsbG8gd29ybGQ= diff --git a/processor/unrollprocessor/testdata/mixed_slice_types/expected.yaml b/processor/unrollprocessor/testdata/mixed_slice_types/expected.yaml new file mode 100644 index 000000000..a111b370f --- /dev/null +++ b/processor/unrollprocessor/testdata/mixed_slice_types/expected.yaml @@ -0,0 +1,73 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: strings + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: strings + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: ints + body: + intValue: 1 + - attributes: + - key: recordName + value: + stringValue: ints + body: + intValue: 2 + - attributes: + - key: recordName + value: + stringValue: doubles + body: + doubleValue: 1.1 + - attributes: + - key: recordName + value: + stringValue: doubles + body: + doubleValue: 2.2 + - attributes: + - key: recordName + value: + stringValue: bools + body: + boolValue: true + - attributes: + - key: recordName + value: + stringValue: bools + body: + boolValue: false + - attributes: + - key: recordName + value: + stringValue: maps + body: + kvlistValue: + values: + - key: foo + value: + stringValue: bar + - attributes: + - key: recordName + value: + stringValue: maps + body: + kvlistValue: + values: + - key: hello + value: + stringValue: world + diff --git a/processor/unrollprocessor/testdata/mixed_slice_types/input.yaml b/processor/unrollprocessor/testdata/mixed_slice_types/input.yaml new file mode 100644 index 000000000..26c1823aa --- /dev/null +++ b/processor/unrollprocessor/testdata/mixed_slice_types/input.yaml @@ -0,0 +1,57 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: strings + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: ints + body: + arrayValue: + values: + - intValue: 1 + - intValue: 2 + - attributes: + - key: recordName + value: + stringValue: doubles + body: + arrayValue: + values: + - doubleValue: 1.1 + - doubleValue: 2.2 + - attributes: + - key: recordName + value: + stringValue: bools + body: + arrayValue: + values: + - boolValue: true + - boolValue: false + - attributes: + - key: recordName + value: + stringValue: maps + body: + arrayValue: + values: + - kvlistValue: + values: + - key: foo + value: + stringValue: bar + - kvlistValue: + values: + - key: hello + value: + stringValue: world diff --git a/processor/unrollprocessor/testdata/nop/expected.yaml b/processor/unrollprocessor/testdata/nop/expected.yaml new file mode 100644 index 000000000..7e2da488a --- /dev/null +++ b/processor/unrollprocessor/testdata/nop/expected.yaml @@ -0,0 +1,16 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 diff --git a/processor/unrollprocessor/testdata/nop/input.yaml b/processor/unrollprocessor/testdata/nop/input.yaml new file mode 100644 index 000000000..7e2da488a --- /dev/null +++ b/processor/unrollprocessor/testdata/nop/input.yaml @@ -0,0 +1,16 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 diff --git a/processor/unrollprocessor/testdata/recursive_false/expected.yaml b/processor/unrollprocessor/testdata/recursive_false/expected.yaml new file mode 100644 index 000000000..42243198f --- /dev/null +++ b/processor/unrollprocessor/testdata/recursive_false/expected.yaml @@ -0,0 +1,22 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: slices + body: + arrayValue: + values: + - stringValue: one + - stringValue: two + - attributes: + - key: recordName + value: + stringValue: slices + body: + arrayValue: + values: + - stringValue: three + - stringValue: four diff --git a/processor/unrollprocessor/testdata/recursive_false/input.yaml b/processor/unrollprocessor/testdata/recursive_false/input.yaml new file mode 100644 index 000000000..f7b018b5f --- /dev/null +++ b/processor/unrollprocessor/testdata/recursive_false/input.yaml @@ -0,0 +1,19 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: slices + body: + arrayValue: + values: + - arrayValue: + values: + - stringValue: one + - stringValue: two + - arrayValue: + values: + - stringValue: three + - stringValue: four diff --git a/processor/unrollprocessor/testdata/recursive_true/expected.yaml b/processor/unrollprocessor/testdata/recursive_true/expected.yaml new file mode 100644 index 000000000..f8f9a6e5d --- /dev/null +++ b/processor/unrollprocessor/testdata/recursive_true/expected.yaml @@ -0,0 +1,29 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: slices + body: + stringValue: one + - attributes: + - key: recordName + value: + stringValue: slices + body: + stringValue: two + - attributes: + - key: recordName + value: + stringValue: slices + body: + stringValue: three + - attributes: + - key: recordName + value: + stringValue: slices + body: + stringValue: four + diff --git a/processor/unrollprocessor/testdata/recursive_true/input.yaml b/processor/unrollprocessor/testdata/recursive_true/input.yaml new file mode 100644 index 000000000..f7b018b5f --- /dev/null +++ b/processor/unrollprocessor/testdata/recursive_true/input.yaml @@ -0,0 +1,19 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: slices + body: + arrayValue: + values: + - arrayValue: + values: + - stringValue: one + - stringValue: two + - arrayValue: + values: + - stringValue: three + - stringValue: four diff --git a/processor/unrollprocessor/testdata/simple/expected.yaml b/processor/unrollprocessor/testdata/simple/expected.yaml new file mode 100644 index 000000000..418a08d3e --- /dev/null +++ b/processor/unrollprocessor/testdata/simple/expected.yaml @@ -0,0 +1,121 @@ +resourceLogs: + - resource: + attributes: + - key: resourceName + value: + stringValue: resourceA + scopeLogs: + - scope: + name: scopeA + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value2 + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value2 + - resource: + attributes: + - key: resourceName + value: + stringValue: resourceA + scopeLogs: + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value2 + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value2 diff --git a/processor/unrollprocessor/testdata/simple/input.yaml b/processor/unrollprocessor/testdata/simple/input.yaml new file mode 100644 index 000000000..c5ca99eaa --- /dev/null +++ b/processor/unrollprocessor/testdata/simple/input.yaml @@ -0,0 +1,97 @@ +resourceLogs: + - resource: + attributes: + - key: resourceName + value: + stringValue: resourceA + scopeLogs: + - scope: + name: scopeA + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - resource: + attributes: + - key: resourceName + value: + stringValue: resourceA + scopeLogs: + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - scope: + name: scopeB + logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 diff --git a/processor/unrollprocessor/testdata/some_not_slices/expected.yaml b/processor/unrollprocessor/testdata/some_not_slices/expected.yaml new file mode 100644 index 000000000..583da7f2f --- /dev/null +++ b/processor/unrollprocessor/testdata/some_not_slices/expected.yaml @@ -0,0 +1,34 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordA + body: + stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordC + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordC + body: + stringValue: value2 diff --git a/processor/unrollprocessor/testdata/some_not_slices/input.yaml b/processor/unrollprocessor/testdata/some_not_slices/input.yaml new file mode 100644 index 000000000..c7380d858 --- /dev/null +++ b/processor/unrollprocessor/testdata/some_not_slices/input.yaml @@ -0,0 +1,28 @@ +resourceLogs: + - resource: + scopeLogs: + - logRecords: + - attributes: + - key: recordName + value: + stringValue: recordA + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 + - attributes: + - key: recordName + value: + stringValue: recordB + body: + stringValue: value1 + - attributes: + - key: recordName + value: + stringValue: recordC + body: + arrayValue: + values: + - stringValue: value1 + - stringValue: value2 From f5218093c8980430bc7d090e12490ce2b935436c Mon Sep 17 00:00:00 2001 From: Dakota Paasman <122491662+dpaasman00@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:04:57 -0500 Subject: [PATCH 4/4] deps: Dependabot 12-3-2024 (#2026) * bump stretchr/testify to v1.10.0 * bump google.golang.org/api to v0.209.0 --- cmd/plugindocgen/go.mod | 2 +- cmd/plugindocgen/go.sum | 4 ++-- counter/go.mod | 2 +- counter/go.sum | 4 ++-- exporter/azureblobexporter/go.mod | 2 +- exporter/azureblobexporter/go.sum | 4 ++-- exporter/chronicleexporter/go.mod | 2 +- exporter/chronicleexporter/go.sum | 4 ++-- exporter/chronicleforwarderexporter/go.mod | 2 +- exporter/chronicleforwarderexporter/go.sum | 4 ++-- exporter/googlecloudexporter/go.mod | 4 ++-- exporter/googlecloudexporter/go.sum | 8 ++++---- exporter/googlemanagedprometheusexporter/go.mod | 4 ++-- exporter/googlemanagedprometheusexporter/go.sum | 8 ++++---- exporter/qradar/go.mod | 2 +- exporter/qradar/go.sum | 4 ++-- exporter/snowflakeexporter/go.mod | 2 +- exporter/snowflakeexporter/go.sum | 4 ++-- expr/go.mod | 2 +- expr/go.sum | 4 ++-- extension/bindplaneextension/go.mod | 2 +- extension/bindplaneextension/go.sum | 4 ++-- go.mod | 4 ++-- go.sum | 7 ++++--- internal/measurements/go.mod | 2 +- internal/measurements/go.sum | 4 ++-- internal/rehydration/go.mod | 2 +- internal/rehydration/go.sum | 4 ++-- internal/report/go.mod | 2 +- internal/report/go.sum | 4 ++-- internal/testutils/go.mod | 2 +- internal/testutils/go.sum | 4 ++-- packagestate/go.mod | 2 +- packagestate/go.sum | 4 ++-- processor/datapointcountprocessor/go.mod | 2 +- processor/datapointcountprocessor/go.sum | 4 ++-- processor/logcountprocessor/go.mod | 2 +- processor/logcountprocessor/go.sum | 4 ++-- processor/lookupprocessor/go.mod | 2 +- processor/lookupprocessor/go.sum | 4 ++-- processor/maskprocessor/go.mod | 2 +- processor/maskprocessor/go.sum | 4 ++-- processor/metricextractprocessor/go.mod | 2 +- processor/metricextractprocessor/go.sum | 4 ++-- processor/metricstatsprocessor/go.mod | 2 +- processor/metricstatsprocessor/go.sum | 4 ++-- processor/removeemptyvaluesprocessor/go.mod | 2 +- processor/removeemptyvaluesprocessor/go.sum | 4 ++-- processor/resourceattributetransposerprocessor/go.mod | 2 +- processor/resourceattributetransposerprocessor/go.sum | 4 ++-- processor/samplingprocessor/go.mod | 2 +- processor/samplingprocessor/go.sum | 4 ++-- processor/snapshotprocessor/go.mod | 2 +- processor/snapshotprocessor/go.sum | 4 ++-- processor/spancountprocessor/go.mod | 2 +- processor/spancountprocessor/go.sum | 4 ++-- processor/throughputmeasurementprocessor/go.mod | 2 +- processor/throughputmeasurementprocessor/go.sum | 4 ++-- processor/unrollprocessor/go.mod | 2 +- processor/unrollprocessor/go.sum | 4 ++-- receiver/awss3rehydrationreceiver/go.mod | 2 +- receiver/awss3rehydrationreceiver/go.sum | 4 ++-- receiver/azureblobrehydrationreceiver/go.mod | 2 +- receiver/azureblobrehydrationreceiver/go.sum | 4 ++-- receiver/httpreceiver/go.mod | 2 +- receiver/httpreceiver/go.sum | 4 ++-- receiver/m365receiver/go.mod | 2 +- receiver/m365receiver/go.sum | 4 ++-- receiver/oktareceiver/go.mod | 2 +- receiver/oktareceiver/go.sum | 4 ++-- receiver/pluginreceiver/go.mod | 2 +- receiver/pluginreceiver/go.sum | 3 ++- receiver/routereceiver/go.mod | 2 +- receiver/routereceiver/go.sum | 4 ++-- receiver/sapnetweaverreceiver/go.mod | 2 +- receiver/sapnetweaverreceiver/go.sum | 4 ++-- receiver/telemetrygeneratorreceiver/go.mod | 2 +- receiver/telemetrygeneratorreceiver/go.sum | 4 ++-- updater/go.mod | 2 +- updater/go.sum | 4 ++-- 80 files changed, 129 insertions(+), 127 deletions(-) diff --git a/cmd/plugindocgen/go.mod b/cmd/plugindocgen/go.mod index 21e841279..08b9928d4 100644 --- a/cmd/plugindocgen/go.mod +++ b/cmd/plugindocgen/go.mod @@ -45,7 +45,7 @@ require ( github.com/prometheus/procfs v0.15.1 // indirect github.com/shirou/gopsutil/v4 v4.24.10 // indirect github.com/spf13/cobra v1.8.1 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/stretchr/testify v1.10.0 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect diff --git a/cmd/plugindocgen/go.sum b/cmd/plugindocgen/go.sum index 3a76bcdd3..284dc0d31 100644 --- a/cmd/plugindocgen/go.sum +++ b/cmd/plugindocgen/go.sum @@ -615,8 +615,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= diff --git a/counter/go.mod b/counter/go.mod index 5152fd652..b9b1ccf6c 100644 --- a/counter/go.mod +++ b/counter/go.mod @@ -2,7 +2,7 @@ module github.com/observiq/bindplane-agent/counter go 1.22.7 -require github.com/stretchr/testify v1.9.0 +require github.com/stretchr/testify v1.10.0 require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/counter/go.sum b/counter/go.sum index 60ce688a0..713a0b4f0 100644 --- a/counter/go.sum +++ b/counter/go.sum @@ -2,8 +2,8 @@ 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/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/exporter/azureblobexporter/go.mod b/exporter/azureblobexporter/go.mod index 94a0f8099..460aed939 100644 --- a/exporter/azureblobexporter/go.mod +++ b/exporter/azureblobexporter/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.5.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/configretry v1.20.0 diff --git a/exporter/azureblobexporter/go.sum b/exporter/azureblobexporter/go.sum index 6e2f1b2d6..09150ed72 100644 --- a/exporter/azureblobexporter/go.sum +++ b/exporter/azureblobexporter/go.sum @@ -66,8 +66,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/exporter/chronicleexporter/go.mod b/exporter/chronicleexporter/go.mod index f3fa47301..9dc75cd22 100644 --- a/exporter/chronicleexporter/go.mod +++ b/exporter/chronicleexporter/go.mod @@ -8,7 +8,7 @@ require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/shirou/gopsutil/v3 v3.24.5 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/configretry v1.20.0 diff --git a/exporter/chronicleexporter/go.sum b/exporter/chronicleexporter/go.sum index dada0f347..6b2a6facd 100644 --- a/exporter/chronicleexporter/go.sum +++ b/exporter/chronicleexporter/go.sum @@ -101,8 +101,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= diff --git a/exporter/chronicleforwarderexporter/go.mod b/exporter/chronicleforwarderexporter/go.mod index 56c912756..6c93285a5 100644 --- a/exporter/chronicleforwarderexporter/go.mod +++ b/exporter/chronicleforwarderexporter/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/configretry v1.20.0 diff --git a/exporter/chronicleforwarderexporter/go.sum b/exporter/chronicleforwarderexporter/go.sum index 744252368..9a38e4822 100644 --- a/exporter/chronicleforwarderexporter/go.sum +++ b/exporter/chronicleforwarderexporter/go.sum @@ -84,8 +84,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/exporter/googlecloudexporter/go.mod b/exporter/googlecloudexporter/go.mod index 099149e9f..027c3b8fc 100644 --- a/exporter/googlecloudexporter/go.mod +++ b/exporter/googlecloudexporter/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.49.0 github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/exporter v0.114.0 @@ -14,7 +14,7 @@ require ( go.opentelemetry.io/collector/processor v0.114.0 go.opentelemetry.io/collector/processor/batchprocessor v0.114.0 go.uber.org/multierr v1.11.0 - google.golang.org/api v0.208.0 + google.golang.org/api v0.209.0 ) require ( diff --git a/exporter/googlecloudexporter/go.sum b/exporter/googlecloudexporter/go.sum index 6db92b92f..f2c15217c 100644 --- a/exporter/googlecloudexporter/go.sum +++ b/exporter/googlecloudexporter/go.sum @@ -312,8 +312,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ 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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tidwall/gjson v1.10.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= @@ -531,8 +531,8 @@ 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/api v0.208.0 h1:8Y62MUGRviQnnP9/41/bYAGySPKAN9iwzV96ZvhwyVE= -google.golang.org/api v0.208.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= +google.golang.org/api v0.209.0 h1:Ja2OXNlyRlWCWu8o+GgI4yUn/wz9h/5ZfFbKz+dQX+w= +google.golang.org/api v0.209.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= 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= diff --git a/exporter/googlemanagedprometheusexporter/go.mod b/exporter/googlemanagedprometheusexporter/go.mod index 1070ad4a1..41195886c 100644 --- a/exporter/googlemanagedprometheusexporter/go.mod +++ b/exporter/googlemanagedprometheusexporter/go.mod @@ -4,14 +4,14 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/exporter v0.114.0 go.opentelemetry.io/collector/exporter/exportertest v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 go.uber.org/zap v1.27.0 - google.golang.org/api v0.208.0 + google.golang.org/api v0.209.0 ) require ( diff --git a/exporter/googlemanagedprometheusexporter/go.sum b/exporter/googlemanagedprometheusexporter/go.sum index d816a983e..45dfe14bf 100644 --- a/exporter/googlemanagedprometheusexporter/go.sum +++ b/exporter/googlemanagedprometheusexporter/go.sum @@ -349,8 +349,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ 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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tidwall/gjson v1.10.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= @@ -632,8 +632,8 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.15.1 h1:FNy7N6OUZVUaWG9pTiD+jlhdQ3lMP+/LcTpJ6+a8sQ0= gonum.org/v1/gonum v0.15.1/go.mod h1:eZTZuRFrzu5pcyjN5wJhcIhnUdNijYxX1T2IcrOGY0o= -google.golang.org/api v0.208.0 h1:8Y62MUGRviQnnP9/41/bYAGySPKAN9iwzV96ZvhwyVE= -google.golang.org/api v0.208.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= +google.golang.org/api v0.209.0 h1:Ja2OXNlyRlWCWu8o+GgI4yUn/wz9h/5ZfFbKz+dQX+w= +google.golang.org/api v0.209.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= 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= diff --git a/exporter/qradar/go.mod b/exporter/qradar/go.mod index 095083d26..e2d0b4cf4 100644 --- a/exporter/qradar/go.mod +++ b/exporter/qradar/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/configretry v1.20.0 diff --git a/exporter/qradar/go.sum b/exporter/qradar/go.sum index 744252368..9a38e4822 100644 --- a/exporter/qradar/go.sum +++ b/exporter/qradar/go.sum @@ -84,8 +84,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/exporter/snowflakeexporter/go.mod b/exporter/snowflakeexporter/go.mod index 82fa477b8..2f4d2897f 100644 --- a/exporter/snowflakeexporter/go.mod +++ b/exporter/snowflakeexporter/go.mod @@ -6,7 +6,7 @@ require ( github.com/DATA-DOG/go-sqlmock v1.5.2 github.com/jmoiron/sqlx v1.4.0 github.com/snowflakedb/gosnowflake v1.12.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/configretry v1.20.0 diff --git a/exporter/snowflakeexporter/go.sum b/exporter/snowflakeexporter/go.sum index dff145928..60ce31b5d 100644 --- a/exporter/snowflakeexporter/go.sum +++ b/exporter/snowflakeexporter/go.sum @@ -163,8 +163,8 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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= github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= diff --git a/expr/go.mod b/expr/go.mod index e55f2834b..083b48fde 100644 --- a/expr/go.mod +++ b/expr/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 diff --git a/expr/go.sum b/expr/go.sum index 3833d140e..ee1ae829d 100644 --- a/expr/go.sum +++ b/expr/go.sum @@ -66,8 +66,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/extension/bindplaneextension/go.mod b/extension/bindplaneextension/go.mod index f23e52de7..945c9d329 100644 --- a/extension/bindplaneextension/go.mod +++ b/extension/bindplaneextension/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/internal/measurements v1.66.0 github.com/open-telemetry/opamp-go v0.17.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/opampcustommessages v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 diff --git a/extension/bindplaneextension/go.sum b/extension/bindplaneextension/go.sum index 66519d513..a57186ff3 100644 --- a/extension/bindplaneextension/go.sum +++ b/extension/bindplaneextension/go.sum @@ -58,8 +58,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/go.mod b/go.mod index ccc92e103..4ddaee21e 100644 --- a/go.mod +++ b/go.mod @@ -165,7 +165,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver v0.114.0 github.com/shirou/gopsutil/v3 v3.24.5 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 go.opentelemetry.io/collector/confmap/provider/envprovider v1.20.0 @@ -789,7 +789,7 @@ require ( golang.org/x/tools v0.26.0 // indirect golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect gonum.org/v1/gonum v0.15.1 // indirect - google.golang.org/api v0.208.0 // indirect + google.golang.org/api v0.209.0 // indirect google.golang.org/genproto v0.0.0-20241113202542-65e8d215514f // indirect google.golang.org/grpc v1.68.0 // indirect google.golang.org/protobuf v1.35.2 // indirect diff --git a/go.sum b/go.sum index 830e48367..8722962d7 100644 --- a/go.sum +++ b/go.sum @@ -2507,8 +2507,9 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= @@ -3379,8 +3380,8 @@ google.golang.org/api v0.108.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/ google.golang.org/api v0.110.0/go.mod h1:7FC4Vvx1Mooxh8C5HWjzZHcavuS2f6pmJpZx60ca7iI= google.golang.org/api v0.111.0/go.mod h1:qtFHvU9mhgTJegR31csQ+rwxyUTHOKFqCKWp1J0fdw0= google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= -google.golang.org/api v0.208.0 h1:8Y62MUGRviQnnP9/41/bYAGySPKAN9iwzV96ZvhwyVE= -google.golang.org/api v0.208.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= +google.golang.org/api v0.209.0 h1:Ja2OXNlyRlWCWu8o+GgI4yUn/wz9h/5ZfFbKz+dQX+w= +google.golang.org/api v0.209.0/go.mod h1:I53S168Yr/PNDNMi5yPnDc0/LGRZO6o7PoEbl/HY3CM= 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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/internal/measurements/go.mod b/internal/measurements/go.mod index 67601b923..51cfe07f4 100644 --- a/internal/measurements/go.mod +++ b/internal/measurements/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/pdata v1.20.0 go.opentelemetry.io/otel v1.27.0 go.opentelemetry.io/otel/metric v1.27.0 diff --git a/internal/measurements/go.sum b/internal/measurements/go.sum index 53a9b310e..933dfca5f 100644 --- a/internal/measurements/go.sum +++ b/internal/measurements/go.sum @@ -38,8 +38,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/pdata v1.20.0 h1:ePcwt4bdtISP0loHaE+C9xYoU2ZkIvWv89Fob16o9SM= diff --git a/internal/rehydration/go.mod b/internal/rehydration/go.mod index 66ff82424..c55915e3f 100644 --- a/internal/rehydration/go.mod +++ b/internal/rehydration/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/observiq/bindplane-agent/internal/testutils v1.66.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/internal/rehydration/go.sum b/internal/rehydration/go.sum index af8275f3b..7b700c23d 100644 --- a/internal/rehydration/go.sum +++ b/internal/rehydration/go.sum @@ -31,8 +31,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/internal/report/go.mod b/internal/report/go.mod index 5387018c6..418161323 100644 --- a/internal/report/go.mod +++ b/internal/report/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/pdata v1.20.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/internal/report/go.sum b/internal/report/go.sum index c37e1efc7..c6539843b 100644 --- a/internal/report/go.sum +++ b/internal/report/go.sum @@ -35,8 +35,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/pdata v1.20.0 h1:ePcwt4bdtISP0loHaE+C9xYoU2ZkIvWv89Fob16o9SM= diff --git a/internal/testutils/go.mod b/internal/testutils/go.mod index 4794af654..44518b67e 100644 --- a/internal/testutils/go.mod +++ b/internal/testutils/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/internal/testutils go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/pdata v1.20.0 ) diff --git a/internal/testutils/go.sum b/internal/testutils/go.sum index a8b905e61..67857eb6f 100644 --- a/internal/testutils/go.sum +++ b/internal/testutils/go.sum @@ -26,8 +26,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/pdata v1.20.0 h1:ePcwt4bdtISP0loHaE+C9xYoU2ZkIvWv89Fob16o9SM= diff --git a/packagestate/go.mod b/packagestate/go.mod index 22e5f9ec6..080db649f 100644 --- a/packagestate/go.mod +++ b/packagestate/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/open-telemetry/opamp-go v0.9.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.uber.org/zap v1.27.0 ) diff --git a/packagestate/go.sum b/packagestate/go.sum index 70ea7a7a0..dffd0c221 100644 --- a/packagestate/go.sum +++ b/packagestate/go.sum @@ -14,8 +14,8 @@ 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/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= diff --git a/processor/datapointcountprocessor/go.mod b/processor/datapointcountprocessor/go.mod index 605885f43..d8e2e278f 100644 --- a/processor/datapointcountprocessor/go.mod +++ b/processor/datapointcountprocessor/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/datapointcountprocessor/go.sum b/processor/datapointcountprocessor/go.sum index 4dd867548..f05f22820 100644 --- a/processor/datapointcountprocessor/go.sum +++ b/processor/datapointcountprocessor/go.sum @@ -65,8 +65,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/logcountprocessor/go.mod b/processor/logcountprocessor/go.mod index 15dcd4de2..1c4bbe53c 100644 --- a/processor/logcountprocessor/go.mod +++ b/processor/logcountprocessor/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 diff --git a/processor/logcountprocessor/go.sum b/processor/logcountprocessor/go.sum index 1a1966c43..f013cb9e2 100644 --- a/processor/logcountprocessor/go.sum +++ b/processor/logcountprocessor/go.sum @@ -65,8 +65,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/lookupprocessor/go.mod b/processor/lookupprocessor/go.mod index 4947dd9d4..93a579b9c 100644 --- a/processor/lookupprocessor/go.mod +++ b/processor/lookupprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/lookupprocessor go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 diff --git a/processor/lookupprocessor/go.sum b/processor/lookupprocessor/go.sum index 8351adac4..ab6bdad16 100644 --- a/processor/lookupprocessor/go.sum +++ b/processor/lookupprocessor/go.sum @@ -32,8 +32,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/processor/maskprocessor/go.mod b/processor/maskprocessor/go.mod index 2e758790a..497a7ffb9 100644 --- a/processor/maskprocessor/go.mod +++ b/processor/maskprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/maskprocessor go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/maskprocessor/go.sum b/processor/maskprocessor/go.sum index 8351adac4..ab6bdad16 100644 --- a/processor/maskprocessor/go.sum +++ b/processor/maskprocessor/go.sum @@ -32,8 +32,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/processor/metricextractprocessor/go.mod b/processor/metricextractprocessor/go.mod index bce219d62..334f819fe 100644 --- a/processor/metricextractprocessor/go.mod +++ b/processor/metricextractprocessor/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/metricextractprocessor/go.sum b/processor/metricextractprocessor/go.sum index 690f8b249..dac7a9259 100644 --- a/processor/metricextractprocessor/go.sum +++ b/processor/metricextractprocessor/go.sum @@ -74,8 +74,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/metricstatsprocessor/go.mod b/processor/metricstatsprocessor/go.mod index 05e71fcc1..0c2a9072e 100644 --- a/processor/metricstatsprocessor/go.mod +++ b/processor/metricstatsprocessor/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 diff --git a/processor/metricstatsprocessor/go.sum b/processor/metricstatsprocessor/go.sum index c1159011d..f8e8bd7df 100644 --- a/processor/metricstatsprocessor/go.sum +++ b/processor/metricstatsprocessor/go.sum @@ -253,8 +253,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= diff --git a/processor/removeemptyvaluesprocessor/go.mod b/processor/removeemptyvaluesprocessor/go.mod index a621a893a..78b6c5708 100644 --- a/processor/removeemptyvaluesprocessor/go.mod +++ b/processor/removeemptyvaluesprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/removeemptyvaluesprocessor go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/tj/assert v0.0.3 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 diff --git a/processor/removeemptyvaluesprocessor/go.sum b/processor/removeemptyvaluesprocessor/go.sum index 2fcbf36d8..325eb6f15 100644 --- a/processor/removeemptyvaluesprocessor/go.sum +++ b/processor/removeemptyvaluesprocessor/go.sum @@ -246,8 +246,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/resourceattributetransposerprocessor/go.mod b/processor/resourceattributetransposerprocessor/go.mod index de3849bc5..37a06d3d1 100644 --- a/processor/resourceattributetransposerprocessor/go.mod +++ b/processor/resourceattributetransposerprocessor/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/processor/resourceattributetransposer go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 diff --git a/processor/resourceattributetransposerprocessor/go.sum b/processor/resourceattributetransposerprocessor/go.sum index cefa1f32e..7f57592da 100644 --- a/processor/resourceattributetransposerprocessor/go.sum +++ b/processor/resourceattributetransposerprocessor/go.sum @@ -298,8 +298,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= diff --git a/processor/samplingprocessor/go.mod b/processor/samplingprocessor/go.mod index 246c6e69a..e32e2cd49 100644 --- a/processor/samplingprocessor/go.mod +++ b/processor/samplingprocessor/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 diff --git a/processor/samplingprocessor/go.sum b/processor/samplingprocessor/go.sum index 433925661..bdb0904bd 100644 --- a/processor/samplingprocessor/go.sum +++ b/processor/samplingprocessor/go.sum @@ -73,8 +73,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/snapshotprocessor/go.mod b/processor/snapshotprocessor/go.mod index c8306a9b9..21bc9ffb4 100644 --- a/processor/snapshotprocessor/go.mod +++ b/processor/snapshotprocessor/go.mod @@ -7,7 +7,7 @@ require ( github.com/open-telemetry/opamp-go v0.15.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/opampcustommessages v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/snapshotprocessor/go.sum b/processor/snapshotprocessor/go.sum index 370fdd601..2fd813697 100644 --- a/processor/snapshotprocessor/go.sum +++ b/processor/snapshotprocessor/go.sum @@ -46,8 +46,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/processor/spancountprocessor/go.mod b/processor/spancountprocessor/go.mod index 4bf494f9b..834323a5e 100644 --- a/processor/spancountprocessor/go.mod +++ b/processor/spancountprocessor/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/expr v1.66.0 github.com/observiq/bindplane-agent/receiver/routereceiver v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/spancountprocessor/go.sum b/processor/spancountprocessor/go.sum index 4dd867548..f05f22820 100644 --- a/processor/spancountprocessor/go.sum +++ b/processor/spancountprocessor/go.sum @@ -65,8 +65,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 h1:SIKIoA4e/5Y9ZOl0DCe3eVMLPOQzJxgZpfdHHeauNTM= github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6/go.mod h1:BUbeWZiieNxAuuADTBNb3/aeje6on3DhU3rpWsQSB1E= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/processor/throughputmeasurementprocessor/go.mod b/processor/throughputmeasurementprocessor/go.mod index 764572547..2f6c27a6b 100644 --- a/processor/throughputmeasurementprocessor/go.mod +++ b/processor/throughputmeasurementprocessor/go.mod @@ -6,7 +6,7 @@ require ( github.com/observiq/bindplane-agent/internal/measurements v1.66.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/throughputmeasurementprocessor/go.sum b/processor/throughputmeasurementprocessor/go.sum index 5c828abdb..0ff2ef012 100644 --- a/processor/throughputmeasurementprocessor/go.sum +++ b/processor/throughputmeasurementprocessor/go.sum @@ -40,8 +40,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/processor/unrollprocessor/go.mod b/processor/unrollprocessor/go.mod index 5c5060d6e..06e03599d 100644 --- a/processor/unrollprocessor/go.mod +++ b/processor/unrollprocessor/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/processor/unrollprocessor/go.sum b/processor/unrollprocessor/go.sum index e8c8de141..69474dd55 100644 --- a/processor/unrollprocessor/go.sum +++ b/processor/unrollprocessor/go.sum @@ -40,8 +40,8 @@ github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/receiver/awss3rehydrationreceiver/go.mod b/receiver/awss3rehydrationreceiver/go.mod index 9418baa76..8409f019f 100644 --- a/receiver/awss3rehydrationreceiver/go.mod +++ b/receiver/awss3rehydrationreceiver/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 github.com/observiq/bindplane-agent/internal/rehydration v1.62.0 github.com/observiq/bindplane-agent/internal/testutils v1.66.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 diff --git a/receiver/awss3rehydrationreceiver/go.sum b/receiver/awss3rehydrationreceiver/go.sum index 810a73a41..0987fb6c0 100644 --- a/receiver/awss3rehydrationreceiver/go.sum +++ b/receiver/awss3rehydrationreceiver/go.sum @@ -88,8 +88,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/receiver/azureblobrehydrationreceiver/go.mod b/receiver/azureblobrehydrationreceiver/go.mod index dd334b391..fb82a2da5 100644 --- a/receiver/azureblobrehydrationreceiver/go.mod +++ b/receiver/azureblobrehydrationreceiver/go.mod @@ -6,7 +6,7 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.5.0 github.com/observiq/bindplane-agent/internal/rehydration v1.62.0 github.com/observiq/bindplane-agent/internal/testutils v1.66.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 diff --git a/receiver/azureblobrehydrationreceiver/go.sum b/receiver/azureblobrehydrationreceiver/go.sum index bff184082..cb98045a4 100644 --- a/receiver/azureblobrehydrationreceiver/go.sum +++ b/receiver/azureblobrehydrationreceiver/go.sum @@ -64,8 +64,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/receiver/httpreceiver/go.mod b/receiver/httpreceiver/go.mod index ee9a3949f..b35dc138e 100644 --- a/receiver/httpreceiver/go.mod +++ b/receiver/httpreceiver/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componentstatus v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 diff --git a/receiver/httpreceiver/go.sum b/receiver/httpreceiver/go.sum index d16601c93..2cfce0569 100644 --- a/receiver/httpreceiver/go.sum +++ b/receiver/httpreceiver/go.sum @@ -64,8 +64,8 @@ github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/client v1.20.0 h1:o60wPcj5nLtaRenF+1E5p4QXFS3TDL6vHlw+GOon3rg= diff --git a/receiver/m365receiver/go.mod b/receiver/m365receiver/go.mod index 186b6cd04..8b55e9b0c 100644 --- a/receiver/m365receiver/go.mod +++ b/receiver/m365receiver/go.mod @@ -7,7 +7,7 @@ require ( github.com/google/uuid v1.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/confighttp v0.114.0 diff --git a/receiver/m365receiver/go.sum b/receiver/m365receiver/go.sum index 4189e7c27..c1dd3ffd0 100644 --- a/receiver/m365receiver/go.sum +++ b/receiver/m365receiver/go.sum @@ -291,8 +291,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/valyala/fastjson v1.6.4 h1:uAUNq9Z6ymTgGhcm0UynUAB6tlbakBrz6CQFax3BXVQ= github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/receiver/oktareceiver/go.mod b/receiver/oktareceiver/go.mod index c093ccb7c..f946c77bb 100644 --- a/receiver/oktareceiver/go.mod +++ b/receiver/oktareceiver/go.mod @@ -6,7 +6,7 @@ require ( github.com/okta/okta-sdk-golang/v2 v2.20.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 go.opentelemetry.io/collector/consumer/consumertest v0.114.0 diff --git a/receiver/oktareceiver/go.sum b/receiver/oktareceiver/go.sum index 78217faab..beb36d890 100644 --- a/receiver/oktareceiver/go.sum +++ b/receiver/oktareceiver/go.sum @@ -66,8 +66,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= diff --git a/receiver/pluginreceiver/go.mod b/receiver/pluginreceiver/go.mod index d2b967835..e3601c69f 100644 --- a/receiver/pluginreceiver/go.mod +++ b/receiver/pluginreceiver/go.mod @@ -16,7 +16,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowseventlogreceiver v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/confmap v1.20.0 go.opentelemetry.io/collector/confmap/provider/envprovider v1.20.0 diff --git a/receiver/pluginreceiver/go.sum b/receiver/pluginreceiver/go.sum index 3eee7ce51..48eed8625 100644 --- a/receiver/pluginreceiver/go.sum +++ b/receiver/pluginreceiver/go.sum @@ -822,8 +822,9 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F 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.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/testcontainers/testcontainers-go v0.34.0 h1:5fbgF0vIN5u+nD3IWabQwRybuB4GY8G2HHgCkbMzMHo= github.com/testcontainers/testcontainers-go v0.34.0/go.mod h1:6P/kMkQe8yqPHfPWNulFGdFHTD8HB2vLq/231xY2iPQ= github.com/tidwall/gjson v1.14.2 h1:6BBkirS0rAHjumnjHF6qgy5d2YAJ1TLIaFE2lzfOLqo= diff --git a/receiver/routereceiver/go.mod b/receiver/routereceiver/go.mod index 9eeb7b789..6f5c4765b 100644 --- a/receiver/routereceiver/go.mod +++ b/receiver/routereceiver/go.mod @@ -3,7 +3,7 @@ module github.com/observiq/bindplane-agent/receiver/routereceiver go 1.22.7 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 go.opentelemetry.io/collector/pdata v1.20.0 diff --git a/receiver/routereceiver/go.sum b/receiver/routereceiver/go.sum index 6478bd4dc..4e5131cba 100644 --- a/receiver/routereceiver/go.sum +++ b/receiver/routereceiver/go.sum @@ -32,8 +32,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/receiver/sapnetweaverreceiver/go.mod b/receiver/sapnetweaverreceiver/go.mod index b39ca46d7..8f0a498c1 100644 --- a/receiver/sapnetweaverreceiver/go.mod +++ b/receiver/sapnetweaverreceiver/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/go-cmp v0.6.0 github.com/hooklift/gowsdl v0.5.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/config/confighttp v0.114.0 diff --git a/receiver/sapnetweaverreceiver/go.sum b/receiver/sapnetweaverreceiver/go.sum index 452924dcb..51fb8548d 100644 --- a/receiver/sapnetweaverreceiver/go.sum +++ b/receiver/sapnetweaverreceiver/go.sum @@ -270,8 +270,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= diff --git a/receiver/telemetrygeneratorreceiver/go.mod b/receiver/telemetrygeneratorreceiver/go.mod index 20d927d7e..f1eac2636 100644 --- a/receiver/telemetrygeneratorreceiver/go.mod +++ b/receiver/telemetrygeneratorreceiver/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.114.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.114.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.opentelemetry.io/collector/component v0.114.0 go.opentelemetry.io/collector/component/componenttest v0.114.0 go.opentelemetry.io/collector/consumer v0.114.0 diff --git a/receiver/telemetrygeneratorreceiver/go.sum b/receiver/telemetrygeneratorreceiver/go.sum index 232832bfc..4994df79f 100644 --- a/receiver/telemetrygeneratorreceiver/go.sum +++ b/receiver/telemetrygeneratorreceiver/go.sum @@ -54,8 +54,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.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.opentelemetry.io/collector/component v0.114.0 h1:SVGbm5LvHGSTEDv7p92oPuBgK5tuiWR82I9+LL4TtBE= diff --git a/updater/go.mod b/updater/go.mod index 8291a0bc9..a40bc28fa 100644 --- a/updater/go.mod +++ b/updater/go.mod @@ -7,7 +7,7 @@ require ( github.com/observiq/bindplane-agent/packagestate v1.66.0 github.com/open-telemetry/opamp-go v0.9.0 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.uber.org/zap v1.27.0 golang.org/x/sys v0.27.0 ) diff --git a/updater/go.sum b/updater/go.sum index da9e17a6f..8560f7074 100644 --- a/updater/go.sum +++ b/updater/go.sum @@ -22,8 +22,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -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/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=