From fcf1bee485903b11805219b30bf4e8351a2d8281 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Tue, 16 Apr 2024 13:16:07 -0700 Subject: [PATCH 1/8] [chore] Update otel core dependency (#32459) To pull latest mdatagen changes Signed-off-by: Dmitry Anoshin --- cmd/configschema/go.mod | 83 ++--- cmd/configschema/go.sum | 170 +++++----- cmd/githubgen/go.mod | 4 +- cmd/githubgen/go.sum | 8 +- cmd/opampsupervisor/go.mod | 6 +- cmd/opampsupervisor/go.sum | 12 +- cmd/otelcontribcol/builder-config.yaml | 22 +- cmd/otelcontribcol/go.mod | 85 ++--- cmd/otelcontribcol/go.sum | 174 +++++----- cmd/oteltestbedcol/builder-config.yaml | 16 +- cmd/oteltestbedcol/go.mod | 78 ++--- cmd/oteltestbedcol/go.sum | 160 +++++----- cmd/telemetrygen/go.mod | 10 +- cmd/telemetrygen/go.sum | 20 +- cmd/telemetrygen/internal/e2etest/go.mod | 38 +-- cmd/telemetrygen/internal/e2etest/go.sum | 76 ++--- confmap/provider/s3provider/go.mod | 2 +- confmap/provider/s3provider/go.sum | 4 +- .../provider/secretsmanagerprovider/go.mod | 2 +- .../provider/secretsmanagerprovider/go.sum | 4 +- .../generated_component_test.go | 8 + connector/countconnector/go.mod | 14 +- connector/countconnector/go.sum | 28 +- .../generated_component_test.go | 8 + connector/datadogconnector/go.mod | 70 ++-- connector/datadogconnector/go.sum | 146 ++++----- .../generated_component_test.go | 8 + connector/exceptionsconnector/go.mod | 16 +- connector/exceptionsconnector/go.sum | 32 +- connector/failoverconnector/go.mod | 14 +- connector/failoverconnector/go.sum | 28 +- .../generated_component_test.go | 8 + connector/grafanacloudconnector/go.mod | 14 +- connector/grafanacloudconnector/go.sum | 28 +- connector/routingconnector/go.mod | 14 +- connector/routingconnector/go.sum | 28 +- .../generated_component_test.go | 8 + connector/servicegraphconnector/go.mod | 44 +-- connector/servicegraphconnector/go.sum | 88 ++--- .../generated_component_test.go | 8 + connector/spanmetricsconnector/go.mod | 16 +- connector/spanmetricsconnector/go.sum | 32 +- .../generated_component_test.go | 8 + exporter/alertmanagerexporter/go.mod | 38 +-- exporter/alertmanagerexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + .../alibabacloudlogserviceexporter/go.mod | 26 +- .../alibabacloudlogserviceexporter/go.sum | 52 +-- .../generated_component_test.go | 8 + exporter/awscloudwatchlogsexporter/go.mod | 20 +- exporter/awscloudwatchlogsexporter/go.sum | 40 +-- .../generated_component_test.go | 8 + exporter/awsemfexporter/go.mod | 24 +- exporter/awsemfexporter/go.sum | 48 +-- .../generated_component_test.go | 9 + exporter/awskinesisexporter/go.mod | 22 +- exporter/awskinesisexporter/go.sum | 44 +-- .../awss3exporter/generated_component_test.go | 8 + exporter/awss3exporter/go.mod | 48 +-- exporter/awss3exporter/go.sum | 96 +++--- .../generated_component_test.go | 8 + exporter/awsxrayexporter/go.mod | 24 +- exporter/awsxrayexporter/go.sum | 48 +-- .../generated_component_test.go | 9 + exporter/azuredataexplorerexporter/go.mod | 22 +- exporter/azuredataexplorerexporter/go.sum | 44 +-- .../generated_component_test.go | 8 + exporter/azuremonitorexporter/go.mod | 24 +- exporter/azuremonitorexporter/go.sum | 48 +-- .../generated_component_test.go | 8 + exporter/carbonexporter/go.mod | 26 +- exporter/carbonexporter/go.sum | 52 +-- .../generated_component_test.go | 9 + exporter/cassandraexporter/go.mod | 22 +- exporter/cassandraexporter/go.sum | 44 +-- .../generated_component_test.go | 9 + exporter/clickhouseexporter/go.mod | 24 +- exporter/clickhouseexporter/go.sum | 48 +-- .../generated_component_test.go | 8 + exporter/coralogixexporter/go.mod | 38 +-- exporter/coralogixexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + exporter/datadogexporter/go.mod | 71 +++-- exporter/datadogexporter/go.sum | 146 ++++----- .../datadogexporter/integrationtest/go.mod | 70 ++-- .../datadogexporter/integrationtest/go.sum | 146 ++++----- .../generated_component_test.go | 9 + exporter/datasetexporter/go.mod | 22 +- exporter/datasetexporter/go.sum | 44 +-- .../generated_component_test.go | 8 + exporter/elasticsearchexporter/go.mod | 26 +- exporter/elasticsearchexporter/go.sum | 52 +-- .../integrationtest/go.mod | 78 ++--- .../integrationtest/go.sum | 160 +++++----- .../fileexporter/generated_component_test.go | 8 + exporter/fileexporter/go.mod | 20 +- exporter/fileexporter/go.sum | 40 +-- .../generated_component_test.go | 9 + exporter/googlecloudexporter/go.mod | 24 +- exporter/googlecloudexporter/go.sum | 48 +-- .../generated_component_test.go | 9 + exporter/googlecloudpubsubexporter/go.mod | 20 +- exporter/googlecloudpubsubexporter/go.sum | 40 +-- .../generated_component_test.go | 9 + .../googlemanagedprometheusexporter/go.mod | 46 +-- .../googlemanagedprometheusexporter/go.sum | 92 +++--- .../generated_component_test.go | 8 + exporter/honeycombmarkerexporter/go.mod | 36 +-- exporter/honeycombmarkerexporter/go.sum | 72 ++--- .../generated_component_test.go | 8 + exporter/influxdbexporter/go.mod | 38 +-- exporter/influxdbexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + exporter/instanaexporter/go.mod | 38 +-- exporter/instanaexporter/go.sum | 76 ++--- .../kafkaexporter/generated_component_test.go | 9 + exporter/kafkaexporter/go.mod | 28 +- exporter/kafkaexporter/go.sum | 56 ++-- .../generated_component_test.go | 9 + exporter/kineticaexporter/go.mod | 22 +- exporter/kineticaexporter/go.sum | 44 +-- .../generated_component_test.go | 8 + exporter/loadbalancingexporter/go.mod | 64 ++-- exporter/loadbalancingexporter/go.sum | 128 ++++---- .../generated_component_test.go | 8 + exporter/logicmonitorexporter/go.mod | 38 +-- exporter/logicmonitorexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + exporter/logzioexporter/go.mod | 40 +-- exporter/logzioexporter/go.sum | 80 ++--- .../lokiexporter/generated_component_test.go | 8 + exporter/lokiexporter/go.mod | 38 +-- exporter/lokiexporter/go.sum | 76 ++--- .../mezmoexporter/generated_component_test.go | 8 + exporter/mezmoexporter/go.mod | 38 +-- exporter/mezmoexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + exporter/opencensusexporter/go.mod | 42 +-- exporter/opencensusexporter/go.sum | 84 ++--- .../generated_component_test.go | 8 + exporter/opensearchexporter/go.mod | 36 +-- exporter/opensearchexporter/go.sum | 72 ++--- exporter/otelarrowexporter/go.mod | 38 +-- exporter/otelarrowexporter/go.sum | 76 ++--- .../generated_component_test.go | 8 + exporter/prometheusexporter/go.mod | 38 +-- exporter/prometheusexporter/go.sum | 120 +++---- .../generated_component_test.go | 8 + exporter/prometheusremotewriteexporter/go.mod | 38 +-- exporter/prometheusremotewriteexporter/go.sum | 76 ++--- .../generated_component_test.go | 9 + exporter/pulsarexporter/go.mod | 24 +- exporter/pulsarexporter/go.sum | 48 +-- .../generated_component_test.go | 9 + exporter/rabbitmqexporter/go.mod | 20 +- exporter/rabbitmqexporter/go.sum | 40 +-- .../sapmexporter/generated_component_test.go | 8 + exporter/sapmexporter/go.mod | 24 +- exporter/sapmexporter/go.sum | 48 +-- .../generated_component_test.go | 8 + exporter/sentryexporter/go.mod | 22 +- exporter/sentryexporter/go.sum | 44 +-- .../generated_component_test.go | 8 + exporter/signalfxexporter/go.mod | 38 +-- exporter/signalfxexporter/go.sum | 76 ++--- .../generated_component_test.go | 9 + exporter/skywalkingexporter/go.mod | 40 +-- exporter/skywalkingexporter/go.sum | 80 ++--- .../generated_component_test.go | 8 + exporter/splunkhecexporter/go.mod | 38 +-- exporter/splunkhecexporter/go.sum | 76 ++--- .../generated_component_test.go | 9 + exporter/sumologicexporter/go.mod | 36 +-- exporter/sumologicexporter/go.sum | 72 ++--- .../generated_component_test.go | 9 + exporter/syslogexporter/go.mod | 24 +- exporter/syslogexporter/go.sum | 48 +-- .../generated_component_test.go | 9 + .../tencentcloudlogserviceexporter/go.mod | 24 +- .../tencentcloudlogserviceexporter/go.sum | 48 +-- .../generated_component_test.go | 8 + exporter/zipkinexporter/go.mod | 38 +-- exporter/zipkinexporter/go.sum | 76 ++--- extension/ackextension/go.mod | 10 +- extension/ackextension/go.sum | 20 +- extension/asapauthextension/go.mod | 14 +- extension/asapauthextension/go.sum | 28 +- .../awsproxy/generated_component_test.go | 9 + extension/awsproxy/go.mod | 18 +- extension/awsproxy/go.sum | 36 +-- .../generated_component_test.go | 8 + extension/basicauthextension/go.mod | 16 +- extension/basicauthextension/go.sum | 32 +- .../generated_component_test.go | 8 + extension/bearertokenauthextension/go.mod | 14 +- extension/bearertokenauthextension/go.sum | 28 +- .../generated_component_test.go | 8 + .../encoding/avrologencodingextension/go.mod | 10 +- .../encoding/avrologencodingextension/go.sum | 20 +- extension/encoding/go.mod | 10 +- extension/encoding/go.sum | 20 +- .../generated_component_test.go | 8 + .../encoding/jaegerencodingextension/go.mod | 12 +- .../encoding/jaegerencodingextension/go.sum | 24 +- .../generated_component_test.go | 8 + .../encoding/jsonlogencodingextension/go.mod | 10 +- .../encoding/jsonlogencodingextension/go.sum | 20 +- .../generated_component_test.go | 8 + .../encoding/otlpencodingextension/go.mod | 10 +- .../encoding/otlpencodingextension/go.sum | 20 +- .../generated_component_test.go | 8 + .../encoding/textencodingextension/go.mod | 10 +- .../encoding/textencodingextension/go.sum | 20 +- .../generated_component_test.go | 8 + .../encoding/zipkinencodingextension/go.mod | 12 +- .../encoding/zipkinencodingextension/go.sum | 24 +- .../generated_component_test.go | 9 + extension/googleclientauthextension/go.mod | 10 +- extension/googleclientauthextension/go.sum | 20 +- .../generated_component_test.go | 8 + extension/headerssetterextension/go.mod | 14 +- extension/headerssetterextension/go.sum | 28 +- .../generated_component_test.go | 8 + extension/healthcheckextension/go.mod | 28 +- extension/healthcheckextension/go.sum | 56 ++-- .../generated_component_test.go | 8 + extension/httpforwarderextension/go.mod | 28 +- extension/httpforwarderextension/go.sum | 56 ++-- .../generated_component_test.go | 9 + extension/jaegerremotesampling/go.mod | 32 +- extension/jaegerremotesampling/go.sum | 64 ++-- .../generated_component_test.go | 8 + extension/oauth2clientauthextension/go.mod | 28 +- extension/oauth2clientauthextension/go.sum | 56 ++-- extension/observer/dockerobserver/go.mod | 10 +- extension/observer/dockerobserver/go.sum | 20 +- extension/observer/ecsobserver/go.mod | 10 +- extension/observer/ecsobserver/go.sum | 20 +- extension/observer/ecstaskobserver/go.mod | 28 +- extension/observer/ecstaskobserver/go.sum | 56 ++-- .../hostobserver/generated_component_test.go | 8 + extension/observer/hostobserver/go.mod | 10 +- extension/observer/hostobserver/go.sum | 20 +- extension/observer/k8sobserver/go.mod | 10 +- extension/observer/k8sobserver/go.sum | 20 +- .../generated_component_test.go | 9 + extension/oidcauthextension/go.mod | 14 +- extension/oidcauthextension/go.sum | 28 +- .../generated_component_test.go | 8 + extension/opampextension/go.mod | 16 +- extension/opampextension/go.sum | 32 +- .../generated_component_test.go | 8 + extension/pprofextension/go.mod | 14 +- extension/pprofextension/go.sum | 28 +- .../generated_component_test.go | 8 + extension/remotetapextension/go.mod | 28 +- extension/remotetapextension/go.sum | 56 ++-- .../generated_component_test.go | 8 + extension/sigv4authextension/go.mod | 12 +- extension/sigv4authextension/go.sum | 24 +- .../generated_component_test.go | 8 + .../solarwindsapmsettingsextension/go.mod | 10 +- .../solarwindsapmsettingsextension/go.sum | 20 +- .../dbstorage/generated_component_test.go | 9 + extension/storage/dbstorage/go.mod | 10 +- extension/storage/dbstorage/go.sum | 20 +- .../filestorage/generated_component_test.go | 8 + extension/storage/filestorage/go.mod | 12 +- extension/storage/filestorage/go.sum | 24 +- extension/storage/go.mod | 10 +- extension/storage/go.sum | 20 +- extension/sumologicextension/go.mod | 28 +- extension/sumologicextension/go.sum | 56 ++-- go.mod | 83 ++--- go.sum | 170 +++++----- internal/aws/containerinsight/go.mod | 2 +- internal/aws/containerinsight/go.sum | 4 +- internal/aws/cwlogs/go.mod | 8 +- internal/aws/cwlogs/go.sum | 16 +- internal/aws/ecsutil/go.mod | 28 +- internal/aws/ecsutil/go.sum | 56 ++-- internal/aws/proxy/go.mod | 8 +- internal/aws/proxy/go.sum | 16 +- internal/aws/xray/go.mod | 8 +- internal/aws/xray/go.sum | 16 +- internal/common/go.mod | 2 +- internal/common/go.sum | 4 +- internal/coreinternal/go.mod | 16 +- internal/coreinternal/go.sum | 32 +- internal/datadog/go.mod | 10 +- internal/datadog/go.sum | 20 +- internal/exp/metrics/go.mod | 2 +- internal/exp/metrics/go.sum | 4 +- internal/filter/go.mod | 12 +- internal/filter/go.sum | 24 +- internal/kafka/go.mod | 4 +- internal/kafka/go.sum | 8 +- internal/kubelet/go.mod | 4 +- internal/kubelet/go.sum | 8 +- internal/metadataproviders/go.mod | 2 +- internal/metadataproviders/go.sum | 4 +- internal/sharedcomponent/go.mod | 8 +- internal/sharedcomponent/go.sum | 16 +- internal/splunk/go.mod | 20 +- internal/splunk/go.sum | 40 +-- internal/sqlquery/go.mod | 14 +- internal/sqlquery/go.sum | 28 +- internal/tools/go.mod | 15 +- internal/tools/go.sum | 30 +- pkg/batchperresourceattr/go.mod | 4 +- pkg/batchperresourceattr/go.sum | 8 +- pkg/batchpersignal/go.mod | 2 +- pkg/batchpersignal/go.sum | 4 +- pkg/experimentalmetricmetadata/go.mod | 2 +- pkg/experimentalmetricmetadata/go.sum | 4 +- pkg/golden/go.mod | 2 +- pkg/golden/go.sum | 4 +- pkg/ottl/go.mod | 8 +- pkg/ottl/go.sum | 16 +- pkg/pdatatest/go.mod | 2 +- pkg/pdatatest/go.sum | 4 +- pkg/pdatautil/go.mod | 2 +- pkg/pdatautil/go.sum | 4 +- pkg/resourcetotelemetry/go.mod | 12 +- pkg/resourcetotelemetry/go.sum | 24 +- pkg/sampling/go.mod | 2 +- pkg/sampling/go.sum | 4 +- pkg/stanza/go.mod | 22 +- pkg/stanza/go.sum | 44 +-- pkg/translator/azure/go.mod | 10 +- pkg/translator/azure/go.sum | 20 +- pkg/translator/jaeger/go.mod | 4 +- pkg/translator/jaeger/go.sum | 8 +- pkg/translator/loki/go.mod | 6 +- pkg/translator/loki/go.sum | 12 +- pkg/translator/opencensus/go.mod | 4 +- pkg/translator/opencensus/go.sum | 8 +- pkg/translator/prometheus/go.mod | 4 +- pkg/translator/prometheus/go.sum | 8 +- pkg/translator/prometheusremotewrite/go.mod | 6 +- pkg/translator/prometheusremotewrite/go.sum | 12 +- pkg/translator/signalfx/go.mod | 2 +- pkg/translator/signalfx/go.sum | 4 +- pkg/translator/skywalking/go.mod | 4 +- pkg/translator/skywalking/go.sum | 8 +- pkg/translator/zipkin/go.mod | 4 +- pkg/translator/zipkin/go.sum | 8 +- .../generated_component_test.go | 8 + processor/attributesprocessor/go.mod | 20 +- processor/attributesprocessor/go.sum | 40 +-- .../generated_component_test.go | 8 + processor/cumulativetodeltaprocessor/go.mod | 16 +- processor/cumulativetodeltaprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/deltatocumulativeprocessor/go.mod | 16 +- processor/deltatocumulativeprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/deltatorateprocessor/go.mod | 16 +- processor/deltatorateprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/filterprocessor/go.mod | 20 +- processor/filterprocessor/go.sum | 40 +-- .../generated_component_test.go | 8 + processor/groupbyattrsprocessor/go.mod | 16 +- processor/groupbyattrsprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/groupbytraceprocessor/go.mod | 16 +- processor/groupbytraceprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/intervalprocessor/go.mod | 14 +- processor/intervalprocessor/go.sum | 28 +- .../generated_component_test.go | 8 + processor/k8sattributesprocessor/go.mod | 44 +-- processor/k8sattributesprocessor/go.sum | 88 ++--- .../internal/metadata/generated_config.go | 4 +- .../generated_component_test.go | 8 + processor/logstransformprocessor/go.mod | 22 +- processor/logstransformprocessor/go.sum | 44 +-- .../generated_component_test.go | 8 + processor/metricsgenerationprocessor/go.mod | 16 +- processor/metricsgenerationprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/metricstransformprocessor/go.mod | 16 +- processor/metricstransformprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + .../probabilisticsamplerprocessor/go.mod | 44 +-- .../probabilisticsamplerprocessor/go.sum | 88 ++--- .../generated_component_test.go | 8 + processor/redactionprocessor/go.mod | 16 +- processor/redactionprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/remotetapprocessor/go.mod | 34 +- processor/remotetapprocessor/go.sum | 68 ++-- .../generated_component_test.go | 8 + processor/resourcedetectionprocessor/go.mod | 36 +-- processor/resourcedetectionprocessor/go.sum | 72 ++--- .../ec2/internal/metadata/generated_config.go | 4 +- .../ecs/internal/metadata/generated_config.go | 4 +- .../eks/internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../aks/internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../gcp/internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_config.go | 4 +- .../generated_component_test.go | 8 + processor/resourceprocessor/go.mod | 16 +- processor/resourceprocessor/go.sum | 32 +- .../generated_component_test.go | 8 + processor/routingprocessor/go.mod | 44 +-- processor/routingprocessor/go.sum | 88 ++--- .../generated_component_test.go | 8 + processor/schemaprocessor/go.mod | 34 +- processor/schemaprocessor/go.sum | 68 ++-- .../spanprocessor/generated_component_test.go | 8 + processor/spanprocessor/go.mod | 20 +- processor/spanprocessor/go.sum | 40 +-- .../generated_component_test.go | 8 + processor/sumologicprocessor/go.mod | 44 +-- processor/sumologicprocessor/go.sum | 88 ++--- .../generated_component_test.go | 8 + processor/tailsamplingprocessor/go.mod | 18 +- processor/tailsamplingprocessor/go.sum | 36 +-- .../generated_component_test.go | 8 + processor/transformprocessor/go.mod | 18 +- processor/transformprocessor/go.sum | 36 +-- receiver/activedirectorydsreceiver/go.mod | 14 +- receiver/activedirectorydsreceiver/go.sum | 28 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../generated_component_test.go | 8 + receiver/aerospikereceiver/go.mod | 19 +- receiver/aerospikereceiver/go.sum | 38 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ .../generated_component_test.go | 8 + receiver/apachereceiver/go.mod | 33 +- receiver/apachereceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ .../generated_component_test.go | 8 + receiver/apachesparkreceiver/go.mod | 33 +- receiver/apachesparkreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 53 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 52 +++ .../generated_component_test.go | 8 + receiver/awscloudwatchmetricsreceiver/go.mod | 12 +- receiver/awscloudwatchmetricsreceiver/go.sum | 24 +- .../generated_component_test.go | 8 + receiver/awscloudwatchreceiver/go.mod | 12 +- receiver/awscloudwatchreceiver/go.sum | 24 +- .../generated_component_test.go | 9 + receiver/awscontainerinsightreceiver/go.mod | 32 +- receiver/awscontainerinsightreceiver/go.sum | 64 ++-- .../awsecscontainermetricsreceiver/go.mod | 34 +- .../awsecscontainermetricsreceiver/go.sum | 68 ++-- .../generated_component_test.go | 8 + receiver/awsfirehosereceiver/go.mod | 34 +- receiver/awsfirehosereceiver/go.sum | 68 ++-- .../awss3receiver/generated_component_test.go | 8 + receiver/awss3receiver/go.mod | 12 +- receiver/awss3receiver/go.sum | 24 +- receiver/awsxrayreceiver/go.mod | 24 +- receiver/awsxrayreceiver/go.sum | 48 +-- .../generated_component_test.go | 9 + receiver/azureblobreceiver/go.mod | 44 +-- receiver/azureblobreceiver/go.sum | 88 ++--- .../generated_component_test.go | 9 + receiver/azureeventhubreceiver/go.mod | 44 +-- receiver/azureeventhubreceiver/go.sum | 88 ++--- .../generated_component_test.go | 8 + receiver/azuremonitorreceiver/go.mod | 14 +- receiver/azuremonitorreceiver/go.sum | 28 +- .../internal/metadata/generated_config.go | 4 +- .../bigipreceiver/generated_component_test.go | 8 + receiver/bigipreceiver/go.mod | 33 +- receiver/bigipreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 59 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 60 ++++ .../generated_component_test.go | 9 + receiver/carbonreceiver/go.mod | 18 +- receiver/carbonreceiver/go.sum | 36 +-- .../generated_component_test.go | 9 + receiver/chronyreceiver/go.mod | 14 +- receiver/chronyreceiver/go.sum | 28 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../generated_component_test.go | 8 + receiver/cloudflarereceiver/go.mod | 18 +- receiver/cloudflarereceiver/go.sum | 36 +-- .../generated_component_test.go | 9 + receiver/cloudfoundryreceiver/go.mod | 32 +- receiver/cloudfoundryreceiver/go.sum | 64 ++-- .../generated_component_test.go | 8 + receiver/collectdreceiver/go.mod | 32 +- receiver/collectdreceiver/go.sum | 64 ++-- .../generated_component_test.go | 8 + receiver/couchdbreceiver/go.mod | 33 +- receiver/couchdbreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../generated_component_test.go | 8 + receiver/datadogreceiver/go.mod | 34 +- receiver/datadogreceiver/go.sum | 68 ++-- .../generated_component_test.go | 8 + receiver/dockerstatsreceiver/go.mod | 17 +- receiver/dockerstatsreceiver/go.sum | 34 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 59 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 60 ++++ .../generated_component_test.go | 8 + receiver/elasticsearchreceiver/go.mod | 33 +- receiver/elasticsearchreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 41 +++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 36 +++ .../generated_component_test.go | 8 + receiver/expvarreceiver/go.mod | 32 +- receiver/expvarreceiver/go.sum | 64 ++-- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../generated_component_test.go | 8 + receiver/filelogreceiver/go.mod | 18 +- receiver/filelogreceiver/go.sum | 36 +-- .../generated_component_test.go | 8 + receiver/filestatsreceiver/go.mod | 15 +- receiver/filestatsreceiver/go.sum | 30 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 67 ++-- .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ .../generated_component_test.go | 8 + receiver/flinkmetricsreceiver/go.mod | 33 +- receiver/flinkmetricsreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 53 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 52 +++ .../generated_component_test.go | 8 + receiver/fluentforwardreceiver/go.mod | 14 +- receiver/fluentforwardreceiver/go.sum | 28 +- .../generated_component_test.go | 8 + receiver/gitproviderreceiver/go.mod | 59 ++-- receiver/gitproviderreceiver/go.sum | 118 +++---- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ receiver/googlecloudpubsubreceiver/go.mod | 20 +- receiver/googlecloudpubsubreceiver/go.sum | 40 +-- .../generated_component_test.go | 8 + receiver/googlecloudspannerreceiver/go.mod | 14 +- receiver/googlecloudspannerreceiver/go.sum | 28 +- .../generated_component_test.go | 8 + receiver/haproxyreceiver/go.mod | 33 +- receiver/haproxyreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 35 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 28 ++ .../generated_component_test.go | 8 + receiver/hostmetricsreceiver/go.mod | 45 +-- receiver/hostmetricsreceiver/go.sum | 90 +++--- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 65 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 68 ++++ .../generated_component_test.go | 8 + receiver/httpcheckreceiver/go.mod | 32 +- receiver/httpcheckreceiver/go.sum | 64 ++-- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../iisreceiver/generated_component_test.go | 8 + receiver/iisreceiver/go.mod | 15 +- receiver/iisreceiver/go.sum | 30 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ .../generated_component_test.go | 8 + receiver/influxdbreceiver/go.mod | 34 +- receiver/influxdbreceiver/go.sum | 68 ++-- .../generated_component_test.go | 8 + receiver/jaegerreceiver/go.mod | 38 +-- receiver/jaegerreceiver/go.sum | 76 ++--- .../jmxreceiver/generated_component_test.go | 8 + receiver/jmxreceiver/go.mod | 42 +-- receiver/jmxreceiver/go.sum | 84 ++--- .../generated_component_test.go | 8 + receiver/journaldreceiver/go.mod | 18 +- receiver/journaldreceiver/go.sum | 36 +-- .../generated_component_test.go | 9 + receiver/k8sclusterreceiver/go.mod | 41 +-- receiver/k8sclusterreceiver/go.sum | 82 ++--- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 239 ++++++++++++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 300 ++++++++++++++++++ .../generated_component_test.go | 9 + receiver/k8seventsreceiver/go.mod | 16 +- receiver/k8seventsreceiver/go.sum | 32 +- .../generated_component_test.go | 9 + receiver/k8sobjectsreceiver/go.mod | 40 +-- receiver/k8sobjectsreceiver/go.sum | 80 ++--- .../generated_component_test.go | 8 + receiver/kafkametricsreceiver/go.mod | 18 +- receiver/kafkametricsreceiver/go.sum | 36 +-- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../kafkareceiver/generated_component_test.go | 9 + receiver/kafkareceiver/go.mod | 28 +- receiver/kafkareceiver/go.sum | 56 ++-- .../generated_component_test.go | 8 + receiver/kubeletstatsreceiver/go.mod | 41 +-- receiver/kubeletstatsreceiver/go.sum | 82 ++--- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 107 +++++++ .../metadata/generated_metrics_test.go | 49 +-- .../internal/metadata/testdata/config.yaml | 124 ++++++++ .../lokireceiver/generated_component_test.go | 8 + receiver/lokireceiver/go.mod | 38 +-- receiver/lokireceiver/go.sum | 76 ++--- .../generated_component_test.go | 8 + receiver/memcachedreceiver/go.mod | 16 +- receiver/memcachedreceiver/go.sum | 32 +- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../generated_component_test.go | 8 + receiver/mongodbatlasreceiver/go.mod | 25 +- receiver/mongodbatlasreceiver/go.sum | 50 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 95 ++++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 108 +++++++ .../generated_component_test.go | 9 + receiver/mongodbreceiver/go.mod | 23 +- receiver/mongodbreceiver/go.sum | 46 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../mysqlreceiver/generated_component_test.go | 8 + receiver/mysqlreceiver/go.mod | 21 +- receiver/mysqlreceiver/go.sum | 42 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../generated_component_test.go | 8 + receiver/namedpipereceiver/go.mod | 18 +- receiver/namedpipereceiver/go.sum | 36 +-- .../nginxreceiver/generated_component_test.go | 8 + receiver/nginxreceiver/go.mod | 32 +- receiver/nginxreceiver/go.sum | 64 ++-- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../nsxtreceiver/generated_component_test.go | 8 + receiver/nsxtreceiver/go.mod | 33 +- receiver/nsxtreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 41 +++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 36 +++ .../generated_component_test.go | 8 + receiver/opencensusreceiver/go.mod | 38 +-- receiver/opencensusreceiver/go.sum | 76 ++--- .../generated_component_test.go | 8 + receiver/oracledbreceiver/go.mod | 15 +- receiver/oracledbreceiver/go.sum | 30 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + receiver/osqueryreceiver/go.mod | 14 +- receiver/osqueryreceiver/go.sum | 28 +- .../generated_component_test.go | 8 + receiver/otelarrowreceiver/go.mod | 36 +-- receiver/otelarrowreceiver/go.sum | 72 ++--- .../generated_component_test.go | 8 + receiver/otlpjsonfilereceiver/go.mod | 20 +- receiver/otlpjsonfilereceiver/go.sum | 40 +-- .../generated_component_test.go | 9 + receiver/podmanreceiver/go.mod | 17 +- receiver/podmanreceiver/go.sum | 34 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 41 +++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 36 +++ .../generated_component_test.go | 8 + receiver/postgresqlreceiver/go.mod | 23 +- receiver/postgresqlreceiver/go.sum | 46 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 41 +++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 36 +++ .../generated_component_test.go | 8 + receiver/prometheusreceiver/go.mod | 60 ++-- receiver/prometheusreceiver/go.sum | 120 +++---- .../generated_component_test.go | 9 + receiver/pulsarreceiver/go.mod | 16 +- receiver/pulsarreceiver/go.sum | 34 +- .../generated_component_test.go | 8 + receiver/purefareceiver/go.mod | 34 +- receiver/purefareceiver/go.sum | 120 +++---- .../generated_component_test.go | 8 + receiver/purefbreceiver/go.mod | 34 +- receiver/purefbreceiver/go.sum | 120 +++---- .../generated_component_test.go | 8 + receiver/rabbitmqreceiver/go.mod | 33 +- receiver/rabbitmqreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 35 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 28 ++ .../generated_component_test.go | 8 + receiver/receivercreator/go.mod | 44 +-- receiver/receivercreator/go.sum | 88 ++--- .../redisreceiver/generated_component_test.go | 8 + receiver/redisreceiver/go.mod | 21 +- receiver/redisreceiver/go.sum | 42 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 35 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 28 ++ .../riakreceiver/generated_component_test.go | 8 + receiver/riakreceiver/go.mod | 33 +- receiver/riakreceiver/go.sum | 66 ++-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../generated_component_test.go | 8 + receiver/saphanareceiver/go.mod | 21 +- receiver/saphanareceiver/go.sum | 42 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ .../sapmreceiver/generated_component_test.go | 8 + receiver/sapmreceiver/go.mod | 38 +-- receiver/sapmreceiver/go.sum | 76 ++--- .../generated_component_test.go | 8 + receiver/signalfxreceiver/go.mod | 38 +-- receiver/signalfxreceiver/go.sum | 76 ++--- .../generated_component_test.go | 8 + receiver/simpleprometheusreceiver/go.mod | 34 +- receiver/simpleprometheusreceiver/go.sum | 120 +++---- .../generated_component_test.go | 8 + receiver/skywalkingreceiver/go.mod | 38 +-- receiver/skywalkingreceiver/go.sum | 76 ++--- .../snmpreceiver/generated_component_test.go | 8 + receiver/snmpreceiver/go.mod | 46 +-- receiver/snmpreceiver/go.sum | 92 +++--- .../generated_component_test.go | 8 + receiver/snowflakereceiver/go.mod | 17 +- receiver/snowflakereceiver/go.sum | 34 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 23 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../generated_component_test.go | 9 + receiver/solacereceiver/go.mod | 16 +- receiver/solacereceiver/go.sum | 32 +- .../generated_component_test.go | 8 + receiver/splunkenterprisereceiver/go.mod | 32 +- receiver/splunkenterprisereceiver/go.sum | 64 ++-- .../internal/metadata/generated_config.go | 4 +- .../internal/metadata/generated_metrics.go | 2 + .../metadata/generated_metrics_test.go | 34 +- .../generated_component_test.go | 8 + receiver/splunkhecreceiver/go.mod | 38 +-- receiver/splunkhecreceiver/go.sum | 76 ++--- .../generated_component_test.go | 8 + receiver/sqlqueryreceiver/go.mod | 18 +- receiver/sqlqueryreceiver/go.sum | 36 +-- .../generated_component_test.go | 8 + receiver/sqlserverreceiver/go.mod | 17 +- receiver/sqlserverreceiver/go.sum | 34 +- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 35 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 28 ++ .../generated_component_test.go | 8 + receiver/sshcheckreceiver/go.mod | 19 +- receiver/sshcheckreceiver/go.sum | 38 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 65 ++-- .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 12 + .../generated_component_test.go | 8 + receiver/statsdreceiver/go.mod | 20 +- receiver/statsdreceiver/go.sum | 40 +-- .../generated_component_test.go | 8 + receiver/syslogreceiver/go.mod | 22 +- receiver/syslogreceiver/go.sum | 44 +-- .../generated_component_test.go | 8 + receiver/tcplogreceiver/go.mod | 22 +- receiver/tcplogreceiver/go.sum | 44 +-- .../generated_component_test.go | 8 + receiver/udplogreceiver/go.mod | 18 +- receiver/udplogreceiver/go.sum | 36 +-- .../generated_component_test.go | 8 + receiver/vcenterreceiver/go.mod | 21 +- receiver/vcenterreceiver/go.sum | 42 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 59 ++++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 60 ++++ .../generated_component_test.go | 8 + receiver/wavefrontreceiver/go.mod | 18 +- receiver/wavefrontreceiver/go.sum | 36 +-- .../generated_component_test.go | 8 + receiver/webhookeventreceiver/go.mod | 32 +- receiver/webhookeventreceiver/go.sum | 64 ++-- .../generated_component_test.go | 8 + receiver/windowseventlogreceiver/go.mod | 18 +- receiver/windowseventlogreceiver/go.sum | 36 +-- .../generated_component_test.go | 8 + receiver/windowsperfcountersreceiver/go.mod | 14 +- receiver/windowsperfcountersreceiver/go.sum | 28 +- .../generated_component_test.go | 8 + receiver/zipkinreceiver/go.mod | 34 +- receiver/zipkinreceiver/go.sum | 68 ++-- .../generated_component_test.go | 8 + receiver/zookeeperreceiver/go.mod | 19 +- receiver/zookeeperreceiver/go.sum | 38 +-- .../internal/metadata/generated_config.go | 9 +- .../internal/metadata/generated_metrics.go | 29 ++ .../metadata/generated_metrics_test.go | 43 ++- .../internal/metadata/testdata/config.yaml | 20 ++ testbed/go.mod | 78 ++--- testbed/go.sum | 160 +++++----- .../mockdatadogagentexporter/go.mod | 34 +- .../mockdatadogagentexporter/go.sum | 68 ++-- 882 files changed, 15391 insertions(+), 10217 deletions(-) diff --git a/cmd/configschema/go.mod b/cmd/configschema/go.mod index 5d8f8da1c637..50f5ed70a646 100644 --- a/cmd/configschema/go.mod +++ b/cmd/configschema/go.mod @@ -10,10 +10,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 golang.org/x/mod v0.17.0 golang.org/x/text v0.14.0 @@ -169,8 +169,8 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver v0.98.0 // indirect github.com/samber/lo v1.38.1 // indirect github.com/shoenig/go-m1cpu v0.1.6 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect ) require ( @@ -616,41 +616,42 @@ require ( go.mongodb.org/atlas v0.36.0 // indirect go.mongodb.org/mongo-driver v1.15.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/cmd/configschema/go.sum b/cmd/configschema/go.sum index f6a1b885582f..3c704a928e77 100644 --- a/cmd/configschema/go.sum +++ b/cmd/configschema/go.sum @@ -1580,90 +1580,92 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:l4HSIsccrBjItUSSpOhJGzhOglEOPDODYsLT7MWdLDU= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0h9dDk4USIF9ZjyiSkrptL01bS2bAJTKe6KxkNy4f5Q= -go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:NnyiBhCsFybCO83gEQyzCW0hRkWeMF5/q1bN2jX2tB8= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 h1:SQkT9I+deVnRsYQGqYNbV3SWUhPxqLbYiDhjJuQrzxA= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:cQHnyAu6qDxqDZSCYAIPapYLOR3Ium/DdOK56cQowUM= +go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:NnyiBhCsFybCO83gEQyzCW0hRkWeMF5/q1bN2jX2tB8= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/cmd/githubgen/go.mod b/cmd/githubgen/go.mod index f28662df5b65..ae9f3d165531 100644 --- a/cmd/githubgen/go.mod +++ b/cmd/githubgen/go.mod @@ -4,8 +4,8 @@ go 1.21 require ( github.com/google/go-github/v61 v61.0.0 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/cmd/githubgen/go.sum b/cmd/githubgen/go.sum index 4a8c182b4fd3..ba60fa7bcc35 100644 --- a/cmd/githubgen/go.sum +++ b/cmd/githubgen/go.sum @@ -23,10 +23,10 @@ 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/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= 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= diff --git a/cmd/opampsupervisor/go.mod b/cmd/opampsupervisor/go.mod index 45855fa18af8..d5a0e74be08e 100644 --- a/cmd/opampsupervisor/go.mod +++ b/cmd/opampsupervisor/go.mod @@ -11,9 +11,9 @@ require ( github.com/oklog/ulid/v2 v2.1.0 github.com/open-telemetry/opamp-go v0.14.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) diff --git a/cmd/opampsupervisor/go.sum b/cmd/opampsupervisor/go.sum index 0433c8cc0890..b18f4c286359 100644 --- a/cmd/opampsupervisor/go.sum +++ b/cmd/opampsupervisor/go.sum @@ -41,14 +41,14 @@ 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/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= go.opentelemetry.io/collector/confmap v0.98.0 h1:qQreBlrqio1y7uhrAvr+W86YbQ6fw7StgkbYpvJ2vVc= go.opentelemetry.io/collector/confmap v0.98.0/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= 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= diff --git a/cmd/otelcontribcol/builder-config.yaml b/cmd/otelcontribcol/builder-config.yaml index 15a98f78cbe1..c027e3174f6e 100644 --- a/cmd/otelcontribcol/builder-config.yaml +++ b/cmd/otelcontribcol/builder-config.yaml @@ -6,8 +6,8 @@ dist: otelcol_version: 0.97.0 extensions: - - gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/awsproxy v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension v0.98.0 @@ -43,10 +43,10 @@ extensions: import: github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/zipkinencodingextension exporters: - - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alertmanagerexporter v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alibabacloudlogserviceexporter v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter v0.98.0 @@ -92,8 +92,8 @@ exporters: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter v0.98.0 processors: - - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatorateprocessor v0.98.0 @@ -116,8 +116,8 @@ processors: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/remotetapprocessor v0.98.0 receivers: - - gomod: go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/activedirectorydsreceiver v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/aerospikereceiver v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/apachereceiver v0.98.0 @@ -206,7 +206,7 @@ receivers: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver v0.98.0 connectors: - - gomod: go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/datadogconnector v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/exceptionsconnector v0.98.0 diff --git a/cmd/otelcontribcol/go.mod b/cmd/otelcontribcol/go.mod index af17aef9c269..81f624be0f3e 100644 --- a/cmd/otelcontribcol/go.mod +++ b/cmd/otelcontribcol/go.mod @@ -193,31 +193,31 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver v0.98.0 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 golang.org/x/sys v0.19.0 ) @@ -652,23 +652,24 @@ require ( go.mongodb.org/atlas v0.36.0 // indirect go.mongodb.org/mongo-driver v1.15.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/cmd/otelcontribcol/go.sum b/cmd/otelcontribcol/go.sum index e73f72ac91b3..e4418dc94b53 100644 --- a/cmd/otelcontribcol/go.sum +++ b/cmd/otelcontribcol/go.sum @@ -1582,92 +1582,94 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:l4HSIsccrBjItUSSpOhJGzhOglEOPDODYsLT7MWdLDU= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:Auy7WOkLp6Jv7a2AgQ6taEubnRtbbNB36x+ZNI+dKYs= -go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:gKiqmR0Wk33Gt+u6OI9d9CUc6VEhvMe3mD2la7BtoBg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:COyAWHwgQ5DoYVIFr717hjYRIvKnC4s2SqZAr8rkyMU= -go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:SZZt8fAIAbYx7/y1xKe3sTayD0uQEq9dza6Rv2ctcvw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 h1:SQkT9I+deVnRsYQGqYNbV3SWUhPxqLbYiDhjJuQrzxA= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:Vna+yr7U/26JpAgkG16B+vJeN8x26dHyWwf6eavBEAY= +go.opentelemetry.io/collector/exporter/nopexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:gKiqmR0Wk33Gt+u6OI9d9CUc6VEhvMe3mD2la7BtoBg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rhLeabG+fsEPR/j83RYybhrJ+8Z9EPTDHX02W4rzigI= +go.opentelemetry.io/collector/receiver/nopreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:SZZt8fAIAbYx7/y1xKe3sTayD0uQEq9dza6Rv2ctcvw= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/cmd/oteltestbedcol/builder-config.yaml b/cmd/oteltestbedcol/builder-config.yaml index 1dacf627a06b..7831f5711cd0 100644 --- a/cmd/oteltestbedcol/builder-config.yaml +++ b/cmd/oteltestbedcol/builder-config.yaml @@ -6,15 +6,15 @@ dist: otelcol_version: 0.97.0 extensions: - - gomod: go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.98.0 exporters: - - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter v0.98.0 @@ -26,13 +26,13 @@ exporters: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter v0.98.0 processors: - - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - - gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + - gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.98.0 receivers: - - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.98.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver v0.98.0 diff --git a/cmd/oteltestbedcol/go.mod b/cmd/oteltestbedcol/go.mod index 8cbd9bcc0413..7e5b38d812e4 100644 --- a/cmd/oteltestbedcol/go.mod +++ b/cmd/oteltestbedcol/go.mod @@ -31,21 +31,21 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.98.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 golang.org/x/sys v0.19.0 ) @@ -214,30 +214,30 @@ require ( github.com/yusufpapurcu/wmi v1.2.4 // indirect go.etcd.io/bbolt v1.3.9 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/cmd/oteltestbedcol/go.sum b/cmd/oteltestbedcol/go.sum index b2cbd0d4006a..2170115b4a48 100644 --- a/cmd/oteltestbedcol/go.sum +++ b/cmd/oteltestbedcol/go.sum @@ -683,86 +683,86 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/cmd/telemetrygen/go.mod b/cmd/telemetrygen/go.mod index fc7d6ca18256..281ab8eb4e0e 100644 --- a/cmd/telemetrygen/go.mod +++ b/cmd/telemetrygen/go.mod @@ -7,9 +7,9 @@ require ( github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.25.0 go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.25.0 @@ -44,8 +44,8 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/proto/otlp v1.1.0 // indirect go.uber.org/multierr v1.11.0 // indirect diff --git a/cmd/telemetrygen/go.sum b/cmd/telemetrygen/go.sum index 23047aa05b63..2fc96a9b8e7a 100644 --- a/cmd/telemetrygen/go.sum +++ b/cmd/telemetrygen/go.sum @@ -93,16 +93,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.25.0 h1:hDKnobznDpcdTlNzO0S/owRB8tyVr1OoeZZhDoqY+Cs= diff --git a/cmd/telemetrygen/internal/e2etest/go.mod b/cmd/telemetrygen/internal/e2etest/go.mod index 8aafe64479e9..cdfcbbd72bf6 100644 --- a/cmd/telemetrygen/internal/e2etest/go.mod +++ b/cmd/telemetrygen/internal/e2etest/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 ) require ( @@ -46,21 +46,21 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/cmd/telemetrygen/internal/e2etest/go.sum b/cmd/telemetrygen/internal/e2etest/go.sum index 71ee17f08d3d..714aa8b326e0 100644 --- a/cmd/telemetrygen/internal/e2etest/go.sum +++ b/cmd/telemetrygen/internal/e2etest/go.sum @@ -115,46 +115,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/confmap/provider/s3provider/go.mod b/confmap/provider/s3provider/go.mod index 3ebbb3f5075f..891517b54997 100644 --- a/confmap/provider/s3provider/go.mod +++ b/confmap/provider/s3provider/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/config v1.27.11 github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/confmap/provider/s3provider/go.sum b/confmap/provider/s3provider/go.sum index d6fde68197ea..b15ae6c36ada 100644 --- a/confmap/provider/s3provider/go.sum +++ b/confmap/provider/s3provider/go.sum @@ -56,8 +56,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/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= 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= diff --git a/confmap/provider/secretsmanagerprovider/go.mod b/confmap/provider/secretsmanagerprovider/go.mod index 8df5b59188a3..4be2e279cdb3 100644 --- a/confmap/provider/secretsmanagerprovider/go.mod +++ b/confmap/provider/secretsmanagerprovider/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.28.6 github.com/aws/smithy-go v1.20.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 ) require ( diff --git a/confmap/provider/secretsmanagerprovider/go.sum b/confmap/provider/secretsmanagerprovider/go.sum index f4e54da5b94b..71beddfdccd2 100644 --- a/confmap/provider/secretsmanagerprovider/go.sum +++ b/confmap/provider/secretsmanagerprovider/go.sum @@ -254,8 +254,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= diff --git a/connector/countconnector/generated_component_test.go b/connector/countconnector/generated_component_test.go index cab0dfd4d829..89cf3d56ad17 100644 --- a/connector/countconnector/generated_component_test.go +++ b/connector/countconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "count", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/countconnector/go.mod b/connector/countconnector/go.mod index d9015948144e..a421b97da1af 100644 --- a/connector/countconnector/go.mod +++ b/connector/countconnector/go.mod @@ -9,11 +9,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,8 +47,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/countconnector/go.sum b/connector/countconnector/go.sum index 7731f6bcf7ae..e02711dfb543 100644 --- a/connector/countconnector/go.sum +++ b/connector/countconnector/go.sum @@ -74,20 +74,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/connector/datadogconnector/generated_component_test.go b/connector/datadogconnector/generated_component_test.go index bf777c39bb36..1ba5319179f4 100644 --- a/connector/datadogconnector/generated_component_test.go +++ b/connector/datadogconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "datadog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/datadogconnector/go.mod b/connector/datadogconnector/go.mod index 10622bb6e063..38c69162e2b8 100644 --- a/connector/datadogconnector/go.mod +++ b/connector/datadogconnector/go.mod @@ -13,19 +13,19 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.98.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -140,28 +140,28 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/connector/datadogconnector/go.sum b/connector/datadogconnector/go.sum index 4dcfdf8c3228..d3468473b887 100644 --- a/connector/datadogconnector/go.sum +++ b/connector/datadogconnector/go.sum @@ -586,80 +586,82 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/connector/exceptionsconnector/generated_component_test.go b/connector/exceptionsconnector/generated_component_test.go index 5e7ce302158c..92bcf5a4f4ca 100644 --- a/connector/exceptionsconnector/generated_component_test.go +++ b/connector/exceptionsconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "exceptions", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/exceptionsconnector/go.mod b/connector/exceptionsconnector/go.mod index 7510d8e830f5..480d4aa6586b 100644 --- a/connector/exceptionsconnector/go.mod +++ b/connector/exceptionsconnector/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,8 +43,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/exceptionsconnector/go.sum b/connector/exceptionsconnector/go.sum index a7b989a22c97..d404b199f34b 100644 --- a/connector/exceptionsconnector/go.sum +++ b/connector/exceptionsconnector/go.sum @@ -60,24 +60,24 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/connector/failoverconnector/go.mod b/connector/failoverconnector/go.mod index 84d01ff8e1c2..bb4bdbb5a2e1 100644 --- a/connector/failoverconnector/go.mod +++ b/connector/failoverconnector/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/failoverconnector/go.sum b/connector/failoverconnector/go.sum index 0f43c0243749..4b80ad2d0957 100644 --- a/connector/failoverconnector/go.sum +++ b/connector/failoverconnector/go.sum @@ -62,20 +62,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/connector/grafanacloudconnector/generated_component_test.go b/connector/grafanacloudconnector/generated_component_test.go index e5e0fd8e4f86..f22a792b25a0 100644 --- a/connector/grafanacloudconnector/generated_component_test.go +++ b/connector/grafanacloudconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "grafanacloud", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/grafanacloudconnector/go.mod b/connector/grafanacloudconnector/go.mod index c7102ae6ad2e..697aa3eec86e 100644 --- a/connector/grafanacloudconnector/go.mod +++ b/connector/grafanacloudconnector/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,8 +40,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/grafanacloudconnector/go.sum b/connector/grafanacloudconnector/go.sum index fe5adeef2fe2..b539318efce8 100644 --- a/connector/grafanacloudconnector/go.sum +++ b/connector/grafanacloudconnector/go.sum @@ -62,20 +62,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/connector/routingconnector/go.mod b/connector/routingconnector/go.mod index 64a8d1db5857..5af4cf906785 100644 --- a/connector/routingconnector/go.mod +++ b/connector/routingconnector/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -42,8 +42,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/routingconnector/go.sum b/connector/routingconnector/go.sum index fe3f0b47f199..7b7a4b832285 100644 --- a/connector/routingconnector/go.sum +++ b/connector/routingconnector/go.sum @@ -74,20 +74,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/connector/servicegraphconnector/generated_component_test.go b/connector/servicegraphconnector/generated_component_test.go index 773a46625861..5772f439320b 100644 --- a/connector/servicegraphconnector/generated_component_test.go +++ b/connector/servicegraphconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "servicegraph", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/servicegraphconnector/go.mod b/connector/servicegraphconnector/go.mod index 87f307031224..a30dd689a588 100644 --- a/connector/servicegraphconnector/go.mod +++ b/connector/servicegraphconnector/go.mod @@ -4,17 +4,17 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/sdk/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -60,17 +60,17 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/connector/servicegraphconnector/go.sum b/connector/servicegraphconnector/go.sum index 2221639c09e6..041f2b0c0022 100644 --- a/connector/servicegraphconnector/go.sum +++ b/connector/servicegraphconnector/go.sum @@ -134,56 +134,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/connector/spanmetricsconnector/generated_component_test.go b/connector/spanmetricsconnector/generated_component_test.go index 81cf90b69a7e..28402f919b30 100644 --- a/connector/spanmetricsconnector/generated_component_test.go +++ b/connector/spanmetricsconnector/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/consumer/consumertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "spanmetrics", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/connector/spanmetricsconnector/go.mod b/connector/spanmetricsconnector/go.mod index f20dfa61ff6b..36503921d5aa 100644 --- a/connector/spanmetricsconnector/go.mod +++ b/connector/spanmetricsconnector/go.mod @@ -9,12 +9,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 github.com/tilinna/clock v1.1.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -44,8 +44,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/connector/spanmetricsconnector/go.sum b/connector/spanmetricsconnector/go.sum index e781c614bb75..97c3f100bd02 100644 --- a/connector/spanmetricsconnector/go.sum +++ b/connector/spanmetricsconnector/go.sum @@ -66,24 +66,24 @@ github.com/tilinna/clock v1.1.0 h1:6IQQQCo6KoBxVudv6gwtY8o4eDfhHo8ojA5dP0MfhSs= github.com/tilinna/clock v1.1.0/go.mod h1:ZsP7BcY7sEEz7ktc0IVy8Us6boDrK8VradlKRUGfOao= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/alertmanagerexporter/generated_component_test.go b/exporter/alertmanagerexporter/generated_component_test.go index 3cc537978d84..a527d22bbc21 100644 --- a/exporter/alertmanagerexporter/generated_component_test.go +++ b/exporter/alertmanagerexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "alertmanager", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/alertmanagerexporter/go.mod b/exporter/alertmanagerexporter/go.mod index 3aa8d7dbe4a7..560353bc5c47 100644 --- a/exporter/alertmanagerexporter/go.mod +++ b/exporter/alertmanagerexporter/go.mod @@ -7,16 +7,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/prometheus/common v0.52.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,15 +50,15 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/alertmanagerexporter/go.sum b/exporter/alertmanagerexporter/go.sum index b34c6e71a1d3..8bf5c9a694e8 100644 --- a/exporter/alertmanagerexporter/go.sum +++ b/exporter/alertmanagerexporter/go.sum @@ -74,46 +74,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/alibabacloudlogserviceexporter/generated_component_test.go b/exporter/alibabacloudlogserviceexporter/generated_component_test.go index 3f21d51c8285..23c85218f483 100644 --- a/exporter/alibabacloudlogserviceexporter/generated_component_test.go +++ b/exporter/alibabacloudlogserviceexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "alibabacloud_logservice", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/alibabacloudlogserviceexporter/go.mod b/exporter/alibabacloudlogserviceexporter/go.mod index 9a9164b716a4..2dfc65292ca7 100644 --- a/exporter/alibabacloudlogserviceexporter/go.mod +++ b/exporter/alibabacloudlogserviceexporter/go.mod @@ -7,13 +7,13 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -47,12 +47,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/alibabacloudlogserviceexporter/go.sum b/exporter/alibabacloudlogserviceexporter/go.sum index b57f512c6b87..2b227f384b1c 100644 --- a/exporter/alibabacloudlogserviceexporter/go.sum +++ b/exporter/alibabacloudlogserviceexporter/go.sum @@ -353,32 +353,32 @@ go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mI go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/awscloudwatchlogsexporter/generated_component_test.go b/exporter/awscloudwatchlogsexporter/generated_component_test.go index 43a94327eafc..74b0b434ac94 100644 --- a/exporter/awscloudwatchlogsexporter/generated_component_test.go +++ b/exporter/awscloudwatchlogsexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awscloudwatchlogs", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/awscloudwatchlogsexporter/go.mod b/exporter/awscloudwatchlogsexporter/go.mod index 62f7177cf08d..0069bdb062b6 100644 --- a/exporter/awscloudwatchlogsexporter/go.mod +++ b/exporter/awscloudwatchlogsexporter/go.mod @@ -9,12 +9,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/cwlogs v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -45,10 +45,10 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/awscloudwatchlogsexporter/go.sum b/exporter/awscloudwatchlogsexporter/go.sum index b0513f6b1361..e5f94a50e9ca 100644 --- a/exporter/awscloudwatchlogsexporter/go.sum +++ b/exporter/awscloudwatchlogsexporter/go.sum @@ -70,28 +70,28 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/awsemfexporter/generated_component_test.go b/exporter/awsemfexporter/generated_component_test.go index 8613a09d57d9..ed5c9852c097 100644 --- a/exporter/awsemfexporter/generated_component_test.go +++ b/exporter/awsemfexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awsemf", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/awsemfexporter/go.mod b/exporter/awsemfexporter/go.mod index 1b9818e2dede..33eacbd704f9 100644 --- a/exporter/awsemfexporter/go.mod +++ b/exporter/awsemfexporter/go.mod @@ -11,13 +11,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -50,11 +50,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/awsemfexporter/go.sum b/exporter/awsemfexporter/go.sum index 51bebc4d2148..d33a137c4dbe 100644 --- a/exporter/awsemfexporter/go.sum +++ b/exporter/awsemfexporter/go.sum @@ -72,32 +72,32 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/awskinesisexporter/generated_component_test.go b/exporter/awskinesisexporter/generated_component_test.go index 597a3eb9754f..48a319cc7347 100644 --- a/exporter/awskinesisexporter/generated_component_test.go +++ b/exporter/awskinesisexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awskinesis", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/awskinesisexporter/go.mod b/exporter/awskinesisexporter/go.mod index 1ca3866e2ef7..f4731010132f 100644 --- a/exporter/awskinesisexporter/go.mod +++ b/exporter/awskinesisexporter/go.mod @@ -15,12 +15,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -62,11 +62,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/awskinesisexporter/go.sum b/exporter/awskinesisexporter/go.sum index 464af2be6fba..20618e1f8ddf 100644 --- a/exporter/awskinesisexporter/go.sum +++ b/exporter/awskinesisexporter/go.sum @@ -104,30 +104,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/awss3exporter/generated_component_test.go b/exporter/awss3exporter/generated_component_test.go index cd70588d72a3..9e57a2f0f6b7 100644 --- a/exporter/awss3exporter/generated_component_test.go +++ b/exporter/awss3exporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awss3", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/awss3exporter/go.mod b/exporter/awss3exporter/go.mod index 0b1000ed0fb2..77199e3449e5 100644 --- a/exporter/awss3exporter/go.mod +++ b/exporter/awss3exporter/go.mod @@ -5,13 +5,13 @@ go 1.21 require ( github.com/aws/aws-sdk-go v1.51.21 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -57,23 +57,23 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/exporter/awss3exporter/go.sum b/exporter/awss3exporter/go.sum index 2de3bf9decd6..6ee9374ba985 100644 --- a/exporter/awss3exporter/go.sum +++ b/exporter/awss3exporter/go.sum @@ -140,58 +140,58 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/exporter/awsxrayexporter/generated_component_test.go b/exporter/awsxrayexporter/generated_component_test.go index de2a712670ad..56cb5bbb4703 100644 --- a/exporter/awsxrayexporter/generated_component_test.go +++ b/exporter/awsxrayexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awsxray", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/awsxrayexporter/go.mod b/exporter/awsxrayexporter/go.mod index 5e03c2c4a291..308d5267a200 100644 --- a/exporter/awsxrayexporter/go.mod +++ b/exporter/awsxrayexporter/go.mod @@ -8,13 +8,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/xray v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -46,11 +46,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/awsxrayexporter/go.sum b/exporter/awsxrayexporter/go.sum index 5895ebeea0eb..8e15a1679ba4 100644 --- a/exporter/awsxrayexporter/go.sum +++ b/exporter/awsxrayexporter/go.sum @@ -72,32 +72,32 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/azuredataexplorerexporter/generated_component_test.go b/exporter/azuredataexplorerexporter/generated_component_test.go index dff9e46e372b..0df4c7ae89d4 100644 --- a/exporter/azuredataexplorerexporter/generated_component_test.go +++ b/exporter/azuredataexplorerexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "azuredataexplorer", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/azuredataexplorerexporter/go.mod b/exporter/azuredataexplorerexporter/go.mod index 895417febc72..1f768c567882 100644 --- a/exporter/azuredataexplorerexporter/go.mod +++ b/exporter/azuredataexplorerexporter/go.mod @@ -8,12 +8,12 @@ require ( github.com/json-iterator/go v1.1.12 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -63,11 +63,11 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/samber/lo v1.38.1 // indirect github.com/shopspring/decimal v1.3.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/azuredataexplorerexporter/go.sum b/exporter/azuredataexplorerexporter/go.sum index 97366731f986..97fa62ec3d48 100644 --- a/exporter/azuredataexplorerexporter/go.sum +++ b/exporter/azuredataexplorerexporter/go.sum @@ -131,30 +131,30 @@ github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pv 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/azuremonitorexporter/generated_component_test.go b/exporter/azuremonitorexporter/generated_component_test.go index d2d202bfd315..f0405c0905e7 100644 --- a/exporter/azuremonitorexporter/generated_component_test.go +++ b/exporter/azuremonitorexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "azuremonitor", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/azuremonitorexporter/go.mod b/exporter/azuremonitorexporter/go.mod index e3f4e9153afe..1e655feaef00 100644 --- a/exporter/azuremonitorexporter/go.mod +++ b/exporter/azuremonitorexporter/go.mod @@ -6,13 +6,13 @@ require ( github.com/microsoft/ApplicationInsights-Go v0.4.4 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -45,11 +45,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/azuremonitorexporter/go.sum b/exporter/azuremonitorexporter/go.sum index c3bcb9fb5961..97f8ce28ec54 100644 --- a/exporter/azuremonitorexporter/go.sum +++ b/exporter/azuremonitorexporter/go.sum @@ -81,32 +81,32 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/carbonexporter/generated_component_test.go b/exporter/carbonexporter/generated_component_test.go index 7a02d6c0c47e..57f0deeb7332 100644 --- a/exporter/carbonexporter/generated_component_test.go +++ b/exporter/carbonexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "carbon", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/carbonexporter/go.mod b/exporter/carbonexporter/go.mod index 785ea83bafc0..9964cd3db55b 100644 --- a/exporter/carbonexporter/go.mod +++ b/exporter/carbonexporter/go.mod @@ -6,13 +6,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,12 +43,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/carbonexporter/go.sum b/exporter/carbonexporter/go.sum index e9361bbc1def..5cc569303638 100644 --- a/exporter/carbonexporter/go.sum +++ b/exporter/carbonexporter/go.sum @@ -64,34 +64,34 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/cassandraexporter/generated_component_test.go b/exporter/cassandraexporter/generated_component_test.go index 3dcb72b4763c..21b46c97d447 100644 --- a/exporter/cassandraexporter/generated_component_test.go +++ b/exporter/cassandraexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "cassandra", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/cassandraexporter/go.mod b/exporter/cassandraexporter/go.mod index 2611def22333..194bc62089e4 100644 --- a/exporter/cassandraexporter/go.mod +++ b/exporter/cassandraexporter/go.mod @@ -6,11 +6,11 @@ require ( github.com/gocql/gocql v1.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -42,12 +42,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/cassandraexporter/go.sum b/exporter/cassandraexporter/go.sum index b030547ca4ab..6e2642d6bc54 100644 --- a/exporter/cassandraexporter/go.sum +++ b/exporter/cassandraexporter/go.sum @@ -76,30 +76,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/clickhouseexporter/generated_component_test.go b/exporter/clickhouseexporter/generated_component_test.go index f251d2cf9264..cb34d478db7d 100644 --- a/exporter/clickhouseexporter/generated_component_test.go +++ b/exporter/clickhouseexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "clickhouse", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/clickhouseexporter/go.mod b/exporter/clickhouseexporter/go.mod index 91f8f325106c..52f052ddd271 100644 --- a/exporter/clickhouseexporter/go.mod +++ b/exporter/clickhouseexporter/go.mod @@ -9,13 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -83,11 +83,11 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/clickhouseexporter/go.sum b/exporter/clickhouseexporter/go.sum index 3c5178a005e1..323ae264dced 100644 --- a/exporter/clickhouseexporter/go.sum +++ b/exporter/clickhouseexporter/go.sum @@ -186,32 +186,32 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.mongodb.org/mongo-driver v1.11.4/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/coralogixexporter/generated_component_test.go b/exporter/coralogixexporter/generated_component_test.go index 18f1b2036164..b38ce47ddaf8 100644 --- a/exporter/coralogixexporter/generated_component_test.go +++ b/exporter/coralogixexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "coralogix", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/coralogixexporter/go.mod b/exporter/coralogixexporter/go.mod index e2315b7bf774..22fa9d8c9fbd 100644 --- a/exporter/coralogixexporter/go.mod +++ b/exporter/coralogixexporter/go.mod @@ -5,16 +5,16 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,15 +50,15 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/coralogixexporter/go.sum b/exporter/coralogixexporter/go.sum index ffcbe52046a5..28ee22fc6b7e 100644 --- a/exporter/coralogixexporter/go.sum +++ b/exporter/coralogixexporter/go.sum @@ -72,46 +72,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/datadogexporter/generated_component_test.go b/exporter/datadogexporter/generated_component_test.go index 067e8b463c87..ae085016e823 100644 --- a/exporter/datadogexporter/generated_component_test.go +++ b/exporter/datadogexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "datadog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/datadogexporter/go.mod b/exporter/datadogexporter/go.mod index ef906d1ddd34..df4c1d3c4421 100644 --- a/exporter/datadogexporter/go.mod +++ b/exporter/datadogexporter/go.mod @@ -35,27 +35,27 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -235,20 +235,21 @@ require ( github.com/yusufpapurcu/wmi v1.2.4 // indirect github.com/zorkian/go-datadog-api v2.30.0+incompatible // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/exporter/datadogexporter/go.sum b/exporter/datadogexporter/go.sum index 844dca0eb246..ce67a4d031e9 100644 --- a/exporter/datadogexporter/go.sum +++ b/exporter/datadogexporter/go.sum @@ -778,80 +778,82 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/exporter/datadogexporter/integrationtest/go.mod b/exporter/datadogexporter/integrationtest/go.mod index 8cfee0cbd1dc..a85cc0c89cf1 100644 --- a/exporter/datadogexporter/integrationtest/go.mod +++ b/exporter/datadogexporter/integrationtest/go.mod @@ -9,17 +9,17 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.98.0 github.com/stretchr/testify v1.9.0 github.com/tinylib/msgp v1.1.9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0 go.opentelemetry.io/otel/sdk v1.25.0 @@ -139,30 +139,30 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/exporter/datadogexporter/integrationtest/go.sum b/exporter/datadogexporter/integrationtest/go.sum index 4dcfdf8c3228..d3468473b887 100644 --- a/exporter/datadogexporter/integrationtest/go.sum +++ b/exporter/datadogexporter/integrationtest/go.sum @@ -586,80 +586,82 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/exporter/datasetexporter/generated_component_test.go b/exporter/datasetexporter/generated_component_test.go index e80c4b9f3f51..f327dc82941e 100644 --- a/exporter/datasetexporter/generated_component_test.go +++ b/exporter/datasetexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "dataset", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/datasetexporter/go.mod b/exporter/datasetexporter/go.mod index b1648114a62f..0d65b1dc6a46 100644 --- a/exporter/datasetexporter/go.mod +++ b/exporter/datasetexporter/go.mod @@ -8,18 +8,18 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/scalyr/dataset-go v0.18.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/zap v1.27.0 ) require ( github.com/cenkalti/backoff/v4 v4.3.0 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 ) @@ -46,11 +46,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/datasetexporter/go.sum b/exporter/datasetexporter/go.sum index 4702fc4bd407..a9dc48b69369 100644 --- a/exporter/datasetexporter/go.sum +++ b/exporter/datasetexporter/go.sum @@ -66,30 +66,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/elasticsearchexporter/generated_component_test.go b/exporter/elasticsearchexporter/generated_component_test.go index 57761a699ae0..b96fb32029b3 100644 --- a/exporter/elasticsearchexporter/generated_component_test.go +++ b/exporter/elasticsearchexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "elasticsearch", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/elasticsearchexporter/go.mod b/exporter/elasticsearchexporter/go.mod index 93348d5000ae..4e896ec6a6de 100644 --- a/exporter/elasticsearchexporter/go.mod +++ b/exporter/elasticsearchexporter/go.mod @@ -10,13 +10,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,12 +47,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/elasticsearchexporter/go.sum b/exporter/elasticsearchexporter/go.sum index 1c0ea98e5be1..1b4c1146b934 100644 --- a/exporter/elasticsearchexporter/go.sum +++ b/exporter/elasticsearchexporter/go.sum @@ -75,34 +75,34 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/elasticsearchexporter/integrationtest/go.mod b/exporter/elasticsearchexporter/integrationtest/go.mod index d2974e3d5952..953a9cee5a30 100644 --- a/exporter/elasticsearchexporter/integrationtest/go.mod +++ b/exporter/elasticsearchexporter/integrationtest/go.mod @@ -11,18 +11,18 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/testbed v0.98.0 github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/zap v1.27.0 golang.org/x/sync v0.6.0 ) @@ -113,33 +113,33 @@ require ( go.elastic.co/fastjson v1.3.0 // indirect go.etcd.io/bbolt v1.3.9 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/exporter/elasticsearchexporter/integrationtest/go.sum b/exporter/elasticsearchexporter/integrationtest/go.sum index 7b6f630371c2..d125d8f7c785 100644 --- a/exporter/elasticsearchexporter/integrationtest/go.sum +++ b/exporter/elasticsearchexporter/integrationtest/go.sum @@ -266,86 +266,86 @@ go.etcd.io/bbolt v1.3.9 h1:8x7aARPEXiXbHmtUwAIv7eV2fQFHrLLavdiJ3uzJXoI= go.etcd.io/bbolt v1.3.9/go.mod h1:zaO32+Ti0PK1ivdPtgMESzuzL2VPoIG1PCQNvOdo/dE= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/exporter/fileexporter/generated_component_test.go b/exporter/fileexporter/generated_component_test.go index 338d3e841ea2..99fe8337435b 100644 --- a/exporter/fileexporter/generated_component_test.go +++ b/exporter/fileexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "file", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/fileexporter/go.mod b/exporter/fileexporter/go.mod index 9ec97048ef26..f4ab73877575 100644 --- a/exporter/fileexporter/go.mod +++ b/exporter/fileexporter/go.mod @@ -9,12 +9,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -46,10 +46,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/fileexporter/go.sum b/exporter/fileexporter/go.sum index b0a74ed3b472..fb7415f2dc00 100644 --- a/exporter/fileexporter/go.sum +++ b/exporter/fileexporter/go.sum @@ -68,28 +68,28 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/googlecloudexporter/generated_component_test.go b/exporter/googlecloudexporter/generated_component_test.go index f7c2631c048f..2e1557306ddb 100644 --- a/exporter/googlecloudexporter/generated_component_test.go +++ b/exporter/googlecloudexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "googlecloud", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/googlecloudexporter/go.mod b/exporter/googlecloudexporter/go.mod index 4cece87fa642..f45ace200f74 100644 --- a/exporter/googlecloudexporter/go.mod +++ b/exporter/googlecloudexporter/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.46.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -61,13 +61,13 @@ require ( github.com/tidwall/tinylru v1.1.0 // indirect github.com/tidwall/wal v1.1.7 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/exporter/googlecloudexporter/go.sum b/exporter/googlecloudexporter/go.sum index 689fec1b6d7a..698ccdb43e12 100644 --- a/exporter/googlecloudexporter/go.sum +++ b/exporter/googlecloudexporter/go.sum @@ -154,32 +154,32 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/exporter/googlecloudpubsubexporter/generated_component_test.go b/exporter/googlecloudpubsubexporter/generated_component_test.go index bbe9f0c7a3be..a188b32f87e0 100644 --- a/exporter/googlecloudpubsubexporter/generated_component_test.go +++ b/exporter/googlecloudpubsubexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "googlecloudpubsub", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/googlecloudpubsubexporter/go.mod b/exporter/googlecloudpubsubexporter/go.mod index f3868f364e4a..1e649f924eee 100644 --- a/exporter/googlecloudpubsubexporter/go.mod +++ b/exporter/googlecloudpubsubexporter/go.mod @@ -6,12 +6,12 @@ require ( cloud.google.com/go/pubsub v1.37.0 github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -54,10 +54,10 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect go.einride.tech/aip v0.66.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/exporter/googlecloudpubsubexporter/go.sum b/exporter/googlecloudpubsubexporter/go.sum index 4df29bdad5a2..95d9b83f33a6 100644 --- a/exporter/googlecloudpubsubexporter/go.sum +++ b/exporter/googlecloudpubsubexporter/go.sum @@ -126,28 +126,28 @@ go.einride.tech/aip v0.66.0 h1:XfV+NQX6L7EOYK11yoHHFtndeaWh3KbD9/cN/6iWEt8= go.einride.tech/aip v0.66.0/go.mod h1:qAhMsfT7plxBX+Oy7Huol6YUvZ0ZzdUz26yZsQwfl1M= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/exporter/googlemanagedprometheusexporter/generated_component_test.go b/exporter/googlemanagedprometheusexporter/generated_component_test.go index 3b2347a22313..4974dedd22d7 100644 --- a/exporter/googlemanagedprometheusexporter/generated_component_test.go +++ b/exporter/googlemanagedprometheusexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "googlemanagedprometheus", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/googlemanagedprometheusexporter/go.mod b/exporter/googlemanagedprometheusexporter/go.mod index 9c3c0569f4fe..618b58edaac0 100644 --- a/exporter/googlemanagedprometheusexporter/go.mod +++ b/exporter/googlemanagedprometheusexporter/go.mod @@ -6,11 +6,11 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.46.0 github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector/googlemanagedprometheus v0.46.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -75,24 +75,24 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect diff --git a/exporter/googlemanagedprometheusexporter/go.sum b/exporter/googlemanagedprometheusexporter/go.sum index c1e6a3ec19b0..f196ba1781e4 100644 --- a/exporter/googlemanagedprometheusexporter/go.sum +++ b/exporter/googlemanagedprometheusexporter/go.sum @@ -188,56 +188,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= diff --git a/exporter/honeycombmarkerexporter/generated_component_test.go b/exporter/honeycombmarkerexporter/generated_component_test.go index 688be75d6f16..e03bbbd0562c 100644 --- a/exporter/honeycombmarkerexporter/generated_component_test.go +++ b/exporter/honeycombmarkerexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "honeycombmarker", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/honeycombmarkerexporter/go.mod b/exporter/honeycombmarkerexporter/go.mod index 706e23e310dd..0d5156eeb432 100644 --- a/exporter/honeycombmarkerexporter/go.mod +++ b/exporter/honeycombmarkerexporter/go.mod @@ -6,13 +6,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -53,17 +53,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/honeycombmarkerexporter/go.sum b/exporter/honeycombmarkerexporter/go.sum index 7ec344453b19..b5d6ca4e009f 100644 --- a/exporter/honeycombmarkerexporter/go.sum +++ b/exporter/honeycombmarkerexporter/go.sum @@ -88,44 +88,44 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/influxdbexporter/generated_component_test.go b/exporter/influxdbexporter/generated_component_test.go index 03b0dcab5a4f..e45e603929b4 100644 --- a/exporter/influxdbexporter/generated_component_test.go +++ b/exporter/influxdbexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "influxdb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/influxdbexporter/go.mod b/exporter/influxdbexporter/go.mod index 2027a36a0493..6a2be49cf7f4 100644 --- a/exporter/influxdbexporter/go.mod +++ b/exporter/influxdbexporter/go.mod @@ -8,14 +8,14 @@ require ( github.com/influxdata/influxdb-observability/otel2influx v0.5.8 github.com/influxdata/line-protocol/v2 v2.2.1 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,17 +52,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/influxdbexporter/go.sum b/exporter/influxdbexporter/go.sum index 86374530c4fd..70e37a3d845c 100644 --- a/exporter/influxdbexporter/go.sum +++ b/exporter/influxdbexporter/go.sum @@ -101,46 +101,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/instanaexporter/generated_component_test.go b/exporter/instanaexporter/generated_component_test.go index 6de7f21420ad..9e304f4c6ccc 100644 --- a/exporter/instanaexporter/generated_component_test.go +++ b/exporter/instanaexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "instana", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/instanaexporter/go.mod b/exporter/instanaexporter/go.mod index 8bfbe0ad0b84..2a89edc58575 100644 --- a/exporter/instanaexporter/go.mod +++ b/exporter/instanaexporter/go.mod @@ -5,16 +5,16 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,15 +50,15 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/instanaexporter/go.sum b/exporter/instanaexporter/go.sum index f33655ef336e..a093a8474c8a 100644 --- a/exporter/instanaexporter/go.sum +++ b/exporter/instanaexporter/go.sum @@ -74,46 +74,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/kafkaexporter/generated_component_test.go b/exporter/kafkaexporter/generated_component_test.go index 06bd42403b25..b702c858d37d 100644 --- a/exporter/kafkaexporter/generated_component_test.go +++ b/exporter/kafkaexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "kafka", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/kafkaexporter/go.mod b/exporter/kafkaexporter/go.mod index faac01951363..a16445efabef 100644 --- a/exporter/kafkaexporter/go.mod +++ b/exporter/kafkaexporter/go.mod @@ -14,15 +14,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.98.0 github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -73,11 +73,11 @@ require ( github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/kafkaexporter/go.sum b/exporter/kafkaexporter/go.sum index 5879dd0be8e0..4fadeb5b54bc 100644 --- a/exporter/kafkaexporter/go.sum +++ b/exporter/kafkaexporter/go.sum @@ -131,34 +131,34 @@ github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gi 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/kineticaexporter/generated_component_test.go b/exporter/kineticaexporter/generated_component_test.go index b2ce8ed923d7..3080485ed019 100644 --- a/exporter/kineticaexporter/generated_component_test.go +++ b/exporter/kineticaexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "kinetica", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/kineticaexporter/go.mod b/exporter/kineticaexporter/go.mod index 9af0f27dd5d5..b55eaa9048b4 100644 --- a/exporter/kineticaexporter/go.mod +++ b/exporter/kineticaexporter/go.mod @@ -8,11 +8,11 @@ require ( github.com/samber/lo v1.39.0 github.com/stretchr/testify v1.9.0 github.com/wk8/go-ordered-map/v2 v2.1.8 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -52,12 +52,12 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/ztrue/tracerr v0.3.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/kineticaexporter/go.sum b/exporter/kineticaexporter/go.sum index 066f82b627c0..f2a043099b1f 100644 --- a/exporter/kineticaexporter/go.sum +++ b/exporter/kineticaexporter/go.sum @@ -90,30 +90,30 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/ztrue/tracerr v0.3.0 h1:lDi6EgEYhPYPnKcjsYzmWw4EkFEoA/gfe+I9Y5f+h6Y= github.com/ztrue/tracerr v0.3.0/go.mod h1:qEalzze4VN9O8tnhBXScfCrmoJo10o8TN5ciKjm6Mww= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/loadbalancingexporter/generated_component_test.go b/exporter/loadbalancingexporter/generated_component_test.go index f8e5b0c1fc4f..07d21740ca69 100644 --- a/exporter/loadbalancingexporter/generated_component_test.go +++ b/exporter/loadbalancingexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "loadbalancing", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/loadbalancingexporter/go.mod b/exporter/loadbalancingexporter/go.mod index 2b693b630882..dd2e00c6a74c 100644 --- a/exporter/loadbalancingexporter/go.mod +++ b/exporter/loadbalancingexporter/go.mod @@ -9,14 +9,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -96,30 +96,30 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect diff --git a/exporter/loadbalancingexporter/go.sum b/exporter/loadbalancingexporter/go.sum index 04f3421c73d2..4f454bcfa3fc 100644 --- a/exporter/loadbalancingexporter/go.sum +++ b/exporter/loadbalancingexporter/go.sum @@ -217,72 +217,72 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/exporter/logicmonitorexporter/generated_component_test.go b/exporter/logicmonitorexporter/generated_component_test.go index 08361ca97790..29fe79991853 100644 --- a/exporter/logicmonitorexporter/generated_component_test.go +++ b/exporter/logicmonitorexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "logicmonitor", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/logicmonitorexporter/go.mod b/exporter/logicmonitorexporter/go.mod index 03c75b910c80..49db33466e12 100644 --- a/exporter/logicmonitorexporter/go.mod +++ b/exporter/logicmonitorexporter/go.mod @@ -6,15 +6,15 @@ require ( github.com/logicmonitor/lm-data-sdk-go v1.3.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,16 +50,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/logicmonitorexporter/go.sum b/exporter/logicmonitorexporter/go.sum index 7475933006af..c7a113aaaf5f 100644 --- a/exporter/logicmonitorexporter/go.sum +++ b/exporter/logicmonitorexporter/go.sum @@ -76,44 +76,44 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/logzioexporter/generated_component_test.go b/exporter/logzioexporter/generated_component_test.go index a9cb10971d20..e98ac57e3599 100644 --- a/exporter/logzioexporter/generated_component_test.go +++ b/exporter/logzioexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "logzio", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/logzioexporter/go.mod b/exporter/logzioexporter/go.mod index 336a4dc61e10..af5fad015de1 100644 --- a/exporter/logzioexporter/go.mod +++ b/exporter/logzioexporter/go.mod @@ -7,17 +7,17 @@ require ( github.com/jaegertracing/jaeger v1.55.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -60,15 +60,15 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/logzioexporter/go.sum b/exporter/logzioexporter/go.sum index 988a30c21e98..1295566cfe24 100644 --- a/exporter/logzioexporter/go.sum +++ b/exporter/logzioexporter/go.sum @@ -95,46 +95,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/lokiexporter/generated_component_test.go b/exporter/lokiexporter/generated_component_test.go index 7f18cd15120d..6a558a7fa50b 100644 --- a/exporter/lokiexporter/generated_component_test.go +++ b/exporter/lokiexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "loki", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/lokiexporter/go.mod b/exporter/lokiexporter/go.mod index 6bee68993100..15a93f2e5955 100644 --- a/exporter/lokiexporter/go.mod +++ b/exporter/lokiexporter/go.mod @@ -10,16 +10,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/loki v0.98.0 github.com/prometheus/common v0.52.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -59,15 +59,15 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/lokiexporter/go.sum b/exporter/lokiexporter/go.sum index 04d08ca7c650..39d89ef3a5dc 100644 --- a/exporter/lokiexporter/go.sum +++ b/exporter/lokiexporter/go.sum @@ -120,46 +120,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/mezmoexporter/generated_component_test.go b/exporter/mezmoexporter/generated_component_test.go index 0d2dbd025443..6c3f6ae218b3 100644 --- a/exporter/mezmoexporter/generated_component_test.go +++ b/exporter/mezmoexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "mezmo", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/mezmoexporter/go.mod b/exporter/mezmoexporter/go.mod index ac4622673f5f..704369a12040 100644 --- a/exporter/mezmoexporter/go.mod +++ b/exporter/mezmoexporter/go.mod @@ -5,14 +5,14 @@ go 1.21 require ( github.com/cenkalti/backoff/v4 v4.3.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,17 +47,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/mezmoexporter/go.sum b/exporter/mezmoexporter/go.sum index b34c6e71a1d3..8bf5c9a694e8 100644 --- a/exporter/mezmoexporter/go.sum +++ b/exporter/mezmoexporter/go.sum @@ -74,46 +74,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/opencensusexporter/generated_component_test.go b/exporter/opencensusexporter/generated_component_test.go index d84aadc3e869..42ecf96b46aa 100644 --- a/exporter/opencensusexporter/generated_component_test.go +++ b/exporter/opencensusexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "opencensus", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/opencensusexporter/go.mod b/exporter/opencensusexporter/go.mod index 35b20e31b7c0..bf3ef310d390 100644 --- a/exporter/opencensusexporter/go.mod +++ b/exporter/opencensusexporter/go.mod @@ -8,17 +8,17 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/opencensus v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -61,16 +61,16 @@ require ( github.com/rs/cors v1.10.1 // indirect github.com/soheilhy/cmux v0.1.5 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/opencensusexporter/go.sum b/exporter/opencensusexporter/go.sum index 6615f8979a34..9031c9889490 100644 --- a/exporter/opencensusexporter/go.sum +++ b/exporter/opencensusexporter/go.sum @@ -120,48 +120,48 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/opensearchexporter/generated_component_test.go b/exporter/opensearchexporter/generated_component_test.go index f3abc6a94cca..9b2dfbcec07e 100644 --- a/exporter/opensearchexporter/generated_component_test.go +++ b/exporter/opensearchexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "opensearch", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/opensearchexporter/go.mod b/exporter/opensearchexporter/go.mod index d777bb3379dc..132855bc19e0 100644 --- a/exporter/opensearchexporter/go.mod +++ b/exporter/opensearchexporter/go.mod @@ -6,15 +6,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/opensearch-project/opensearch-go/v2 v2.3.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -57,15 +57,15 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 diff --git a/exporter/opensearchexporter/go.sum b/exporter/opensearchexporter/go.sum index 8a93bfcf1d3b..26d2b13fef3e 100644 --- a/exporter/opensearchexporter/go.sum +++ b/exporter/opensearchexporter/go.sum @@ -102,44 +102,44 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/otelarrowexporter/go.mod b/exporter/otelarrowexporter/go.mod index a1fc14da4745..bc98044c5c98 100644 --- a/exporter/otelarrowexporter/go.mod +++ b/exporter/otelarrowexporter/go.mod @@ -6,17 +6,17 @@ require ( github.com/open-telemetry/otel-arrow v0.18.0 github.com/open-telemetry/otel-arrow/collector v0.20.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 google.golang.org/grpc v1.63.2 @@ -55,14 +55,14 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/otelarrowexporter/go.sum b/exporter/otelarrowexporter/go.sum index 36c39d681f38..f3303523b3e4 100644 --- a/exporter/otelarrowexporter/go.sum +++ b/exporter/otelarrowexporter/go.sum @@ -91,46 +91,46 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/prometheusexporter/generated_component_test.go b/exporter/prometheusexporter/generated_component_test.go index 98bfc75a3f89..b8e4392aeba1 100644 --- a/exporter/prometheusexporter/generated_component_test.go +++ b/exporter/prometheusexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "prometheus", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/prometheusexporter/go.mod b/exporter/prometheusexporter/go.mod index ceb17da87158..f99ea0a68e48 100644 --- a/exporter/prometheusexporter/go.mod +++ b/exporter/prometheusexporter/go.mod @@ -11,15 +11,15 @@ require ( github.com/prometheus/client_model v0.6.1 github.com/prometheus/common v0.52.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -139,16 +139,16 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/vultr/govultr/v2 v2.17.2 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/prometheusexporter/go.sum b/exporter/prometheusexporter/go.sum index 83d1697b95d1..e5bbd275aeb4 100644 --- a/exporter/prometheusexporter/go.sum +++ b/exporter/prometheusexporter/go.sum @@ -563,68 +563,68 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/exporter/prometheusremotewriteexporter/generated_component_test.go b/exporter/prometheusremotewriteexporter/generated_component_test.go index 5ffca178a9d8..9d1310fa72a4 100644 --- a/exporter/prometheusremotewriteexporter/generated_component_test.go +++ b/exporter/prometheusremotewriteexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "prometheusremotewrite", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/prometheusremotewriteexporter/go.mod b/exporter/prometheusremotewriteexporter/go.mod index 24cf82acd430..dbd1f40158c8 100644 --- a/exporter/prometheusremotewriteexporter/go.mod +++ b/exporter/prometheusremotewriteexporter/go.mod @@ -14,15 +14,15 @@ require ( github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 github.com/tidwall/wal v1.1.7 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -60,16 +60,16 @@ require ( github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect github.com/tidwall/tinylru v1.1.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/prometheusremotewriteexporter/go.sum b/exporter/prometheusremotewriteexporter/go.sum index 932fa27d8275..e95585c9c015 100644 --- a/exporter/prometheusremotewriteexporter/go.sum +++ b/exporter/prometheusremotewriteexporter/go.sum @@ -88,46 +88,46 @@ github.com/tidwall/wal v1.1.7 h1:emc1TRjIVsdKKSnpwGBAcsAGg0767SvUk8+ygx7Bb+4= github.com/tidwall/wal v1.1.7/go.mod h1:r6lR1j27W9EPalgHiB7zLJDYu3mzW5BQP5KrzBpYY/E= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/pulsarexporter/generated_component_test.go b/exporter/pulsarexporter/generated_component_test.go index 4979e6a6d81b..5401eebab922 100644 --- a/exporter/pulsarexporter/generated_component_test.go +++ b/exporter/pulsarexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "pulsar", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/pulsarexporter/go.mod b/exporter/pulsarexporter/go.mod index d4b5dacbb15d..0acd398a71ef 100644 --- a/exporter/pulsarexporter/go.mod +++ b/exporter/pulsarexporter/go.mod @@ -10,14 +10,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -69,10 +69,10 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/pulsarexporter/go.sum b/exporter/pulsarexporter/go.sum index 3d43bd72b666..8880e2d6e48c 100644 --- a/exporter/pulsarexporter/go.sum +++ b/exporter/pulsarexporter/go.sum @@ -420,32 +420,32 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/rabbitmqexporter/generated_component_test.go b/exporter/rabbitmqexporter/generated_component_test.go index 78deb8976565..4d25211ea01d 100644 --- a/exporter/rabbitmqexporter/generated_component_test.go +++ b/exporter/rabbitmqexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "rabbitmq", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/rabbitmqexporter/go.mod b/exporter/rabbitmqexporter/go.mod index 2b0d10b1fff6..cd3da4f019b6 100644 --- a/exporter/rabbitmqexporter/go.mod +++ b/exporter/rabbitmqexporter/go.mod @@ -4,12 +4,12 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -38,10 +38,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/rabbitmqexporter/go.sum b/exporter/rabbitmqexporter/go.sum index 16118ddf9c6d..6a7a8a2993ec 100644 --- a/exporter/rabbitmqexporter/go.sum +++ b/exporter/rabbitmqexporter/go.sum @@ -62,28 +62,28 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/sapmexporter/generated_component_test.go b/exporter/sapmexporter/generated_component_test.go index 8a15e3679afc..70c9514f6b8a 100644 --- a/exporter/sapmexporter/generated_component_test.go +++ b/exporter/sapmexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sapm", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/sapmexporter/go.mod b/exporter/sapmexporter/go.mod index 105ec48ffc4f..19a87d4a747c 100644 --- a/exporter/sapmexporter/go.mod +++ b/exporter/sapmexporter/go.mod @@ -11,13 +11,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/signalfx/sapm-proto v0.14.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -51,11 +51,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/sapmexporter/go.sum b/exporter/sapmexporter/go.sum index f30ef22c936c..897aaeb5538a 100644 --- a/exporter/sapmexporter/go.sum +++ b/exporter/sapmexporter/go.sum @@ -114,32 +114,32 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/sentryexporter/generated_component_test.go b/exporter/sentryexporter/generated_component_test.go index e22a7b4b5e9b..625b466fdd5d 100644 --- a/exporter/sentryexporter/generated_component_test.go +++ b/exporter/sentryexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sentry", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/sentryexporter/go.mod b/exporter/sentryexporter/go.mod index 0da94b6d0e1f..2ed9cf973386 100644 --- a/exporter/sentryexporter/go.mod +++ b/exporter/sentryexporter/go.mod @@ -7,11 +7,11 @@ require ( github.com/google/go-cmp v0.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,12 +40,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/sentryexporter/go.sum b/exporter/sentryexporter/go.sum index 032593ab934b..2e5ec2e50bd4 100644 --- a/exporter/sentryexporter/go.sum +++ b/exporter/sentryexporter/go.sum @@ -70,30 +70,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/signalfxexporter/generated_component_test.go b/exporter/signalfxexporter/generated_component_test.go index bd3e511048c3..e8d4497d4715 100644 --- a/exporter/signalfxexporter/generated_component_test.go +++ b/exporter/signalfxexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "signalfx", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/signalfxexporter/go.mod b/exporter/signalfxexporter/go.mod index 7e5dcd29688e..1afe1c23a20b 100644 --- a/exporter/signalfxexporter/go.mod +++ b/exporter/signalfxexporter/go.mod @@ -17,16 +17,16 @@ require ( github.com/shirou/gopsutil/v3 v3.24.3 github.com/signalfx/com_signalfx_metrics_protobuf v0.0.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -72,15 +72,15 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/signalfxexporter/go.sum b/exporter/signalfxexporter/go.sum index d8137378e35a..5935638fd2e7 100644 --- a/exporter/signalfxexporter/go.sum +++ b/exporter/signalfxexporter/go.sum @@ -116,46 +116,46 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/skywalkingexporter/generated_component_test.go b/exporter/skywalkingexporter/generated_component_test.go index 1827d9cf9e4f..1a26d81da1b8 100644 --- a/exporter/skywalkingexporter/generated_component_test.go +++ b/exporter/skywalkingexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "skywalking", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/skywalkingexporter/go.mod b/exporter/skywalkingexporter/go.mod index 850169995d9d..4603ee08be4e 100644 --- a/exporter/skywalkingexporter/go.mod +++ b/exporter/skywalkingexporter/go.mod @@ -7,16 +7,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 google.golang.org/grpc v1.63.2 @@ -50,16 +50,16 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/skywalkingexporter/go.sum b/exporter/skywalkingexporter/go.sum index 6e11648f3f2e..f58d02f90e72 100644 --- a/exporter/skywalkingexporter/go.sum +++ b/exporter/skywalkingexporter/go.sum @@ -121,48 +121,48 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/splunkhecexporter/generated_component_test.go b/exporter/splunkhecexporter/generated_component_test.go index 96814b3ddc8a..8c3794c22749 100644 --- a/exporter/splunkhecexporter/generated_component_test.go +++ b/exporter/splunkhecexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "splunk_hec", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/splunkhecexporter/go.mod b/exporter/splunkhecexporter/go.mod index 3550f5c63ca1..18fa989fc117 100644 --- a/exporter/splunkhecexporter/go.mod +++ b/exporter/splunkhecexporter/go.mod @@ -13,16 +13,16 @@ require ( github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -88,15 +88,15 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/splunkhecexporter/go.sum b/exporter/splunkhecexporter/go.sum index b3fcc25bb622..7e957df12fb4 100644 --- a/exporter/splunkhecexporter/go.sum +++ b/exporter/splunkhecexporter/go.sum @@ -185,46 +185,46 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/sumologicexporter/generated_component_test.go b/exporter/sumologicexporter/generated_component_test.go index 9dc51201a441..b25d93c71310 100644 --- a/exporter/sumologicexporter/generated_component_test.go +++ b/exporter/sumologicexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sumologic", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/sumologicexporter/go.mod b/exporter/sumologicexporter/go.mod index b78f67407f9a..c2f0345a7307 100644 --- a/exporter/sumologicexporter/go.mod +++ b/exporter/sumologicexporter/go.mod @@ -5,13 +5,13 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 ) @@ -46,17 +46,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/sumologicexporter/go.sum b/exporter/sumologicexporter/go.sum index 555bb2a8b877..f524d737d36a 100644 --- a/exporter/sumologicexporter/go.sum +++ b/exporter/sumologicexporter/go.sum @@ -111,44 +111,44 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/exporter/syslogexporter/generated_component_test.go b/exporter/syslogexporter/generated_component_test.go index 4acdd30f1a29..0f3debeced5c 100644 --- a/exporter/syslogexporter/generated_component_test.go +++ b/exporter/syslogexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "syslog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/syslogexporter/go.mod b/exporter/syslogexporter/go.mod index 9a56ba128802..90dddf0afad4 100644 --- a/exporter/syslogexporter/go.mod +++ b/exporter/syslogexporter/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -28,11 +28,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect @@ -49,8 +49,8 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 diff --git a/exporter/syslogexporter/go.sum b/exporter/syslogexporter/go.sum index 183fe9cc8f00..2ae2061e1bac 100644 --- a/exporter/syslogexporter/go.sum +++ b/exporter/syslogexporter/go.sum @@ -64,32 +64,32 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/tencentcloudlogserviceexporter/generated_component_test.go b/exporter/tencentcloudlogserviceexporter/generated_component_test.go index d8ca76aee854..f9cf61195bbc 100644 --- a/exporter/tencentcloudlogserviceexporter/generated_component_test.go +++ b/exporter/tencentcloudlogserviceexporter/generated_component_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/exporter/exportertest" @@ -18,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "tencentcloud_logservice", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/tencentcloudlogserviceexporter/go.mod b/exporter/tencentcloudlogserviceexporter/go.mod index e264786c0b55..5501ec07b8f5 100644 --- a/exporter/tencentcloudlogserviceexporter/go.mod +++ b/exporter/tencentcloudlogserviceexporter/go.mod @@ -7,12 +7,12 @@ require ( github.com/pierrec/lz4 v2.6.1+incompatible github.com/stretchr/testify v1.9.0 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.900 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -43,12 +43,12 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/exporter/tencentcloudlogserviceexporter/go.sum b/exporter/tencentcloudlogserviceexporter/go.sum index 730fe0acec52..9acfc91c8931 100644 --- a/exporter/tencentcloudlogserviceexporter/go.sum +++ b/exporter/tencentcloudlogserviceexporter/go.sum @@ -75,32 +75,32 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.900 h1:uFuR github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.900/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/exporter/zipkinexporter/generated_component_test.go b/exporter/zipkinexporter/generated_component_test.go index 226279eed4ab..dc3bb39fe388 100644 --- a/exporter/zipkinexporter/generated_component_test.go +++ b/exporter/zipkinexporter/generated_component_test.go @@ -19,6 +19,14 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "zipkin", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/exporter/zipkinexporter/go.mod b/exporter/zipkinexporter/go.mod index 251ccc5405b4..bb9aba464f8d 100644 --- a/exporter/zipkinexporter/go.mod +++ b/exporter/zipkinexporter/go.mod @@ -9,15 +9,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.98.0 github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -54,16 +54,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/exporter/zipkinexporter/go.sum b/exporter/zipkinexporter/go.sum index fd1c9da4cc1b..30fe110e4b2a 100644 --- a/exporter/zipkinexporter/go.sum +++ b/exporter/zipkinexporter/go.sum @@ -82,46 +82,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/ackextension/go.mod b/extension/ackextension/go.mod index d3dfa3648ddf..ce5a720d80b3 100644 --- a/extension/ackextension/go.mod +++ b/extension/ackextension/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -30,9 +30,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/ackextension/go.sum b/extension/ackextension/go.sum index 94c30084e79f..7d97e0b5c667 100644 --- a/extension/ackextension/go.sum +++ b/extension/ackextension/go.sum @@ -49,16 +49,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/asapauthextension/go.mod b/extension/asapauthextension/go.mod index 20c5f30175dc..7bd449e185b8 100644 --- a/extension/asapauthextension/go.mod +++ b/extension/asapauthextension/go.mod @@ -6,11 +6,11 @@ require ( bitbucket.org/atlassian/go-asap/v2 v2.8.0 github.com/SermoDigital/jose v0.9.2-0.20180104203859-803625baeddc github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -38,8 +38,8 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/vincent-petithory/dataurl v1.0.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/asapauthextension/go.sum b/extension/asapauthextension/go.sum index e93d96c98420..2397ece631fa 100644 --- a/extension/asapauthextension/go.sum +++ b/extension/asapauthextension/go.sum @@ -62,20 +62,20 @@ github.com/vincent-petithory/dataurl v1.0.0 h1:cXw+kPto8NLuJtlMsI152irrVw9fRDX8A github.com/vincent-petithory/dataurl v1.0.0/go.mod h1:FHafX5vmDzyP+1CQATJn7WFKc9CvnvxyvZy6I1MrG/U= 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/awsproxy/generated_component_test.go b/extension/awsproxy/generated_component_test.go index a8cd2782de76..d2b3413d0892 100644 --- a/extension/awsproxy/generated_component_test.go +++ b/extension/awsproxy/generated_component_test.go @@ -8,10 +8,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awsproxy", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/awsproxy/go.mod b/extension/awsproxy/go.mod index 3992d14b1cb1..456fbe9d4483 100644 --- a/extension/awsproxy/go.mod +++ b/extension/awsproxy/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/proxy v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -39,10 +39,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/awsproxy/go.sum b/extension/awsproxy/go.sum index 511909c8306b..b2ab8b23da61 100644 --- a/extension/awsproxy/go.sum +++ b/extension/awsproxy/go.sum @@ -61,24 +61,24 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/basicauthextension/generated_component_test.go b/extension/basicauthextension/generated_component_test.go index c507fb7186ee..2042b283ecc6 100644 --- a/extension/basicauthextension/generated_component_test.go +++ b/extension/basicauthextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "basicauth", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/basicauthextension/go.mod b/extension/basicauthextension/go.mod index d78e2e84e26d..417be94e4173 100644 --- a/extension/basicauthextension/go.mod +++ b/extension/basicauthextension/go.mod @@ -5,12 +5,12 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 github.com/tg123/go-htpasswd v1.2.2 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/basicauthextension/go.sum b/extension/basicauthextension/go.sum index ab54abc10793..9ebc29cf1bc2 100644 --- a/extension/basicauthextension/go.sum +++ b/extension/basicauthextension/go.sum @@ -59,24 +59,24 @@ github.com/tg123/go-htpasswd v1.2.2 h1:tmNccDsQ+wYsoRfiONzIhDm5OkVHQzN3w4FOBAlN6 github.com/tg123/go-htpasswd v1.2.2/go.mod h1:FcIrK0J+6zptgVwK1JDlqyajW/1B4PtuJ/FLWl7nx8A= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/bearertokenauthextension/generated_component_test.go b/extension/bearertokenauthextension/generated_component_test.go index e4c98d4bbfa0..75661c193a3e 100644 --- a/extension/bearertokenauthextension/generated_component_test.go +++ b/extension/bearertokenauthextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "bearertokenauth", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/bearertokenauthextension/go.mod b/extension/bearertokenauthextension/go.mod index 0f3d6fa0e701..799930fbde48 100644 --- a/extension/bearertokenauthextension/go.mod +++ b/extension/bearertokenauthextension/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/fsnotify/fsnotify v1.7.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -36,8 +36,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/bearertokenauthextension/go.sum b/extension/bearertokenauthextension/go.sum index fdafaeb0d65c..a5064afaa265 100644 --- a/extension/bearertokenauthextension/go.sum +++ b/extension/bearertokenauthextension/go.sum @@ -51,20 +51,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/avrologencodingextension/generated_component_test.go b/extension/encoding/avrologencodingextension/generated_component_test.go index 4f44380062bd..04e12e17ada2 100644 --- a/extension/encoding/avrologencodingextension/generated_component_test.go +++ b/extension/encoding/avrologencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "avro_log_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/avrologencodingextension/go.mod b/extension/encoding/avrologencodingextension/go.mod index 5f073600719a..e6ca66940918 100644 --- a/extension/encoding/avrologencodingextension/go.mod +++ b/extension/encoding/avrologencodingextension/go.mod @@ -6,10 +6,10 @@ require ( github.com/linkedin/goavro/v2 v2.12.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -38,7 +38,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/avrologencodingextension/go.sum b/extension/encoding/avrologencodingextension/go.sum index 0b78bb1a4e78..9119a79e8464 100644 --- a/extension/encoding/avrologencodingextension/go.sum +++ b/extension/encoding/avrologencodingextension/go.sum @@ -69,16 +69,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/go.mod b/extension/encoding/go.mod index 27ec2e15a593..88a9844cc18b 100644 --- a/extension/encoding/go.mod +++ b/extension/encoding/go.mod @@ -3,8 +3,8 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/extension/encod go 1.21 require ( - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 ) require ( @@ -20,9 +20,9 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/extension/encoding/go.sum b/extension/encoding/go.sum index 1698c752f01d..3f5829980315 100644 --- a/extension/encoding/go.sum +++ b/extension/encoding/go.sum @@ -53,16 +53,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/jaegerencodingextension/generated_component_test.go b/extension/encoding/jaegerencodingextension/generated_component_test.go index 25002d065f4f..901cd83e17d3 100644 --- a/extension/encoding/jaegerencodingextension/generated_component_test.go +++ b/extension/encoding/jaegerencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "jaeger_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/jaegerencodingextension/go.mod b/extension/encoding/jaegerencodingextension/go.mod index eb4fa4861f04..02944bfbdb10 100644 --- a/extension/encoding/jaegerencodingextension/go.mod +++ b/extension/encoding/jaegerencodingextension/go.mod @@ -8,10 +8,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,8 +40,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/jaegerencodingextension/go.sum b/extension/encoding/jaegerencodingextension/go.sum index 61573052c537..11d3c08b71c9 100644 --- a/extension/encoding/jaegerencodingextension/go.sum +++ b/extension/encoding/jaegerencodingextension/go.sum @@ -66,18 +66,18 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/jsonlogencodingextension/generated_component_test.go b/extension/encoding/jsonlogencodingextension/generated_component_test.go index 06031169f8a6..da1df97eb243 100644 --- a/extension/encoding/jsonlogencodingextension/generated_component_test.go +++ b/extension/encoding/jsonlogencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "json_log_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/jsonlogencodingextension/go.mod b/extension/encoding/jsonlogencodingextension/go.mod index 66c48aa1be83..b4551353a49e 100644 --- a/extension/encoding/jsonlogencodingextension/go.mod +++ b/extension/encoding/jsonlogencodingextension/go.mod @@ -6,10 +6,10 @@ require ( github.com/json-iterator/go v1.1.12 github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -36,7 +36,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/jsonlogencodingextension/go.sum b/extension/encoding/jsonlogencodingextension/go.sum index a01b3de96871..aaa8161b1173 100644 --- a/extension/encoding/jsonlogencodingextension/go.sum +++ b/extension/encoding/jsonlogencodingextension/go.sum @@ -62,16 +62,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/otlpencodingextension/generated_component_test.go b/extension/encoding/otlpencodingextension/generated_component_test.go index 0d8dcf68c223..a0d87aa0ab80 100644 --- a/extension/encoding/otlpencodingextension/generated_component_test.go +++ b/extension/encoding/otlpencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "otlp_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/otlpencodingextension/go.mod b/extension/encoding/otlpencodingextension/go.mod index 93e532d40129..6a96cb802fe6 100644 --- a/extension/encoding/otlpencodingextension/go.mod +++ b/extension/encoding/otlpencodingextension/go.mod @@ -5,10 +5,10 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -36,7 +36,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/otlpencodingextension/go.sum b/extension/encoding/otlpencodingextension/go.sum index a01b3de96871..aaa8161b1173 100644 --- a/extension/encoding/otlpencodingextension/go.sum +++ b/extension/encoding/otlpencodingextension/go.sum @@ -62,16 +62,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/textencodingextension/generated_component_test.go b/extension/encoding/textencodingextension/generated_component_test.go index 24c3489a465f..a3dbbb63cfad 100644 --- a/extension/encoding/textencodingextension/generated_component_test.go +++ b/extension/encoding/textencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "text_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/textencodingextension/go.mod b/extension/encoding/textencodingextension/go.mod index f492c1613769..1b883b3167ad 100644 --- a/extension/encoding/textencodingextension/go.mod +++ b/extension/encoding/textencodingextension/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,7 +37,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/textencodingextension/go.sum b/extension/encoding/textencodingextension/go.sum index afc5ed80cfc1..600ff0d0a09b 100644 --- a/extension/encoding/textencodingextension/go.sum +++ b/extension/encoding/textencodingextension/go.sum @@ -62,16 +62,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/encoding/zipkinencodingextension/generated_component_test.go b/extension/encoding/zipkinencodingextension/generated_component_test.go index 88fba0d4d201..3fc12c1a70db 100644 --- a/extension/encoding/zipkinencodingextension/generated_component_test.go +++ b/extension/encoding/zipkinencodingextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "zipkin_encoding", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/encoding/zipkinencodingextension/go.mod b/extension/encoding/zipkinencodingextension/go.mod index 0cea0559240e..80aef2c4fd9a 100644 --- a/extension/encoding/zipkinencodingextension/go.mod +++ b/extension/encoding/zipkinencodingextension/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -41,8 +41,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/encoding/zipkinencodingextension/go.sum b/extension/encoding/zipkinencodingextension/go.sum index cf6e19b9ccd3..4c2079b8e5cb 100644 --- a/extension/encoding/zipkinencodingextension/go.sum +++ b/extension/encoding/zipkinencodingextension/go.sum @@ -68,18 +68,18 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/googleclientauthextension/generated_component_test.go b/extension/googleclientauthextension/generated_component_test.go index 35bf792ca1fb..6c4247b9fdc2 100644 --- a/extension/googleclientauthextension/generated_component_test.go +++ b/extension/googleclientauthextension/generated_component_test.go @@ -8,10 +8,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "googleclientauth", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/googleclientauthextension/go.mod b/extension/googleclientauthextension/go.mod index d894d639233f..c0a3912bf806 100644 --- a/extension/googleclientauthextension/go.mod +++ b/extension/googleclientauthextension/go.mod @@ -7,9 +7,9 @@ exclude github.com/knadh/koanf v1.5.0 require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.46.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/googleclientauthextension/go.sum b/extension/googleclientauthextension/go.sum index 3000deb8ddb2..0626ff4df6bc 100644 --- a/extension/googleclientauthextension/go.sum +++ b/extension/googleclientauthextension/go.sum @@ -61,16 +61,16 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/headerssetterextension/generated_component_test.go b/extension/headerssetterextension/generated_component_test.go index 6bfc0c1c3413..1bd3ab0d1194 100644 --- a/extension/headerssetterextension/generated_component_test.go +++ b/extension/headerssetterextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "headers_setter", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/headerssetterextension/go.mod b/extension/headerssetterextension/go.mod index 22fd90c05ef8..bc470d8734d5 100644 --- a/extension/headerssetterextension/go.mod +++ b/extension/headerssetterextension/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -35,8 +35,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/headerssetterextension/go.sum b/extension/headerssetterextension/go.sum index 738b15077681..38cc993d1bc4 100644 --- a/extension/headerssetterextension/go.sum +++ b/extension/headerssetterextension/go.sum @@ -55,22 +55,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/healthcheckextension/generated_component_test.go b/extension/healthcheckextension/generated_component_test.go index 977fe6e5a838..d565eaa6d9bb 100644 --- a/extension/healthcheckextension/generated_component_test.go +++ b/extension/healthcheckextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "health_check", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/healthcheckextension/go.mod b/extension/healthcheckextension/go.mod index 28e2a159d2c6..0e892fcbe84f 100644 --- a/extension/healthcheckextension/go.mod +++ b/extension/healthcheckextension/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -44,15 +44,15 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/healthcheckextension/go.sum b/extension/healthcheckextension/go.sum index c4a09cf79ebb..6cf3ac509d16 100644 --- a/extension/healthcheckextension/go.sum +++ b/extension/healthcheckextension/go.sum @@ -109,36 +109,36 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/httpforwarderextension/generated_component_test.go b/extension/httpforwarderextension/generated_component_test.go index 9b0d80b0414e..d10c14863942 100644 --- a/extension/httpforwarderextension/generated_component_test.go +++ b/extension/httpforwarderextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "http_forwarder", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/httpforwarderextension/go.mod b/extension/httpforwarderextension/go.mod index d34e6ba0857e..5b6b3df4e94b 100644 --- a/extension/httpforwarderextension/go.mod +++ b/extension/httpforwarderextension/go.mod @@ -5,12 +5,12 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -42,14 +42,14 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/httpforwarderextension/go.sum b/extension/httpforwarderextension/go.sum index 0dd71fd70ba4..e4ab65db2538 100644 --- a/extension/httpforwarderextension/go.sum +++ b/extension/httpforwarderextension/go.sum @@ -67,36 +67,36 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/jaegerremotesampling/generated_component_test.go b/extension/jaegerremotesampling/generated_component_test.go index 33dedb1680c5..3bc5f0ee7642 100644 --- a/extension/jaegerremotesampling/generated_component_test.go +++ b/extension/jaegerremotesampling/generated_component_test.go @@ -8,10 +8,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "jaegerremotesampling", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/jaegerremotesampling/go.mod b/extension/jaegerremotesampling/go.mod index 9335aa29f6a8..ee32d3efa571 100644 --- a/extension/jaegerremotesampling/go.mod +++ b/extension/jaegerremotesampling/go.mod @@ -8,15 +8,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 github.com/tilinna/clock v1.1.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -64,13 +64,13 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.18.2 // indirect github.com/subosito/gotenv v1.6.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/extension/jaegerremotesampling/go.sum b/extension/jaegerremotesampling/go.sum index c946142317f2..f84971363a19 100644 --- a/extension/jaegerremotesampling/go.sum +++ b/extension/jaegerremotesampling/go.sum @@ -122,40 +122,40 @@ github.com/tilinna/clock v1.1.0 h1:6IQQQCo6KoBxVudv6gwtY8o4eDfhHo8ojA5dP0MfhSs= github.com/tilinna/clock v1.1.0/go.mod h1:ZsP7BcY7sEEz7ktc0IVy8Us6boDrK8VradlKRUGfOao= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/extension/oauth2clientauthextension/generated_component_test.go b/extension/oauth2clientauthextension/generated_component_test.go index b3941a495e84..da11b9e774fe 100644 --- a/extension/oauth2clientauthextension/generated_component_test.go +++ b/extension/oauth2clientauthextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "oauth2client", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/oauth2clientauthextension/go.mod b/extension/oauth2clientauthextension/go.mod index ccabf18649e5..20bc78803fd9 100644 --- a/extension/oauth2clientauthextension/go.mod +++ b/extension/oauth2clientauthextension/go.mod @@ -4,13 +4,13 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,13 +47,13 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/oauth2clientauthextension/go.sum b/extension/oauth2clientauthextension/go.sum index b801928976bd..6a808a216a12 100644 --- a/extension/oauth2clientauthextension/go.sum +++ b/extension/oauth2clientauthextension/go.sum @@ -71,36 +71,36 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/observer/dockerobserver/go.mod b/extension/observer/dockerobserver/go.mod index a20d2d9113d9..88b3e97c287f 100644 --- a/extension/observer/dockerobserver/go.mod +++ b/extension/observer/dockerobserver/go.mod @@ -10,9 +10,9 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/docker v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -68,8 +68,8 @@ require ( github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.3 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/observer/dockerobserver/go.sum b/extension/observer/dockerobserver/go.sum index 25d840931026..fa572b1c2487 100644 --- a/extension/observer/dockerobserver/go.sum +++ b/extension/observer/dockerobserver/go.sum @@ -137,16 +137,16 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/observer/ecsobserver/go.mod b/extension/observer/ecsobserver/go.mod index 5ce0d2035d6a..c2eabde5a986 100644 --- a/extension/observer/ecsobserver/go.mod +++ b/extension/observer/ecsobserver/go.mod @@ -6,9 +6,9 @@ require ( github.com/aws/aws-sdk-go v1.51.21 github.com/hashicorp/golang-lru v1.0.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/observer/ecsobserver/go.sum b/extension/observer/ecsobserver/go.sum index adc6bcd607de..b79c9fac3b80 100644 --- a/extension/observer/ecsobserver/go.sum +++ b/extension/observer/ecsobserver/go.sum @@ -59,16 +59,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/observer/ecstaskobserver/go.mod b/extension/observer/ecstaskobserver/go.mod index 984500b39a64..c3e56f88cfd3 100644 --- a/extension/observer/ecstaskobserver/go.mod +++ b/extension/observer/ecstaskobserver/go.mod @@ -7,10 +7,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -42,16 +42,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/observer/ecstaskobserver/go.sum b/extension/observer/ecstaskobserver/go.sum index b9f62f12e69b..b1661cf59044 100644 --- a/extension/observer/ecstaskobserver/go.sum +++ b/extension/observer/ecstaskobserver/go.sum @@ -69,36 +69,36 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/observer/hostobserver/generated_component_test.go b/extension/observer/hostobserver/generated_component_test.go index fc8046c1668d..d6c8b0c981b7 100644 --- a/extension/observer/hostobserver/generated_component_test.go +++ b/extension/observer/hostobserver/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "host_observer", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/observer/hostobserver/go.mod b/extension/observer/hostobserver/go.mod index abfb19eadb73..7eba6bf73675 100644 --- a/extension/observer/hostobserver/go.mod +++ b/extension/observer/hostobserver/go.mod @@ -6,9 +6,9 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer v0.98.0 github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -41,8 +41,8 @@ require ( 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 - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/observer/hostobserver/go.sum b/extension/observer/hostobserver/go.sum index 661419911b96..c174079a8a8e 100644 --- a/extension/observer/hostobserver/go.sum +++ b/extension/observer/hostobserver/go.sum @@ -78,16 +78,16 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/observer/k8sobserver/go.mod b/extension/observer/k8sobserver/go.mod index 53d001ae28d7..cc7a4609d0e3 100644 --- a/extension/observer/k8sobserver/go.mod +++ b/extension/observer/k8sobserver/go.mod @@ -6,9 +6,9 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -54,8 +54,8 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/observer/k8sobserver/go.sum b/extension/observer/k8sobserver/go.sum index 88c30d744a1a..0a68e898e6be 100644 --- a/extension/observer/k8sobserver/go.sum +++ b/extension/observer/k8sobserver/go.sum @@ -264,16 +264,16 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/oidcauthextension/generated_component_test.go b/extension/oidcauthextension/generated_component_test.go index 9ea4072ff751..df55bd9a890d 100644 --- a/extension/oidcauthextension/generated_component_test.go +++ b/extension/oidcauthextension/generated_component_test.go @@ -8,10 +8,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "oidc", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/oidcauthextension/go.mod b/extension/oidcauthextension/go.mod index a9a3cc3188e3..40847498dcc5 100644 --- a/extension/oidcauthextension/go.mod +++ b/extension/oidcauthextension/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/coreos/go-oidc/v3 v3.10.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -36,8 +36,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/oidcauthextension/go.sum b/extension/oidcauthextension/go.sum index 5085df9d6bab..2e56727ea9b6 100644 --- a/extension/oidcauthextension/go.sum +++ b/extension/oidcauthextension/go.sum @@ -65,22 +65,22 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/opampextension/generated_component_test.go b/extension/opampextension/generated_component_test.go index 9f981c640967..5d1f33e812ef 100644 --- a/extension/opampextension/generated_component_test.go +++ b/extension/opampextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "opamp", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/opampextension/go.mod b/extension/opampextension/go.mod index ac699aab160d..e87b50d62ead 100644 --- a/extension/opampextension/go.mod +++ b/extension/opampextension/go.mod @@ -7,13 +7,13 @@ require ( github.com/oklog/ulid/v2 v2.1.0 github.com/open-telemetry/opamp-go v0.14.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -44,7 +44,7 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/opampextension/go.sum b/extension/opampextension/go.sum index 605442a394fd..a1c2601b7985 100644 --- a/extension/opampextension/go.sum +++ b/extension/opampextension/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/pprofextension/generated_component_test.go b/extension/pprofextension/generated_component_test.go index 60fd77ba6b37..26e0cebd3385 100644 --- a/extension/pprofextension/generated_component_test.go +++ b/extension/pprofextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "pprof", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/pprofextension/go.mod b/extension/pprofextension/go.mod index 3222c8e410ce..f2937cab15d3 100644 --- a/extension/pprofextension/go.mod +++ b/extension/pprofextension/go.mod @@ -5,10 +5,10 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -35,9 +35,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/pprofextension/go.sum b/extension/pprofextension/go.sum index f8f5b8914dc3..67e69b1bfefa 100644 --- a/extension/pprofextension/go.sum +++ b/extension/pprofextension/go.sum @@ -51,20 +51,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/remotetapextension/generated_component_test.go b/extension/remotetapextension/generated_component_test.go index 2252f12ca8d4..5e6b4bb24cdf 100644 --- a/extension/remotetapextension/generated_component_test.go +++ b/extension/remotetapextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "remotetap", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/remotetapextension/go.mod b/extension/remotetapextension/go.mod index edfa606d8075..55e48413245c 100644 --- a/extension/remotetapextension/go.mod +++ b/extension/remotetapextension/go.mod @@ -4,10 +4,10 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -38,16 +38,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/remotetapextension/go.sum b/extension/remotetapextension/go.sum index 0dd71fd70ba4..e4ab65db2538 100644 --- a/extension/remotetapextension/go.sum +++ b/extension/remotetapextension/go.sum @@ -67,36 +67,36 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/extension/sigv4authextension/generated_component_test.go b/extension/sigv4authextension/generated_component_test.go index d21f1d87dcc7..a24c52bdbf3d 100644 --- a/extension/sigv4authextension/generated_component_test.go +++ b/extension/sigv4authextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sigv4auth", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/sigv4authextension/go.mod b/extension/sigv4authextension/go.mod index 39d3ce47077f..cfa965d920de 100644 --- a/extension/sigv4authextension/go.mod +++ b/extension/sigv4authextension/go.mod @@ -8,10 +8,10 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v1.17.11 github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -46,8 +46,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/sigv4authextension/go.sum b/extension/sigv4authextension/go.sum index 917125228145..0b5162257b1e 100644 --- a/extension/sigv4authextension/go.sum +++ b/extension/sigv4authextension/go.sum @@ -75,18 +75,18 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/solarwindsapmsettingsextension/generated_component_test.go b/extension/solarwindsapmsettingsextension/generated_component_test.go index afbaecbe570d..189a033f5192 100644 --- a/extension/solarwindsapmsettingsextension/generated_component_test.go +++ b/extension/solarwindsapmsettingsextension/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "solarwindsapmsettings", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/solarwindsapmsettingsextension/go.mod b/extension/solarwindsapmsettingsextension/go.mod index 9ff12f34728a..cf76bbea97ec 100644 --- a/extension/solarwindsapmsettingsextension/go.mod +++ b/extension/solarwindsapmsettingsextension/go.mod @@ -4,9 +4,9 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -31,8 +31,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/solarwindsapmsettingsextension/go.sum b/extension/solarwindsapmsettingsextension/go.sum index 6a1eb779608b..eccdfc89204e 100644 --- a/extension/solarwindsapmsettingsextension/go.sum +++ b/extension/solarwindsapmsettingsextension/go.sum @@ -49,16 +49,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/storage/dbstorage/generated_component_test.go b/extension/storage/dbstorage/generated_component_test.go index 65e7b5632143..c7b223d24ec8 100644 --- a/extension/storage/dbstorage/generated_component_test.go +++ b/extension/storage/dbstorage/generated_component_test.go @@ -8,10 +8,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "db_storage", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/storage/dbstorage/go.mod b/extension/storage/dbstorage/go.mod index f3b445d152dc..1710e7ed7754 100644 --- a/extension/storage/dbstorage/go.mod +++ b/extension/storage/dbstorage/go.mod @@ -6,9 +6,9 @@ require ( github.com/jackc/pgx/v5 v5.5.5 github.com/mattn/go-sqlite3 v1.14.22 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/storage/dbstorage/go.sum b/extension/storage/dbstorage/go.sum index c833ec145445..334246082e2c 100644 --- a/extension/storage/dbstorage/go.sum +++ b/extension/storage/dbstorage/go.sum @@ -63,16 +63,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/storage/filestorage/generated_component_test.go b/extension/storage/filestorage/generated_component_test.go index de532e008c6b..fbfa400d6463 100644 --- a/extension/storage/filestorage/generated_component_test.go +++ b/extension/storage/filestorage/generated_component_test.go @@ -13,6 +13,14 @@ import ( "go.opentelemetry.io/collector/extension/extensiontest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "file_storage", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/extension/storage/filestorage/go.mod b/extension/storage/filestorage/go.mod index d855d8c0a696..1e0a7a67c6e7 100644 --- a/extension/storage/filestorage/go.mod +++ b/extension/storage/filestorage/go.mod @@ -5,10 +5,10 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 go.etcd.io/bbolt v1.3.9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -36,8 +36,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/extension/storage/filestorage/go.sum b/extension/storage/filestorage/go.sum index 6252fbb9975d..421acc9bb258 100644 --- a/extension/storage/filestorage/go.sum +++ b/extension/storage/filestorage/go.sum @@ -53,18 +53,18 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.etcd.io/bbolt v1.3.9 h1:8x7aARPEXiXbHmtUwAIv7eV2fQFHrLLavdiJ3uzJXoI= go.etcd.io/bbolt v1.3.9/go.mod h1:zaO32+Ti0PK1ivdPtgMESzuzL2VPoIG1PCQNvOdo/dE= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/storage/go.mod b/extension/storage/go.mod index 7521cde7e9f4..3a7b27824ac9 100644 --- a/extension/storage/go.mod +++ b/extension/storage/go.mod @@ -4,8 +4,8 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) @@ -27,9 +27,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/extension/storage/go.sum b/extension/storage/go.sum index bd0aead38f3f..f10c5af4a432 100644 --- a/extension/storage/go.sum +++ b/extension/storage/go.sum @@ -47,16 +47,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/extension/sumologicextension/go.mod b/extension/sumologicextension/go.mod index 1076858de6b2..115776305f8e 100644 --- a/extension/sumologicextension/go.mod +++ b/extension/sumologicextension/go.mod @@ -8,12 +8,12 @@ require ( github.com/mitchellh/go-ps v1.0.0 github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -51,14 +51,14 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/extension/sumologicextension/go.sum b/extension/sumologicextension/go.sum index 9c4029a562bb..4cf70c3869fc 100644 --- a/extension/sumologicextension/go.sum +++ b/extension/sumologicextension/go.sum @@ -99,36 +99,36 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/go.mod b/go.mod index 536d1b36a2aa..bed1673a6f1c 100644 --- a/go.mod +++ b/go.mod @@ -166,22 +166,22 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowsperfcountersreceiver v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver v0.98.0 - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 ) require ( @@ -617,31 +617,32 @@ require ( go.mongodb.org/atlas v0.36.0 // indirect go.mongodb.org/mongo-driver v1.15.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/go.sum b/go.sum index 11c4eb9089dd..ad10f39bbd5e 100644 --- a/go.sum +++ b/go.sum @@ -1580,90 +1580,92 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:l4HSIsccrBjItUSSpOhJGzhOglEOPDODYsLT7MWdLDU= -go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0h9dDk4USIF9ZjyiSkrptL01bS2bAJTKe6KxkNy4f5Q= -go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:NnyiBhCsFybCO83gEQyzCW0hRkWeMF5/q1bN2jX2tB8= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8 h1:SQkT9I+deVnRsYQGqYNbV3SWUhPxqLbYiDhjJuQrzxA= +go.opentelemetry.io/collector/connector/forwardconnector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:/blQG6MPWPS1pw9vvjGR4hOsLF0wgGQ1eDmLA6sZhCQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:cQHnyAu6qDxqDZSCYAIPapYLOR3Ium/DdOK56cQowUM= +go.opentelemetry.io/collector/exporter/loggingexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:NnyiBhCsFybCO83gEQyzCW0hRkWeMF5/q1bN2jX2tB8= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/internal/aws/containerinsight/go.mod b/internal/aws/containerinsight/go.mod index 8d34caabcbef..22fca0202aea 100644 --- a/internal/aws/containerinsight/go.mod +++ b/internal/aws/containerinsight/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) diff --git a/internal/aws/containerinsight/go.sum b/internal/aws/containerinsight/go.sum index c2c11d1f7708..285989a7dcc4 100644 --- a/internal/aws/containerinsight/go.sum +++ b/internal/aws/containerinsight/go.sum @@ -29,8 +29,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/internal/aws/cwlogs/go.mod b/internal/aws/cwlogs/go.mod index 447a508708ef..a4de65b0c34a 100644 --- a/internal/aws/cwlogs/go.mod +++ b/internal/aws/cwlogs/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/aws/aws-sdk-go v1.51.21 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -22,9 +22,9 @@ require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/internal/aws/cwlogs/go.sum b/internal/aws/cwlogs/go.sum index 3cc80b8345ad..a026bd00ed0b 100644 --- a/internal/aws/cwlogs/go.sum +++ b/internal/aws/cwlogs/go.sum @@ -44,14 +44,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/metric v1.25.0 h1:LUKbS7ArpFL/I2jJHdJcqMGxkRdxpPHE0VU/D4NuEwA= diff --git a/internal/aws/ecsutil/go.mod b/internal/aws/ecsutil/go.mod index 06b1ac976e79..ae2b03cb0ce3 100644 --- a/internal/aws/ecsutil/go.mod +++ b/internal/aws/ecsutil/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -35,18 +35,18 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/internal/aws/ecsutil/go.sum b/internal/aws/ecsutil/go.sum index 59e9be9c86a8..71f1ef7b0846 100644 --- a/internal/aws/ecsutil/go.sum +++ b/internal/aws/ecsutil/go.sum @@ -65,36 +65,36 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.opentelemetry.io/collector/consumer v0.98.0 h1:47zJ5HFKXVA0RciuwkZnPU5W8j0TYUxToB1/zzzgEhs= go.opentelemetry.io/collector/consumer v0.98.0/go.mod h1:c2edTq38uVJET/NE6VV7/Qpyznnlz8b6VE7J6TXD57c= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/internal/aws/proxy/go.mod b/internal/aws/proxy/go.mod index 8b8f43c05bd9..12d89efe5367 100644 --- a/internal/aws/proxy/go.mod +++ b/internal/aws/proxy/go.mod @@ -6,8 +6,8 @@ require ( github.com/aws/aws-sdk-go v1.51.21 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/zap v1.27.0 ) @@ -17,8 +17,8 @@ require ( github.com/hashicorp/go-version v1.6.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/sys v0.14.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/internal/aws/proxy/go.sum b/internal/aws/proxy/go.sum index 67da66a476a8..06dcaf3aa45b 100644 --- a/internal/aws/proxy/go.sum +++ b/internal/aws/proxy/go.sum @@ -34,16 +34,16 @@ 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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= go.opentelemetry.io/collector/confmap v0.98.0 h1:qQreBlrqio1y7uhrAvr+W86YbQ6fw7StgkbYpvJ2vVc= go.opentelemetry.io/collector/confmap v0.98.0/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= 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= diff --git a/internal/aws/xray/go.mod b/internal/aws/xray/go.mod index 0610b0219759..2a0f438840fe 100644 --- a/internal/aws/xray/go.mod +++ b/internal/aws/xray/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go v1.51.21 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -23,9 +23,9 @@ require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/internal/aws/xray/go.sum b/internal/aws/xray/go.sum index 9cc32abe4e19..fe3f1715269e 100644 --- a/internal/aws/xray/go.sum +++ b/internal/aws/xray/go.sum @@ -44,14 +44,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/metric v1.25.0 h1:LUKbS7ArpFL/I2jJHdJcqMGxkRdxpPHE0VU/D4NuEwA= diff --git a/internal/common/go.mod b/internal/common/go.mod index 414412bb6d8b..0b735c89dc22 100644 --- a/internal/common/go.mod +++ b/internal/common/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) diff --git a/internal/common/go.sum b/internal/common/go.sum index f5639bdecfb4..89d5c6d218bb 100644 --- a/internal/common/go.sum +++ b/internal/common/go.sum @@ -12,8 +12,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/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= 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= diff --git a/internal/coreinternal/go.mod b/internal/coreinternal/go.mod index 4274e24e86d5..c8538f5f37a3 100644 --- a/internal/coreinternal/go.mod +++ b/internal/coreinternal/go.mod @@ -9,12 +9,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -76,8 +76,8 @@ require ( 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 - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/internal/coreinternal/go.sum b/internal/coreinternal/go.sum index 2ca171c4e54d..11bd1687b698 100644 --- a/internal/coreinternal/go.sum +++ b/internal/coreinternal/go.sum @@ -143,24 +143,24 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/internal/datadog/go.mod b/internal/datadog/go.mod index 1ebdf7f5e72d..a1f6243a2a0a 100644 --- a/internal/datadog/go.mod +++ b/internal/datadog/go.mod @@ -9,8 +9,8 @@ require ( github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.13.4 github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.13.4 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/sdk/metric v1.25.0 @@ -73,9 +73,9 @@ require ( github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.3 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/internal/datadog/go.sum b/internal/datadog/go.sum index 4e9fc6a1da0d..9cf195fab345 100644 --- a/internal/datadog/go.sum +++ b/internal/datadog/go.sum @@ -184,16 +184,16 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/internal/exp/metrics/go.mod b/internal/exp/metrics/go.mod index ed3cf4987f73..a9b746b390f1 100644 --- a/internal/exp/metrics/go.mod +++ b/internal/exp/metrics/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 ) require ( diff --git a/internal/exp/metrics/go.sum b/internal/exp/metrics/go.sum index 892db6a30443..0e53f8464230 100644 --- a/internal/exp/metrics/go.sum +++ b/internal/exp/metrics/go.sum @@ -31,8 +31,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/internal/filter/go.mod b/internal/filter/go.mod index 9732f5f9b546..ca43fd822135 100644 --- a/internal/filter/go.mod +++ b/internal/filter/go.mod @@ -9,11 +9,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 ) @@ -44,7 +44,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/internal/filter/go.sum b/internal/filter/go.sum index 5dc32fe02b12..f74d6d748234 100644 --- a/internal/filter/go.sum +++ b/internal/filter/go.sum @@ -78,18 +78,18 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/internal/kafka/go.mod b/internal/kafka/go.mod index 2d182f05b247..576923d7f886 100644 --- a/internal/kafka/go.mod +++ b/internal/kafka/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go v1.51.21 github.com/stretchr/testify v1.9.0 github.com/xdg-go/scram v1.1.2 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) @@ -34,7 +34,7 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect golang.org/x/crypto v0.21.0 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/sys v0.18.0 // indirect diff --git a/internal/kafka/go.sum b/internal/kafka/go.sum index a233346be99f..acc4b4d6c219 100644 --- a/internal/kafka/go.sum +++ b/internal/kafka/go.sum @@ -87,10 +87,10 @@ github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3k github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= go.opentelemetry.io/collector/confmap v0.98.0 h1:qQreBlrqio1y7uhrAvr+W86YbQ6fw7StgkbYpvJ2vVc= go.opentelemetry.io/collector/confmap v0.98.0/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= diff --git a/internal/kubelet/go.mod b/internal/kubelet/go.mod index b900624070df..241eba62a9ae 100644 --- a/internal/kubelet/go.mod +++ b/internal/kubelet/go.mod @@ -6,7 +6,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 k8s.io/client-go v0.29.3 @@ -36,7 +36,7 @@ require ( github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/oauth2 v0.14.0 // indirect diff --git a/internal/kubelet/go.sum b/internal/kubelet/go.sum index 6551c38a76c3..34076bd78860 100644 --- a/internal/kubelet/go.sum +++ b/internal/kubelet/go.sum @@ -244,10 +244,10 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= go.opentelemetry.io/collector/confmap v0.98.0 h1:qQreBlrqio1y7uhrAvr+W86YbQ6fw7StgkbYpvJ2vVc= go.opentelemetry.io/collector/confmap v0.98.0/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= diff --git a/internal/metadataproviders/go.mod b/internal/metadataproviders/go.mod index 57edd1f45a31..e0ebcada13d0 100644 --- a/internal/metadataproviders/go.mod +++ b/internal/metadataproviders/go.mod @@ -9,7 +9,7 @@ require ( github.com/hashicorp/consul/api v1.28.2 github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/sdk v1.25.0 go.uber.org/goleak v1.3.0 diff --git a/internal/metadataproviders/go.sum b/internal/metadataproviders/go.sum index 170bf8e9bf3e..a0c9b9005e9b 100644 --- a/internal/metadataproviders/go.sum +++ b/internal/metadataproviders/go.sum @@ -417,8 +417,8 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/internal/sharedcomponent/go.mod b/internal/sharedcomponent/go.mod index b3ad5cebcff3..9ab6277d3008 100644 --- a/internal/sharedcomponent/go.mod +++ b/internal/sharedcomponent/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) @@ -26,9 +26,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/internal/sharedcomponent/go.sum b/internal/sharedcomponent/go.sum index 7503f61ad813..1e6a7ee74dfe 100644 --- a/internal/sharedcomponent/go.sum +++ b/internal/sharedcomponent/go.sum @@ -47,14 +47,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/internal/splunk/go.mod b/internal/splunk/go.mod index 262e7fa90b6f..27538cfadd43 100644 --- a/internal/splunk/go.mod +++ b/internal/splunk/go.mod @@ -4,10 +4,10 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) @@ -26,12 +26,12 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/internal/splunk/go.sum b/internal/splunk/go.sum index 7cad6f87d5ee..14b35a40b244 100644 --- a/internal/splunk/go.sum +++ b/internal/splunk/go.sum @@ -61,30 +61,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/collector/receiver v0.98.0 h1:qw6JYwm+sHcZvM1DByo3QlGe6yGHuwd0yW4hEPVqYKU= go.opentelemetry.io/collector/receiver v0.98.0/go.mod h1:AwIWn+KnquTR+kbhXQrMH+i2PvTCFldSIJznBWFYs0s= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/internal/sqlquery/go.mod b/internal/sqlquery/go.mod index 9c5c79755f43..8e8a0cd134eb 100644 --- a/internal/sqlquery/go.mod +++ b/internal/sqlquery/go.mod @@ -10,9 +10,9 @@ require ( github.com/sijms/go-ora/v2 v2.8.11 github.com/snowflakedb/gosnowflake v1.9.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 ) @@ -84,10 +84,10 @@ require ( github.com/prometheus/procfs v0.13.0 // indirect github.com/sirupsen/logrus v1.9.0 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/internal/sqlquery/go.sum b/internal/sqlquery/go.sum index 34f9b57511b2..44a8c700f7aa 100644 --- a/internal/sqlquery/go.sum +++ b/internal/sqlquery/go.sum @@ -214,20 +214,20 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/internal/tools/go.mod b/internal/tools/go.mod index d9049bc8025d..ce9bd653b786 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -15,8 +15,8 @@ require ( go.opentelemetry.io/build-tools/crosslink v0.13.0 go.opentelemetry.io/build-tools/issuegenerator v0.13.0 go.opentelemetry.io/build-tools/multimod v0.13.0 - go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/cmd/mdatagen v0.98.0 + go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/cmd/mdatagen v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 golang.org/x/tools v0.20.0 golang.org/x/vuln v1.0.4 @@ -222,11 +222,12 @@ require ( go-simpler.org/musttag v0.9.0 // indirect go-simpler.org/sloglint v0.5.0 // indirect go.opentelemetry.io/build-tools v0.13.0 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/filter v0.0.0-20240415172132-06424935fda1 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/internal/tools/go.sum b/internal/tools/go.sum index 840db24330ae..3954112a7f2a 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -703,20 +703,22 @@ go.opentelemetry.io/build-tools/issuegenerator v0.13.0 h1:hAzDPWh/oyBVoYRB5Xb8Y6 go.opentelemetry.io/build-tools/issuegenerator v0.13.0/go.mod h1:hHPQ5lv0apJv0QM8mz/k5nAwacDEEDD+fJ8xYhrKjBM= go.opentelemetry.io/build-tools/multimod v0.13.0 h1:HGAP3zCM8vOTNJSQbjQ5VbKZSctIZxppPBxRTzye7ic= go.opentelemetry.io/build-tools/multimod v0.13.0/go.mod h1:CxZp68c4PIN+bYlVOGB2FvE5zZMBuGz7cGSHv2L7pSc= -go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aQ7Kxo8GK/DfRcBPBcdpRg00izHxVgrlG1m608VP8eg= -go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:e2vx8JvEaGJAy0NVJdX9VjhGzALbezLzdvJNqwClf4w= -go.opentelemetry.io/collector/cmd/mdatagen v0.98.0 h1:6oPAYm4+vefhvnIrb9LpqPYEuBvMhEhX4DJ7tLgewfQ= -go.opentelemetry.io/collector/cmd/mdatagen v0.98.0/go.mod h1:MDmQWcrr10eAH8VeLGg1WNBe5DRp9OjIzM/5N4b2V5M= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416174005-d0f15e2463f8 h1:G/1UxwCAyHs49Z7uR/YeQUiD43Rp97jAy9gBi3NKDpc= +go.opentelemetry.io/collector/cmd/builder v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:e2vx8JvEaGJAy0NVJdX9VjhGzALbezLzdvJNqwClf4w= +go.opentelemetry.io/collector/cmd/mdatagen v0.98.1-0.20240416174005-d0f15e2463f8 h1:7FcO8W0oBcvzmvmxkqTWl91gngy+tZFjrC4OS+DsH10= +go.opentelemetry.io/collector/cmd/mdatagen v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:u1vcHMP2EQHBySTBDlvxwfvxg3joH/bKS1g0wZgTZh0= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/filter v0.0.0-20240415172132-06424935fda1 h1:oZ3yrVZyvLAAQDfAURzrE5JtMQ5JfCzZeJlycRjlh8Y= +go.opentelemetry.io/collector/filter v0.0.0-20240415172132-06424935fda1/go.mod h1:VwVTgM+NeYcd0/EayMJSy0SSxgHpJ/k7QoYvLSTJYiI= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/metric v1.25.0 h1:LUKbS7ArpFL/I2jJHdJcqMGxkRdxpPHE0VU/D4NuEwA= diff --git a/pkg/batchperresourceattr/go.mod b/pkg/batchperresourceattr/go.mod index 435fe7a7f255..9718e2125283 100644 --- a/pkg/batchperresourceattr/go.mod +++ b/pkg/batchperresourceattr/go.mod @@ -4,8 +4,8 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) diff --git a/pkg/batchperresourceattr/go.sum b/pkg/batchperresourceattr/go.sum index ac735769060a..52a072aa6992 100644 --- a/pkg/batchperresourceattr/go.sum +++ b/pkg/batchperresourceattr/go.sum @@ -29,10 +29,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= diff --git a/pkg/batchpersignal/go.mod b/pkg/batchpersignal/go.mod index d15fee66c300..fe7cb6fd466b 100644 --- a/pkg/batchpersignal/go.mod +++ b/pkg/batchpersignal/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/batchpersignal/go.sum b/pkg/batchpersignal/go.sum index af26d67d19c9..6d2f974bdfd1 100644 --- a/pkg/batchpersignal/go.sum +++ b/pkg/batchpersignal/go.sum @@ -30,8 +30,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/experimentalmetricmetadata/go.mod b/pkg/experimentalmetricmetadata/go.mod index dc0b943da890..5064e9a6a864 100644 --- a/pkg/experimentalmetricmetadata/go.mod +++ b/pkg/experimentalmetricmetadata/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/experimentalmetricmetadata/go.sum b/pkg/experimentalmetricmetadata/go.sum index af26d67d19c9..6d2f974bdfd1 100644 --- a/pkg/experimentalmetricmetadata/go.sum +++ b/pkg/experimentalmetricmetadata/go.sum @@ -30,8 +30,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/golden/go.mod b/pkg/golden/go.mod index cd3b269810fb..5abe9b257349 100644 --- a/pkg/golden/go.mod +++ b/pkg/golden/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/pkg/golden/go.sum b/pkg/golden/go.sum index 892db6a30443..0e53f8464230 100644 --- a/pkg/golden/go.sum +++ b/pkg/golden/go.sum @@ -31,8 +31,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/ottl/go.mod b/pkg/ottl/go.mod index dee6c7302564..3ff959f724c3 100644 --- a/pkg/ottl/go.mod +++ b/pkg/ottl/go.mod @@ -11,8 +11,8 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 @@ -40,8 +40,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/pkg/ottl/go.sum b/pkg/ottl/go.sum index 7ee0cc130502..422a0b630647 100644 --- a/pkg/ottl/go.sum +++ b/pkg/ottl/go.sum @@ -72,14 +72,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/pkg/pdatatest/go.mod b/pkg/pdatatest/go.mod index 27ce12c5d003..4e4a89062ef6 100644 --- a/pkg/pdatatest/go.mod +++ b/pkg/pdatatest/go.mod @@ -6,7 +6,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) diff --git a/pkg/pdatatest/go.sum b/pkg/pdatatest/go.sum index 892db6a30443..0e53f8464230 100644 --- a/pkg/pdatatest/go.sum +++ b/pkg/pdatatest/go.sum @@ -31,8 +31,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/pdatautil/go.mod b/pkg/pdatautil/go.mod index 4bcc79855aff..a6eba8f37062 100644 --- a/pkg/pdatautil/go.mod +++ b/pkg/pdatautil/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/cespare/xxhash/v2 v2.3.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/pdatautil/go.sum b/pkg/pdatautil/go.sum index bd75a87f2ccc..bd63dd4099d4 100644 --- a/pkg/pdatautil/go.sum +++ b/pkg/pdatautil/go.sum @@ -21,8 +21,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/resourcetotelemetry/go.mod b/pkg/resourcetotelemetry/go.mod index 7bb5416383a8..78ace4d4fcd4 100644 --- a/pkg/resourcetotelemetry/go.mod +++ b/pkg/resourcetotelemetry/go.mod @@ -5,9 +5,9 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) @@ -24,9 +24,9 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/pkg/resourcetotelemetry/go.sum b/pkg/resourcetotelemetry/go.sum index 62baec120296..52853873cfdd 100644 --- a/pkg/resourcetotelemetry/go.sum +++ b/pkg/resourcetotelemetry/go.sum @@ -57,18 +57,18 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/pkg/sampling/go.mod b/pkg/sampling/go.mod index 3b892aeff09e..daf010db315a 100644 --- a/pkg/sampling/go.mod +++ b/pkg/sampling/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/multierr v1.11.0 ) diff --git a/pkg/sampling/go.sum b/pkg/sampling/go.sum index e704bb96db1a..08acf4121ecb 100644 --- a/pkg/sampling/go.sum +++ b/pkg/sampling/go.sum @@ -19,8 +19,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/stanza/go.mod b/pkg/stanza/go.mod index 16f97a0cc376..0048e26816e7 100644 --- a/pkg/stanza/go.mod +++ b/pkg/stanza/go.mod @@ -14,14 +14,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 github.com/valyala/fastjson v1.6.4 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 @@ -56,9 +56,9 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect diff --git a/pkg/stanza/go.sum b/pkg/stanza/go.sum index fa33946cd44d..66832ca6b34a 100644 --- a/pkg/stanza/go.sum +++ b/pkg/stanza/go.sum @@ -83,30 +83,30 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/pkg/translator/azure/go.mod b/pkg/translator/azure/go.mod index 2b673145080e..7edafb2cb53a 100644 --- a/pkg/translator/azure/go.mod +++ b/pkg/translator/azure/go.mod @@ -7,9 +7,9 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/relvacode/iso8601 v1.4.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc @@ -29,8 +29,8 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/metric v1.25.0 // indirect go.opentelemetry.io/otel/trace v1.25.0 // indirect diff --git a/pkg/translator/azure/go.sum b/pkg/translator/azure/go.sum index 6bfff6acc108..1fc5bc67ac7f 100644 --- a/pkg/translator/azure/go.sum +++ b/pkg/translator/azure/go.sum @@ -49,16 +49,16 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/metric v1.25.0 h1:LUKbS7ArpFL/I2jJHdJcqMGxkRdxpPHE0VU/D4NuEwA= diff --git a/pkg/translator/jaeger/go.mod b/pkg/translator/jaeger/go.mod index fc44cbe3a5f3..585ec0956033 100644 --- a/pkg/translator/jaeger/go.mod +++ b/pkg/translator/jaeger/go.mod @@ -6,8 +6,8 @@ require ( github.com/jaegertracing/jaeger v1.55.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/translator/jaeger/go.sum b/pkg/translator/jaeger/go.sum index 4d10d4482d5d..182ea4cb5825 100644 --- a/pkg/translator/jaeger/go.sum +++ b/pkg/translator/jaeger/go.sum @@ -35,10 +35,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/trace v1.25.0 h1:tqukZGLwQYRIFtSQM2u2+yfMVTgGVeqRLPUYx1Dq6RM= diff --git a/pkg/translator/loki/go.mod b/pkg/translator/loki/go.mod index 82cc4fcb92e0..9a7af686e800 100644 --- a/pkg/translator/loki/go.mod +++ b/pkg/translator/loki/go.mod @@ -11,8 +11,8 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) @@ -33,7 +33,7 @@ require ( github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect diff --git a/pkg/translator/loki/go.sum b/pkg/translator/loki/go.sum index 4cad0507598b..747748ea0a3e 100644 --- a/pkg/translator/loki/go.sum +++ b/pkg/translator/loki/go.sum @@ -97,12 +97,12 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= diff --git a/pkg/translator/opencensus/go.mod b/pkg/translator/opencensus/go.mod index bf07363d4c97..c8a59e81601e 100644 --- a/pkg/translator/opencensus/go.mod +++ b/pkg/translator/opencensus/go.mod @@ -10,8 +10,8 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 google.golang.org/protobuf v1.33.0 ) diff --git a/pkg/translator/opencensus/go.sum b/pkg/translator/opencensus/go.sum index 0369d09e6100..2248ca87041a 100644 --- a/pkg/translator/opencensus/go.sum +++ b/pkg/translator/opencensus/go.sum @@ -75,10 +75,10 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= 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= diff --git a/pkg/translator/prometheus/go.mod b/pkg/translator/prometheus/go.mod index 56eb9a8bd1b4..ede822aedb2e 100644 --- a/pkg/translator/prometheus/go.mod +++ b/pkg/translator/prometheus/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/translator/prometheus/go.sum b/pkg/translator/prometheus/go.sum index e3fb44351547..311d93cf460e 100644 --- a/pkg/translator/prometheus/go.sum +++ b/pkg/translator/prometheus/go.sum @@ -32,10 +32,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/translator/prometheusremotewrite/go.mod b/pkg/translator/prometheusremotewrite/go.mod index e44067a68fa6..0cff9b5d8969 100644 --- a/pkg/translator/prometheusremotewrite/go.mod +++ b/pkg/translator/prometheusremotewrite/go.mod @@ -9,8 +9,8 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) @@ -24,7 +24,7 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.1 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/sys v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect diff --git a/pkg/translator/prometheusremotewrite/go.sum b/pkg/translator/prometheusremotewrite/go.sum index 1ca3494ae409..fce11719becb 100644 --- a/pkg/translator/prometheusremotewrite/go.sum +++ b/pkg/translator/prometheusremotewrite/go.sum @@ -41,12 +41,12 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= 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= diff --git a/pkg/translator/signalfx/go.mod b/pkg/translator/signalfx/go.mod index 1c7e7500886a..c92e62deb664 100644 --- a/pkg/translator/signalfx/go.mod +++ b/pkg/translator/signalfx/go.mod @@ -7,7 +7,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/signalfx/com_signalfx_metrics_protobuf v0.0.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 ) diff --git a/pkg/translator/signalfx/go.sum b/pkg/translator/signalfx/go.sum index 1859d9db4ccc..24cf226afd76 100644 --- a/pkg/translator/signalfx/go.sum +++ b/pkg/translator/signalfx/go.sum @@ -45,8 +45,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= 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= diff --git a/pkg/translator/skywalking/go.mod b/pkg/translator/skywalking/go.mod index e18f3b051388..ef3f71457d44 100644 --- a/pkg/translator/skywalking/go.mod +++ b/pkg/translator/skywalking/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 skywalking.apache.org/repo/goapi v0.0.0-20240104145220-ba7202308dd4 ) diff --git a/pkg/translator/skywalking/go.sum b/pkg/translator/skywalking/go.sum index e0ac2f2d5725..d5f9c295a760 100644 --- a/pkg/translator/skywalking/go.sum +++ b/pkg/translator/skywalking/go.sum @@ -81,10 +81,10 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= diff --git a/pkg/translator/zipkin/go.mod b/pkg/translator/zipkin/go.mod index 6cf589a3488e..3f9361949682 100644 --- a/pkg/translator/zipkin/go.mod +++ b/pkg/translator/zipkin/go.mod @@ -7,8 +7,8 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 ) diff --git a/pkg/translator/zipkin/go.sum b/pkg/translator/zipkin/go.sum index 46561e3cc42f..6b368fea387e 100644 --- a/pkg/translator/zipkin/go.sum +++ b/pkg/translator/zipkin/go.sum @@ -37,10 +37,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/trace v1.25.0 h1:tqukZGLwQYRIFtSQM2u2+yfMVTgGVeqRLPUYx1Dq6RM= diff --git a/processor/attributesprocessor/generated_component_test.go b/processor/attributesprocessor/generated_component_test.go index c387486d4c13..9c768093bbae 100644 --- a/processor/attributesprocessor/generated_component_test.go +++ b/processor/attributesprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "attributes", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/attributesprocessor/go.mod b/processor/attributesprocessor/go.mod index bdcb8978f3f6..c58359f1427a 100644 --- a/processor/attributesprocessor/go.mod +++ b/processor/attributesprocessor/go.mod @@ -8,12 +8,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -49,10 +49,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/attributesprocessor/go.sum b/processor/attributesprocessor/go.sum index 5f33621269cc..37803bdc3971 100644 --- a/processor/attributesprocessor/go.sum +++ b/processor/attributesprocessor/go.sum @@ -78,26 +78,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/cumulativetodeltaprocessor/generated_component_test.go b/processor/cumulativetodeltaprocessor/generated_component_test.go index 2aeec505d542..5973eb9a7c5c 100644 --- a/processor/cumulativetodeltaprocessor/generated_component_test.go +++ b/processor/cumulativetodeltaprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "cumulativetodelta", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/cumulativetodeltaprocessor/go.mod b/processor/cumulativetodeltaprocessor/go.mod index d7d41127ceed..4f0cbd093f3a 100644 --- a/processor/cumulativetodeltaprocessor/go.mod +++ b/processor/cumulativetodeltaprocessor/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,9 +40,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/cumulativetodeltaprocessor/go.sum b/processor/cumulativetodeltaprocessor/go.sum index dcb3513d7551..67bdbdfa6381 100644 --- a/processor/cumulativetodeltaprocessor/go.sum +++ b/processor/cumulativetodeltaprocessor/go.sum @@ -62,22 +62,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/deltatocumulativeprocessor/generated_component_test.go b/processor/deltatocumulativeprocessor/generated_component_test.go index b231fe3cb975..a706be155dcd 100644 --- a/processor/deltatocumulativeprocessor/generated_component_test.go +++ b/processor/deltatocumulativeprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "deltatocumulative", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/deltatocumulativeprocessor/go.mod b/processor/deltatocumulativeprocessor/go.mod index 3dc6cf0c2e3d..5092379f6c41 100644 --- a/processor/deltatocumulativeprocessor/go.mod +++ b/processor/deltatocumulativeprocessor/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/exp/metrics v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -39,9 +39,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect diff --git a/processor/deltatocumulativeprocessor/go.sum b/processor/deltatocumulativeprocessor/go.sum index 2a3cbb16edd2..6433b8059397 100644 --- a/processor/deltatocumulativeprocessor/go.sum +++ b/processor/deltatocumulativeprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/deltatorateprocessor/generated_component_test.go b/processor/deltatorateprocessor/generated_component_test.go index 903565be5c75..d99e627cea13 100644 --- a/processor/deltatorateprocessor/generated_component_test.go +++ b/processor/deltatorateprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "deltatorate", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/deltatorateprocessor/go.mod b/processor/deltatorateprocessor/go.mod index 0545a30b7013..5e9497df346f 100644 --- a/processor/deltatorateprocessor/go.mod +++ b/processor/deltatorateprocessor/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,9 +37,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/deltatorateprocessor/go.sum b/processor/deltatorateprocessor/go.sum index d0b07035fa9b..dd5b951b41de 100644 --- a/processor/deltatorateprocessor/go.sum +++ b/processor/deltatorateprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/filterprocessor/generated_component_test.go b/processor/filterprocessor/generated_component_test.go index 855f7e947b12..0fb4e5539496 100644 --- a/processor/filterprocessor/generated_component_test.go +++ b/processor/filterprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "filter", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/filterprocessor/go.mod b/processor/filterprocessor/go.mod index bf327cc7b857..1aa87bfcbbaa 100644 --- a/processor/filterprocessor/go.mod +++ b/processor/filterprocessor/go.mod @@ -7,11 +7,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/sdk/metric v1.25.0 @@ -50,11 +50,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect diff --git a/processor/filterprocessor/go.sum b/processor/filterprocessor/go.sum index 5f33621269cc..37803bdc3971 100644 --- a/processor/filterprocessor/go.sum +++ b/processor/filterprocessor/go.sum @@ -78,26 +78,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/groupbyattrsprocessor/generated_component_test.go b/processor/groupbyattrsprocessor/generated_component_test.go index 8c3deeabaf78..77cf7d541986 100644 --- a/processor/groupbyattrsprocessor/generated_component_test.go +++ b/processor/groupbyattrsprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "groupbyattrs", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/groupbyattrsprocessor/go.mod b/processor/groupbyattrsprocessor/go.mod index 723420e7f6d2..88301608bd44 100644 --- a/processor/groupbyattrsprocessor/go.mod +++ b/processor/groupbyattrsprocessor/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/sdk/metric v1.25.0 @@ -40,9 +40,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.uber.org/multierr v1.11.0 // indirect diff --git a/processor/groupbyattrsprocessor/go.sum b/processor/groupbyattrsprocessor/go.sum index 2a3cbb16edd2..6433b8059397 100644 --- a/processor/groupbyattrsprocessor/go.sum +++ b/processor/groupbyattrsprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/groupbytraceprocessor/generated_component_test.go b/processor/groupbytraceprocessor/generated_component_test.go index 08a8b70f0bf2..5c86dc1b2ccf 100644 --- a/processor/groupbytraceprocessor/generated_component_test.go +++ b/processor/groupbytraceprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "groupbytrace", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/groupbytraceprocessor/go.mod b/processor/groupbytraceprocessor/go.mod index 995545e15a43..4a43e9f2bce6 100644 --- a/processor/groupbytraceprocessor/go.mod +++ b/processor/groupbytraceprocessor/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/multierr v1.11.0 @@ -39,9 +39,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/groupbytraceprocessor/go.sum b/processor/groupbytraceprocessor/go.sum index 6586b29d9719..0154748df1d8 100644 --- a/processor/groupbytraceprocessor/go.sum +++ b/processor/groupbytraceprocessor/go.sum @@ -97,22 +97,22 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/intervalprocessor/generated_component_test.go b/processor/intervalprocessor/generated_component_test.go index 6e4b8a8e33cb..d8c8fb119c7c 100644 --- a/processor/intervalprocessor/generated_component_test.go +++ b/processor/intervalprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "interval", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/intervalprocessor/go.mod b/processor/intervalprocessor/go.mod index 0a929343deec..947bf424790b 100644 --- a/processor/intervalprocessor/go.mod +++ b/processor/intervalprocessor/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -36,8 +36,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/intervalprocessor/go.sum b/processor/intervalprocessor/go.sum index 4ce6a7b24da6..3bba21adca77 100644 --- a/processor/intervalprocessor/go.sum +++ b/processor/intervalprocessor/go.sum @@ -60,20 +60,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/k8sattributesprocessor/generated_component_test.go b/processor/k8sattributesprocessor/generated_component_test.go index 9aa28c6101cf..f9ad4f7b8254 100644 --- a/processor/k8sattributesprocessor/generated_component_test.go +++ b/processor/k8sattributesprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "k8sattributes", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/k8sattributesprocessor/go.mod b/processor/k8sattributesprocessor/go.mod index 59bfab604162..43f5bc55da51 100644 --- a/processor/k8sattributesprocessor/go.mod +++ b/processor/k8sattributesprocessor/go.mod @@ -9,16 +9,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8stest v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -83,18 +83,18 @@ require ( github.com/rs/cors v1.10.1 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/processor/k8sattributesprocessor/go.sum b/processor/k8sattributesprocessor/go.sum index 0a9d262b4aff..34dd0395e264 100644 --- a/processor/k8sattributesprocessor/go.sum +++ b/processor/k8sattributesprocessor/go.sum @@ -1231,50 +1231,50 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/processor/k8sattributesprocessor/internal/metadata/generated_config.go b/processor/k8sattributesprocessor/internal/metadata/generated_config.go index cda0e14c96ce..0f5901f5ab62 100644 --- a/processor/k8sattributesprocessor/internal/metadata/generated_config.go +++ b/processor/k8sattributesprocessor/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/logstransformprocessor/generated_component_test.go b/processor/logstransformprocessor/generated_component_test.go index cfa49c4d827e..be6187a5e757 100644 --- a/processor/logstransformprocessor/generated_component_test.go +++ b/processor/logstransformprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "logstransform", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/logstransformprocessor/go.mod b/processor/logstransformprocessor/go.mod index 74173aa223c2..e48d771ce699 100644 --- a/processor/logstransformprocessor/go.mod +++ b/processor/logstransformprocessor/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,11 +48,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/logstransformprocessor/go.sum b/processor/logstransformprocessor/go.sum index eefac8184aeb..908b359647e9 100644 --- a/processor/logstransformprocessor/go.sum +++ b/processor/logstransformprocessor/go.sum @@ -77,28 +77,28 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/metricsgenerationprocessor/generated_component_test.go b/processor/metricsgenerationprocessor/generated_component_test.go index 39b2fc951be0..20913ec42cb4 100644 --- a/processor/metricsgenerationprocessor/generated_component_test.go +++ b/processor/metricsgenerationprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "experimental_metricsgeneration", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/metricsgenerationprocessor/go.mod b/processor/metricsgenerationprocessor/go.mod index 3a9fadcb8efe..b5dd89e26e4c 100644 --- a/processor/metricsgenerationprocessor/go.mod +++ b/processor/metricsgenerationprocessor/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,9 +37,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/metricsgenerationprocessor/go.sum b/processor/metricsgenerationprocessor/go.sum index d0b07035fa9b..dd5b951b41de 100644 --- a/processor/metricsgenerationprocessor/go.sum +++ b/processor/metricsgenerationprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/metricstransformprocessor/generated_component_test.go b/processor/metricstransformprocessor/generated_component_test.go index 534d0c11d2c5..a60322fd3ce1 100644 --- a/processor/metricstransformprocessor/generated_component_test.go +++ b/processor/metricstransformprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "metricstransform", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/metricstransformprocessor/go.mod b/processor/metricstransformprocessor/go.mod index 8b38fb727fa6..05ead2155d3f 100644 --- a/processor/metricstransformprocessor/go.mod +++ b/processor/metricstransformprocessor/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,9 +40,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/metricstransformprocessor/go.sum b/processor/metricstransformprocessor/go.sum index 2a3cbb16edd2..6433b8059397 100644 --- a/processor/metricstransformprocessor/go.sum +++ b/processor/metricstransformprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/probabilisticsamplerprocessor/generated_component_test.go b/processor/probabilisticsamplerprocessor/generated_component_test.go index 3000a9b11cee..f7cf50101322 100644 --- a/processor/probabilisticsamplerprocessor/generated_component_test.go +++ b/processor/probabilisticsamplerprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "probabilistic_sampler", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/probabilisticsamplerprocessor/go.mod b/processor/probabilisticsamplerprocessor/go.mod index 42aba8eabd58..c27b44a01eb4 100644 --- a/processor/probabilisticsamplerprocessor/go.mod +++ b/processor/probabilisticsamplerprocessor/go.mod @@ -6,14 +6,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -57,20 +57,20 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/processor/probabilisticsamplerprocessor/go.sum b/processor/probabilisticsamplerprocessor/go.sum index 104e1161773e..96c900a1fa68 100644 --- a/processor/probabilisticsamplerprocessor/go.sum +++ b/processor/probabilisticsamplerprocessor/go.sum @@ -134,56 +134,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/processor/redactionprocessor/generated_component_test.go b/processor/redactionprocessor/generated_component_test.go index 627d42328c05..5b70a8a01366 100644 --- a/processor/redactionprocessor/generated_component_test.go +++ b/processor/redactionprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "redaction", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/redactionprocessor/go.mod b/processor/redactionprocessor/go.mod index e54f2ab11c7e..bace54810dc2 100644 --- a/processor/redactionprocessor/go.mod +++ b/processor/redactionprocessor/go.mod @@ -4,11 +4,11 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,9 +37,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/redactionprocessor/go.sum b/processor/redactionprocessor/go.sum index d0b07035fa9b..dd5b951b41de 100644 --- a/processor/redactionprocessor/go.sum +++ b/processor/redactionprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/remotetapprocessor/generated_component_test.go b/processor/remotetapprocessor/generated_component_test.go index 513272854940..dc1770192f06 100644 --- a/processor/remotetapprocessor/generated_component_test.go +++ b/processor/remotetapprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "remotetap", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/remotetapprocessor/go.mod b/processor/remotetapprocessor/go.mod index f232067a24b7..a512c250ccc8 100644 --- a/processor/remotetapprocessor/go.mod +++ b/processor/remotetapprocessor/go.mod @@ -6,12 +6,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -47,17 +47,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/processor/remotetapprocessor/go.sum b/processor/remotetapprocessor/go.sum index 5721c1252667..7d734268c589 100644 --- a/processor/remotetapprocessor/go.sum +++ b/processor/remotetapprocessor/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/processor/resourcedetectionprocessor/generated_component_test.go b/processor/resourcedetectionprocessor/generated_component_test.go index 915630ecbfb9..b992b890d413 100644 --- a/processor/resourcedetectionprocessor/generated_component_test.go +++ b/processor/resourcedetectionprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "resourcedetection", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/resourcedetectionprocessor/go.mod b/processor/resourcedetectionprocessor/go.mod index 47a5de86ff3b..4e4b29c0125e 100644 --- a/processor/resourcedetectionprocessor/go.mod +++ b/processor/resourcedetectionprocessor/go.mod @@ -14,16 +14,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders v0.98.0 github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -109,14 +109,14 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/processor/resourcedetectionprocessor/go.sum b/processor/resourcedetectionprocessor/go.sum index 7f5c2650c4be..b60f673132ea 100644 --- a/processor/resourcedetectionprocessor/go.sum +++ b/processor/resourcedetectionprocessor/go.sum @@ -470,42 +470,42 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/processor/resourcedetectionprocessor/internal/aws/ec2/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/aws/ec2/internal/metadata/generated_config.go index 1f3ec7b4605f..875b508b5f74 100644 --- a/processor/resourcedetectionprocessor/internal/aws/ec2/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/aws/ec2/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/aws/ecs/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/aws/ecs/internal/metadata/generated_config.go index 2afaf4f9cb8a..a511bf22e835 100644 --- a/processor/resourcedetectionprocessor/internal/aws/ecs/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/aws/ecs/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/aws/eks/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/aws/eks/internal/metadata/generated_config.go index d299f1c2c7ac..fc9cd23ded42 100644 --- a/processor/resourcedetectionprocessor/internal/aws/eks/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/aws/eks/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/aws/elasticbeanstalk/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/aws/elasticbeanstalk/internal/metadata/generated_config.go index cc562a72bed9..9773e9a253a1 100644 --- a/processor/resourcedetectionprocessor/internal/aws/elasticbeanstalk/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/aws/elasticbeanstalk/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/aws/lambda/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/aws/lambda/internal/metadata/generated_config.go index 29d7ab95c051..e9b268ff2abd 100644 --- a/processor/resourcedetectionprocessor/internal/aws/lambda/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/aws/lambda/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/azure/aks/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/azure/aks/internal/metadata/generated_config.go index 2eb05eb09483..9cbb80f6e37f 100644 --- a/processor/resourcedetectionprocessor/internal/azure/aks/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/azure/aks/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/azure/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/azure/internal/metadata/generated_config.go index 1586275021cc..eddb53177ae3 100644 --- a/processor/resourcedetectionprocessor/internal/azure/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/azure/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/consul/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/consul/internal/metadata/generated_config.go index 9acccdfbfee1..3c83744b41a4 100644 --- a/processor/resourcedetectionprocessor/internal/consul/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/consul/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/docker/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/docker/internal/metadata/generated_config.go index 2f0120bf3167..9d3699178a2e 100644 --- a/processor/resourcedetectionprocessor/internal/docker/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/docker/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/gcp/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/gcp/internal/metadata/generated_config.go index a9a8cd052782..7753a7be6717 100644 --- a/processor/resourcedetectionprocessor/internal/gcp/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/gcp/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/heroku/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/heroku/internal/metadata/generated_config.go index bca9e7f3bbff..5df63d6de76a 100644 --- a/processor/resourcedetectionprocessor/internal/heroku/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/heroku/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/k8snode/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/k8snode/internal/metadata/generated_config.go index 19a045429595..e6cce33d5d9e 100644 --- a/processor/resourcedetectionprocessor/internal/k8snode/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/k8snode/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/openshift/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/openshift/internal/metadata/generated_config.go index 85cdadf581eb..d43588f24fa6 100644 --- a/processor/resourcedetectionprocessor/internal/openshift/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/openshift/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourcedetectionprocessor/internal/system/internal/metadata/generated_config.go b/processor/resourcedetectionprocessor/internal/system/internal/metadata/generated_config.go index dcb2bacb5c8f..54a43fc3bceb 100644 --- a/processor/resourcedetectionprocessor/internal/system/internal/metadata/generated_config.go +++ b/processor/resourcedetectionprocessor/internal/system/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/processor/resourceprocessor/generated_component_test.go b/processor/resourceprocessor/generated_component_test.go index 5c851b559f99..3efcd38f93b9 100644 --- a/processor/resourceprocessor/generated_component_test.go +++ b/processor/resourceprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "resource", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/resourceprocessor/go.mod b/processor/resourceprocessor/go.mod index 01190725c2e2..6d4b32500d2d 100644 --- a/processor/resourceprocessor/go.mod +++ b/processor/resourceprocessor/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,9 +40,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/resourceprocessor/go.sum b/processor/resourceprocessor/go.sum index 2a3cbb16edd2..6433b8059397 100644 --- a/processor/resourceprocessor/go.sum +++ b/processor/resourceprocessor/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/routingprocessor/generated_component_test.go b/processor/routingprocessor/generated_component_test.go index 6b0a469d4a2d..6c27a4814969 100644 --- a/processor/routingprocessor/generated_component_test.go +++ b/processor/routingprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "routing", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/routingprocessor/go.mod b/processor/routingprocessor/go.mod index bb7c327f5a05..a7e1be6075d7 100644 --- a/processor/routingprocessor/go.mod +++ b/processor/routingprocessor/go.mod @@ -5,15 +5,15 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -55,19 +55,19 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/routingprocessor/go.sum b/processor/routingprocessor/go.sum index ab682349e5a4..764a50bbeaaf 100644 --- a/processor/routingprocessor/go.sum +++ b/processor/routingprocessor/go.sum @@ -86,50 +86,50 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/processor/schemaprocessor/generated_component_test.go b/processor/schemaprocessor/generated_component_test.go index 0b78d571418c..1741e63c25bd 100644 --- a/processor/schemaprocessor/generated_component_test.go +++ b/processor/schemaprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "schema", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/schemaprocessor/go.mod b/processor/schemaprocessor/go.mod index 7465d518d047..be5063bcce81 100644 --- a/processor/schemaprocessor/go.mod +++ b/processor/schemaprocessor/go.mod @@ -4,12 +4,12 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/schema v0.0.8 go.opentelemetry.io/otel/trace v1.25.0 @@ -46,17 +46,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/processor/schemaprocessor/go.sum b/processor/schemaprocessor/go.sum index ea33702f78af..91c66753c00d 100644 --- a/processor/schemaprocessor/go.sum +++ b/processor/schemaprocessor/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/processor/spanprocessor/generated_component_test.go b/processor/spanprocessor/generated_component_test.go index beaf819ccef9..a06394114993 100644 --- a/processor/spanprocessor/generated_component_test.go +++ b/processor/spanprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "span", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/spanprocessor/go.mod b/processor/spanprocessor/go.mod index 38e965375e84..b3154b7c2e83 100644 --- a/processor/spanprocessor/go.mod +++ b/processor/spanprocessor/go.mod @@ -8,12 +8,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,10 +47,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/spanprocessor/go.sum b/processor/spanprocessor/go.sum index 864752044f50..18fa2b21d8fc 100644 --- a/processor/spanprocessor/go.sum +++ b/processor/spanprocessor/go.sum @@ -76,26 +76,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/sumologicprocessor/generated_component_test.go b/processor/sumologicprocessor/generated_component_test.go index 71ffdc0d85f4..7e4fe4480c5d 100644 --- a/processor/sumologicprocessor/generated_component_test.go +++ b/processor/sumologicprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sumologic", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/sumologicprocessor/go.mod b/processor/sumologicprocessor/go.mod index 0c7d45ae363f..e0bf7ef01052 100644 --- a/processor/sumologicprocessor/go.mod +++ b/processor/sumologicprocessor/go.mod @@ -4,13 +4,13 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -55,21 +55,21 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/processor/sumologicprocessor/go.sum b/processor/sumologicprocessor/go.sum index 1296e06fe025..3f45212bdb84 100644 --- a/processor/sumologicprocessor/go.sum +++ b/processor/sumologicprocessor/go.sum @@ -136,56 +136,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/processor/tailsamplingprocessor/generated_component_test.go b/processor/tailsamplingprocessor/generated_component_test.go index fb5f89f0b1ea..805253ddfebe 100644 --- a/processor/tailsamplingprocessor/generated_component_test.go +++ b/processor/tailsamplingprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "tail_sampling", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/tailsamplingprocessor/go.mod b/processor/tailsamplingprocessor/go.mod index 29cfdb89d4c6..98c64d93d027 100644 --- a/processor/tailsamplingprocessor/go.mod +++ b/processor/tailsamplingprocessor/go.mod @@ -10,13 +10,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -49,8 +49,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/tailsamplingprocessor/go.sum b/processor/tailsamplingprocessor/go.sum index b0b2e31eab19..5214169ad340 100644 --- a/processor/tailsamplingprocessor/go.sum +++ b/processor/tailsamplingprocessor/go.sum @@ -114,24 +114,24 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/processor/transformprocessor/generated_component_test.go b/processor/transformprocessor/generated_component_test.go index 368d432fbd87..bf505292315e 100644 --- a/processor/transformprocessor/generated_component_test.go +++ b/processor/transformprocessor/generated_component_test.go @@ -20,6 +20,14 @@ import ( "go.opentelemetry.io/collector/processor/processortest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "transform", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/processor/transformprocessor/go.mod b/processor/transformprocessor/go.mod index 65d6e270312e..568fa54629f1 100644 --- a/processor/transformprocessor/go.mod +++ b/processor/transformprocessor/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,9 +48,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/processor/transformprocessor/go.sum b/processor/transformprocessor/go.sum index 447d2a779bb3..24eca289e665 100644 --- a/processor/transformprocessor/go.sum +++ b/processor/transformprocessor/go.sum @@ -74,24 +74,24 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/activedirectorydsreceiver/go.mod b/receiver/activedirectorydsreceiver/go.mod index 44dc843198dc..aa5f88a96c89 100644 --- a/receiver/activedirectorydsreceiver/go.mod +++ b/receiver/activedirectorydsreceiver/go.mod @@ -8,11 +8,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/winperfcounters v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,8 +43,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/activedirectorydsreceiver/go.sum b/receiver/activedirectorydsreceiver/go.sum index b32a373bf395..544072fb1aa3 100644 --- a/receiver/activedirectorydsreceiver/go.sum +++ b/receiver/activedirectorydsreceiver/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/activedirectorydsreceiver/internal/metadata/generated_config.go b/receiver/activedirectorydsreceiver/internal/metadata/generated_config.go index b894757e9242..48b664de31bb 100644 --- a/receiver/activedirectorydsreceiver/internal/metadata/generated_config.go +++ b/receiver/activedirectorydsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics.go b/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics.go index 072e6161653e..0ac67d6291b4 100644 --- a/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics.go @@ -1196,6 +1196,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricActiveDirectoryDsSuboperationRate: newMetricActiveDirectoryDsSuboperationRate(mbc.Metrics.ActiveDirectoryDsSuboperationRate), metricActiveDirectoryDsThreadCount: newMetricActiveDirectoryDsThreadCount(mbc.Metrics.ActiveDirectoryDsThreadCount), } + for _, op := range options { op(mb) } @@ -1273,6 +1274,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics_test.go b/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics_test.go index 2d38534a9c60..42b9356c5e07 100644 --- a/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/activedirectorydsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -130,7 +134,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -140,10 +144,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/aerospikereceiver/generated_component_test.go b/receiver/aerospikereceiver/generated_component_test.go index 124e5f195923..36710eb377ee 100644 --- a/receiver/aerospikereceiver/generated_component_test.go +++ b/receiver/aerospikereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "aerospike", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/aerospikereceiver/go.mod b/receiver/aerospikereceiver/go.mod index 3f5122d3cd7e..ebf082111ee0 100644 --- a/receiver/aerospikereceiver/go.mod +++ b/receiver/aerospikereceiver/go.mod @@ -10,13 +10,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -82,8 +83,8 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yuin/gopher-lua v0.0.0-20220504180219-658193537a64 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/aerospikereceiver/go.sum b/receiver/aerospikereceiver/go.sum index 8cf1c9adb34a..417edf22a99a 100644 --- a/receiver/aerospikereceiver/go.sum +++ b/receiver/aerospikereceiver/go.sum @@ -158,26 +158,28 @@ github.com/yuin/gopher-lua v0.0.0-20220504180219-658193537a64 h1:5mLPGnFdSsevFRF github.com/yuin/gopher-lua v0.0.0-20220504180219-658193537a64/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/aerospikereceiver/internal/metadata/generated_config.go b/receiver/aerospikereceiver/internal/metadata/generated_config.go index ff333fa417b2..442d0ed372f0 100644 --- a/receiver/aerospikereceiver/internal/metadata/generated_config.go +++ b/receiver/aerospikereceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -90,7 +93,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/aerospikereceiver/internal/metadata/generated_metrics.go b/receiver/aerospikereceiver/internal/metadata/generated_metrics.go index 2056fc30a5e5..31939cc1ba58 100644 --- a/receiver/aerospikereceiver/internal/metadata/generated_metrics.go +++ b/receiver/aerospikereceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1078,6 +1079,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricAerospikeNamespaceDiskAvailable metricAerospikeNamespaceDiskAvailable metricAerospikeNamespaceGeojsonRegionQueryCells metricAerospikeNamespaceGeojsonRegionQueryCells metricAerospikeNamespaceGeojsonRegionQueryFalsePositive metricAerospikeNamespaceGeojsonRegionQueryFalsePositive @@ -1124,7 +1127,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricAerospikeNodeConnectionOpen: newMetricAerospikeNodeConnectionOpen(mbc.Metrics.AerospikeNodeConnectionOpen), metricAerospikeNodeMemoryFree: newMetricAerospikeNodeMemoryFree(mbc.Metrics.AerospikeNodeMemoryFree), metricAerospikeNodeQueryTracked: newMetricAerospikeNodeQueryTracked(mbc.Metrics.AerospikeNodeQueryTracked), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.AerospikeNamespace.Include != nil { + mb.resourceAttributeIncludeFilter["aerospike.namespace"] = filter.CreateFilter(mbc.ResourceAttributes.AerospikeNamespace.Include) + } + if mbc.ResourceAttributes.AerospikeNamespace.Exclude != nil { + mb.resourceAttributeExcludeFilter["aerospike.namespace"] = filter.CreateFilter(mbc.ResourceAttributes.AerospikeNamespace.Exclude) + } + if mbc.ResourceAttributes.AerospikeNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["aerospike.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.AerospikeNodeName.Include) + } + if mbc.ResourceAttributes.AerospikeNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["aerospike.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.AerospikeNodeName.Exclude) + } + for _, op := range options { op(mb) } @@ -1203,6 +1221,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/aerospikereceiver/internal/metadata/generated_metrics_test.go b/receiver/aerospikereceiver/internal/metadata/generated_metrics_test.go index 55d9df5c5cfd..0d341b46f843 100644 --- a/receiver/aerospikereceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/aerospikereceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -117,7 +130,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -127,10 +140,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/aerospikereceiver/internal/metadata/testdata/config.yaml b/receiver/aerospikereceiver/internal/metadata/testdata/config.yaml index b8eee0aa02d3..9192ace4cec0 100644 --- a/receiver/aerospikereceiver/internal/metadata/testdata/config.yaml +++ b/receiver/aerospikereceiver/internal/metadata/testdata/config.yaml @@ -69,3 +69,23 @@ none_set: enabled: false aerospike.node.name: enabled: false +filter_set_include: + resource_attributes: + aerospike.namespace: + enabled: true + include: + - regexp: ".*" + aerospike.node.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + aerospike.namespace: + enabled: true + exclude: + - strict: "aerospike.namespace-val" + aerospike.node.name: + enabled: true + exclude: + - strict: "aerospike.node.name-val" diff --git a/receiver/apachereceiver/generated_component_test.go b/receiver/apachereceiver/generated_component_test.go index 6211b6eafbe7..e866c9aa6f2c 100644 --- a/receiver/apachereceiver/generated_component_test.go +++ b/receiver/apachereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "apache", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/apachereceiver/go.mod b/receiver/apachereceiver/go.mod index daf2ee71158e..cf2c0fed4c26 100644 --- a/receiver/apachereceiver/go.mod +++ b/receiver/apachereceiver/go.mod @@ -9,13 +9,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,15 +82,15 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/apachereceiver/go.sum b/receiver/apachereceiver/go.sum index a16aa83213a4..0ba21e6e4b6e 100644 --- a/receiver/apachereceiver/go.sum +++ b/receiver/apachereceiver/go.sum @@ -151,40 +151,42 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/apachereceiver/internal/metadata/generated_config.go b/receiver/apachereceiver/internal/metadata/generated_config.go index e558775ca36a..8a8f50252f4b 100644 --- a/receiver/apachereceiver/internal/metadata/generated_config.go +++ b/receiver/apachereceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -82,7 +85,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/apachereceiver/internal/metadata/generated_metrics.go b/receiver/apachereceiver/internal/metadata/generated_metrics.go index 06cd9722312a..a7251601b0ae 100644 --- a/receiver/apachereceiver/internal/metadata/generated_metrics.go +++ b/receiver/apachereceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -776,6 +777,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricApacheCPULoad metricApacheCPULoad metricApacheCPUTime metricApacheCPUTime metricApacheCurrentConnections metricApacheCurrentConnections @@ -818,7 +821,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricApacheTraffic: newMetricApacheTraffic(mbc.Metrics.ApacheTraffic), metricApacheUptime: newMetricApacheUptime(mbc.Metrics.ApacheUptime), metricApacheWorkers: newMetricApacheWorkers(mbc.Metrics.ApacheWorkers), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ApacheServerName.Include != nil { + mb.resourceAttributeIncludeFilter["apache.server.name"] = filter.CreateFilter(mbc.ResourceAttributes.ApacheServerName.Include) + } + if mbc.ResourceAttributes.ApacheServerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["apache.server.name"] = filter.CreateFilter(mbc.ResourceAttributes.ApacheServerName.Exclude) + } + if mbc.ResourceAttributes.ApacheServerPort.Include != nil { + mb.resourceAttributeIncludeFilter["apache.server.port"] = filter.CreateFilter(mbc.ResourceAttributes.ApacheServerPort.Include) + } + if mbc.ResourceAttributes.ApacheServerPort.Exclude != nil { + mb.resourceAttributeExcludeFilter["apache.server.port"] = filter.CreateFilter(mbc.ResourceAttributes.ApacheServerPort.Exclude) + } + for _, op := range options { op(mb) } @@ -895,6 +913,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/apachereceiver/internal/metadata/generated_metrics_test.go b/receiver/apachereceiver/internal/metadata/generated_metrics_test.go index cb8fab6b1e04..a42ffbe3b524 100644 --- a/receiver/apachereceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/apachereceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -109,7 +122,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -119,10 +132,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/apachereceiver/internal/metadata/testdata/config.yaml b/receiver/apachereceiver/internal/metadata/testdata/config.yaml index 0afbe1b42a6a..66abef50cfa7 100644 --- a/receiver/apachereceiver/internal/metadata/testdata/config.yaml +++ b/receiver/apachereceiver/internal/metadata/testdata/config.yaml @@ -61,3 +61,23 @@ none_set: enabled: false apache.server.port: enabled: false +filter_set_include: + resource_attributes: + apache.server.name: + enabled: true + include: + - regexp: ".*" + apache.server.port: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + apache.server.name: + enabled: true + exclude: + - strict: "apache.server.name-val" + apache.server.port: + enabled: true + exclude: + - strict: "apache.server.port-val" diff --git a/receiver/apachesparkreceiver/generated_component_test.go b/receiver/apachesparkreceiver/generated_component_test.go index 3fdd6702728a..573752354cbf 100644 --- a/receiver/apachesparkreceiver/generated_component_test.go +++ b/receiver/apachesparkreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "apachespark", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/apachesparkreceiver/go.mod b/receiver/apachesparkreceiver/go.mod index 532089c7c15b..6cefb654d773 100644 --- a/receiver/apachesparkreceiver/go.mod +++ b/receiver/apachesparkreceiver/go.mod @@ -9,12 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,16 +82,16 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/apachesparkreceiver/go.sum b/receiver/apachesparkreceiver/go.sum index fa3ae174b4ab..c8e1cd53385d 100644 --- a/receiver/apachesparkreceiver/go.sum +++ b/receiver/apachesparkreceiver/go.sum @@ -152,40 +152,42 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/apachesparkreceiver/internal/metadata/generated_config.go b/receiver/apachesparkreceiver/internal/metadata/generated_config.go index 77c919d1ff82..ed531ffe3c8f 100644 --- a/receiver/apachesparkreceiver/internal/metadata/generated_config.go +++ b/receiver/apachesparkreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -286,7 +289,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/apachesparkreceiver/internal/metadata/generated_metrics.go b/receiver/apachesparkreceiver/internal/metadata/generated_metrics.go index 7fa2122551cf..fb7c13ef310e 100644 --- a/receiver/apachesparkreceiver/internal/metadata/generated_metrics.go +++ b/receiver/apachesparkreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -3535,6 +3536,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricSparkDriverBlockManagerDiskUsage metricSparkDriverBlockManagerDiskUsage metricSparkDriverBlockManagerMemoryUsage metricSparkDriverBlockManagerMemoryUsage metricSparkDriverCodeGeneratorCompilationAverageTime metricSparkDriverCodeGeneratorCompilationAverageTime @@ -3679,7 +3682,46 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSparkStageTaskActive: newMetricSparkStageTaskActive(mbc.Metrics.SparkStageTaskActive), metricSparkStageTaskResult: newMetricSparkStageTaskResult(mbc.Metrics.SparkStageTaskResult), metricSparkStageTaskResultSize: newMetricSparkStageTaskResultSize(mbc.Metrics.SparkStageTaskResultSize), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.SparkApplicationID.Include != nil { + mb.resourceAttributeIncludeFilter["spark.application.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkApplicationID.Include) + } + if mbc.ResourceAttributes.SparkApplicationID.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.application.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkApplicationID.Exclude) + } + if mbc.ResourceAttributes.SparkApplicationName.Include != nil { + mb.resourceAttributeIncludeFilter["spark.application.name"] = filter.CreateFilter(mbc.ResourceAttributes.SparkApplicationName.Include) + } + if mbc.ResourceAttributes.SparkApplicationName.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.application.name"] = filter.CreateFilter(mbc.ResourceAttributes.SparkApplicationName.Exclude) + } + if mbc.ResourceAttributes.SparkExecutorID.Include != nil { + mb.resourceAttributeIncludeFilter["spark.executor.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkExecutorID.Include) + } + if mbc.ResourceAttributes.SparkExecutorID.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.executor.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkExecutorID.Exclude) + } + if mbc.ResourceAttributes.SparkJobID.Include != nil { + mb.resourceAttributeIncludeFilter["spark.job.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkJobID.Include) + } + if mbc.ResourceAttributes.SparkJobID.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.job.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkJobID.Exclude) + } + if mbc.ResourceAttributes.SparkStageAttemptID.Include != nil { + mb.resourceAttributeIncludeFilter["spark.stage.attempt.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkStageAttemptID.Include) + } + if mbc.ResourceAttributes.SparkStageAttemptID.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.stage.attempt.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkStageAttemptID.Exclude) + } + if mbc.ResourceAttributes.SparkStageID.Include != nil { + mb.resourceAttributeIncludeFilter["spark.stage.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkStageID.Include) + } + if mbc.ResourceAttributes.SparkStageID.Exclude != nil { + mb.resourceAttributeExcludeFilter["spark.stage.id"] = filter.CreateFilter(mbc.ResourceAttributes.SparkStageID.Exclude) + } + for _, op := range options { op(mb) } @@ -3807,6 +3849,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/apachesparkreceiver/internal/metadata/generated_metrics_test.go b/receiver/apachesparkreceiver/internal/metadata/generated_metrics_test.go index afda7b3b1786..b2c5d8fee889 100644 --- a/receiver/apachesparkreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/apachesparkreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -317,7 +330,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -327,10 +340,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/apachesparkreceiver/internal/metadata/testdata/config.yaml b/receiver/apachesparkreceiver/internal/metadata/testdata/config.yaml index 02f553e1e0c4..8db1fcc17c5c 100644 --- a/receiver/apachesparkreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/apachesparkreceiver/internal/metadata/testdata/config.yaml @@ -281,3 +281,55 @@ none_set: enabled: false spark.stage.id: enabled: false +filter_set_include: + resource_attributes: + spark.application.id: + enabled: true + include: + - regexp: ".*" + spark.application.name: + enabled: true + include: + - regexp: ".*" + spark.executor.id: + enabled: true + include: + - regexp: ".*" + spark.job.id: + enabled: true + include: + - regexp: ".*" + spark.stage.attempt.id: + enabled: true + include: + - regexp: ".*" + spark.stage.id: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + spark.application.id: + enabled: true + exclude: + - strict: "spark.application.id-val" + spark.application.name: + enabled: true + exclude: + - strict: "spark.application.name-val" + spark.executor.id: + enabled: true + exclude: + - strict: "spark.executor.id-val" + spark.job.id: + enabled: true + exclude: + - regexp: ".*" + spark.stage.attempt.id: + enabled: true + exclude: + - regexp: ".*" + spark.stage.id: + enabled: true + exclude: + - regexp: ".*" diff --git a/receiver/awscloudwatchmetricsreceiver/generated_component_test.go b/receiver/awscloudwatchmetricsreceiver/generated_component_test.go index 1fd4d58323cb..992eff5be469 100644 --- a/receiver/awscloudwatchmetricsreceiver/generated_component_test.go +++ b/receiver/awscloudwatchmetricsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awscloudwatchmetrics", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/awscloudwatchmetricsreceiver/go.mod b/receiver/awscloudwatchmetricsreceiver/go.mod index 8066f34eeec4..7b18057fe6cd 100644 --- a/receiver/awscloudwatchmetricsreceiver/go.mod +++ b/receiver/awscloudwatchmetricsreceiver/go.mod @@ -4,10 +4,10 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -36,8 +36,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/awscloudwatchmetricsreceiver/go.sum b/receiver/awscloudwatchmetricsreceiver/go.sum index 4edf353265cc..11bf6d806cc7 100644 --- a/receiver/awscloudwatchmetricsreceiver/go.sum +++ b/receiver/awscloudwatchmetricsreceiver/go.sum @@ -61,20 +61,20 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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 v0.98.0 h1:O7bpARGWzNfFQEYevLl4iigDrpGTJY3vV/kKqNZzMOk= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/awscloudwatchreceiver/generated_component_test.go b/receiver/awscloudwatchreceiver/generated_component_test.go index 271cdd14ee29..2f32994936a7 100644 --- a/receiver/awscloudwatchreceiver/generated_component_test.go +++ b/receiver/awscloudwatchreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awscloudwatch", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/awscloudwatchreceiver/go.mod b/receiver/awscloudwatchreceiver/go.mod index dc5723bbd77c..b77b577a6094 100644 --- a/receiver/awscloudwatchreceiver/go.mod +++ b/receiver/awscloudwatchreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,7 +43,7 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/awscloudwatchreceiver/go.sum b/receiver/awscloudwatchreceiver/go.sum index d91f27d7c8a6..204a11cdcf51 100644 --- a/receiver/awscloudwatchreceiver/go.sum +++ b/receiver/awscloudwatchreceiver/go.sum @@ -69,20 +69,20 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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 v0.98.0 h1:O7bpARGWzNfFQEYevLl4iigDrpGTJY3vV/kKqNZzMOk= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/awscontainerinsightreceiver/generated_component_test.go b/receiver/awscontainerinsightreceiver/generated_component_test.go index 143f89a86bdf..19746bfe2d02 100644 --- a/receiver/awscontainerinsightreceiver/generated_component_test.go +++ b/receiver/awscontainerinsightreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awscontainerinsightreceiver", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/awscontainerinsightreceiver/go.mod b/receiver/awscontainerinsightreceiver/go.mod index 4ab379848ce1..a1e142116645 100644 --- a/receiver/awscontainerinsightreceiver/go.mod +++ b/receiver/awscontainerinsightreceiver/go.mod @@ -13,12 +13,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/kubelet v0.98.0 github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -116,16 +116,16 @@ require ( github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852 // indirect github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/awscontainerinsightreceiver/go.sum b/receiver/awscontainerinsightreceiver/go.sum index 4a69a9834245..1b1737253e1b 100644 --- a/receiver/awscontainerinsightreceiver/go.sum +++ b/receiver/awscontainerinsightreceiver/go.sum @@ -392,40 +392,40 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/awsecscontainermetricsreceiver/go.mod b/receiver/awsecscontainermetricsreceiver/go.mod index 81b772714095..24cfb4e0e8b4 100644 --- a/receiver/awsecscontainermetricsreceiver/go.mod +++ b/receiver/awsecscontainermetricsreceiver/go.mod @@ -7,13 +7,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,16 +48,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/awsecscontainermetricsreceiver/go.sum b/receiver/awsecscontainermetricsreceiver/go.sum index 8574e9fa028a..1929f767bc7a 100644 --- a/receiver/awsecscontainermetricsreceiver/go.sum +++ b/receiver/awsecscontainermetricsreceiver/go.sum @@ -76,42 +76,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/awsfirehosereceiver/generated_component_test.go b/receiver/awsfirehosereceiver/generated_component_test.go index 433dd2fe85ca..456d53cbec26 100644 --- a/receiver/awsfirehosereceiver/generated_component_test.go +++ b/receiver/awsfirehosereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awsfirehose", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/awsfirehosereceiver/go.mod b/receiver/awsfirehosereceiver/go.mod index b38e44251fea..ec001c46bd7b 100644 --- a/receiver/awsfirehosereceiver/go.mod +++ b/receiver/awsfirehosereceiver/go.mod @@ -5,15 +5,15 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,14 +48,14 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/awsfirehosereceiver/go.sum b/receiver/awsfirehosereceiver/go.sum index 3e0b3212988b..43f271b1b2a5 100644 --- a/receiver/awsfirehosereceiver/go.sum +++ b/receiver/awsfirehosereceiver/go.sum @@ -72,42 +72,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/awss3receiver/generated_component_test.go b/receiver/awss3receiver/generated_component_test.go index a45a574015b9..5e2d70a647e8 100644 --- a/receiver/awss3receiver/generated_component_test.go +++ b/receiver/awss3receiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "awss3", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/awss3receiver/go.mod b/receiver/awss3receiver/go.mod index eec77d35a4ba..9a2e7c39132f 100644 --- a/receiver/awss3receiver/go.mod +++ b/receiver/awss3receiver/go.mod @@ -4,10 +4,10 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -37,8 +37,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/awss3receiver/go.sum b/receiver/awss3receiver/go.sum index 4edf353265cc..11bf6d806cc7 100644 --- a/receiver/awss3receiver/go.sum +++ b/receiver/awss3receiver/go.sum @@ -61,20 +61,20 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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 v0.98.0 h1:O7bpARGWzNfFQEYevLl4iigDrpGTJY3vV/kKqNZzMOk= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/awsxrayreceiver/go.mod b/receiver/awsxrayreceiver/go.mod index d48a906969ec..d66cdd1462df 100644 --- a/receiver/awsxrayreceiver/go.mod +++ b/receiver/awsxrayreceiver/go.mod @@ -12,14 +12,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,10 +52,10 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/awsxrayreceiver/go.sum b/receiver/awsxrayreceiver/go.sum index 8cf44dfcbaf3..99c8e02fadad 100644 --- a/receiver/awsxrayreceiver/go.sum +++ b/receiver/awsxrayreceiver/go.sum @@ -72,32 +72,32 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/azureblobreceiver/generated_component_test.go b/receiver/azureblobreceiver/generated_component_test.go index f73afbe84fe4..bc4b69093e2b 100644 --- a/receiver/azureblobreceiver/generated_component_test.go +++ b/receiver/azureblobreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "azureblob", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/azureblobreceiver/go.mod b/receiver/azureblobreceiver/go.mod index 37178f1830c4..29551b0f2e10 100644 --- a/receiver/azureblobreceiver/go.mod +++ b/receiver/azureblobreceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -76,22 +76,22 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/azureblobreceiver/go.sum b/receiver/azureblobreceiver/go.sum index a433bec10bb8..181847d69b49 100644 --- a/receiver/azureblobreceiver/go.sum +++ b/receiver/azureblobreceiver/go.sum @@ -210,56 +210,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/receiver/azureeventhubreceiver/generated_component_test.go b/receiver/azureeventhubreceiver/generated_component_test.go index 668a50791266..4936fb7bf619 100644 --- a/receiver/azureeventhubreceiver/generated_component_test.go +++ b/receiver/azureeventhubreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "azureeventhub", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/azureeventhubreceiver/go.mod b/receiver/azureeventhubreceiver/go.mod index 239c722decc5..c79dc6cb9a12 100644 --- a/receiver/azureeventhubreceiver/go.mod +++ b/receiver/azureeventhubreceiver/go.mod @@ -11,14 +11,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/azure v0.98.0 github.com/relvacode/iso8601 v1.4.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,20 +81,20 @@ require ( github.com/valyala/fastjson v1.6.4 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/azureeventhubreceiver/go.sum b/receiver/azureeventhubreceiver/go.sum index 94b289e5c2c6..184fb178bc0a 100644 --- a/receiver/azureeventhubreceiver/go.sum +++ b/receiver/azureeventhubreceiver/go.sum @@ -199,56 +199,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/receiver/azuremonitorreceiver/generated_component_test.go b/receiver/azuremonitorreceiver/generated_component_test.go index 972607e3e4fb..94659b6e4014 100644 --- a/receiver/azuremonitorreceiver/generated_component_test.go +++ b/receiver/azuremonitorreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "azuremonitor", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/azuremonitorreceiver/go.mod b/receiver/azuremonitorreceiver/go.mod index 8d8b34d102b9..df29272dc861 100644 --- a/receiver/azuremonitorreceiver/go.mod +++ b/receiver/azuremonitorreceiver/go.mod @@ -11,11 +11,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -51,8 +51,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/azuremonitorreceiver/go.sum b/receiver/azuremonitorreceiver/go.sum index 03432c0dd1c3..92b7a007199e 100644 --- a/receiver/azuremonitorreceiver/go.sum +++ b/receiver/azuremonitorreceiver/go.sum @@ -84,22 +84,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/azuremonitorreceiver/internal/metadata/generated_config.go b/receiver/azuremonitorreceiver/internal/metadata/generated_config.go index 1dfed5d6bdad..22dcc71d6de8 100644 --- a/receiver/azuremonitorreceiver/internal/metadata/generated_config.go +++ b/receiver/azuremonitorreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { diff --git a/receiver/bigipreceiver/generated_component_test.go b/receiver/bigipreceiver/generated_component_test.go index 8dfc0bc1ea3b..aaf3d813cd89 100644 --- a/receiver/bigipreceiver/generated_component_test.go +++ b/receiver/bigipreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "bigip", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/bigipreceiver/go.mod b/receiver/bigipreceiver/go.mod index d0b9da08d6f9..9d6e80af0e99 100644 --- a/receiver/bigipreceiver/go.mod +++ b/receiver/bigipreceiver/go.mod @@ -8,14 +8,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -84,14 +85,14 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/bigipreceiver/go.sum b/receiver/bigipreceiver/go.sum index fa3ae174b4ab..c8e1cd53385d 100644 --- a/receiver/bigipreceiver/go.sum +++ b/receiver/bigipreceiver/go.sum @@ -152,40 +152,42 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/bigipreceiver/internal/metadata/generated_config.go b/receiver/bigipreceiver/internal/metadata/generated_config.go index 528559d882ef..2c6142fd7b3c 100644 --- a/receiver/bigipreceiver/internal/metadata/generated_config.go +++ b/receiver/bigipreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -142,7 +145,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/bigipreceiver/internal/metadata/generated_metrics.go b/receiver/bigipreceiver/internal/metadata/generated_metrics.go index c5b9ce30bb87..57067081cc95 100644 --- a/receiver/bigipreceiver/internal/metadata/generated_metrics.go +++ b/receiver/bigipreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1522,6 +1523,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricBigipNodeAvailability metricBigipNodeAvailability metricBigipNodeConnectionCount metricBigipNodeConnectionCount metricBigipNodeDataTransmitted metricBigipNodeDataTransmitted @@ -1594,7 +1597,52 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricBigipVirtualServerEnabled: newMetricBigipVirtualServerEnabled(mbc.Metrics.BigipVirtualServerEnabled), metricBigipVirtualServerPacketCount: newMetricBigipVirtualServerPacketCount(mbc.Metrics.BigipVirtualServerPacketCount), metricBigipVirtualServerRequestCount: newMetricBigipVirtualServerRequestCount(mbc.Metrics.BigipVirtualServerRequestCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.BigipNodeIPAddress.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.node.ip_address"] = filter.CreateFilter(mbc.ResourceAttributes.BigipNodeIPAddress.Include) + } + if mbc.ResourceAttributes.BigipNodeIPAddress.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.node.ip_address"] = filter.CreateFilter(mbc.ResourceAttributes.BigipNodeIPAddress.Exclude) + } + if mbc.ResourceAttributes.BigipNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipNodeName.Include) + } + if mbc.ResourceAttributes.BigipNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipNodeName.Exclude) + } + if mbc.ResourceAttributes.BigipPoolName.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.pool.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolName.Include) + } + if mbc.ResourceAttributes.BigipPoolName.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.pool.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolName.Exclude) + } + if mbc.ResourceAttributes.BigipPoolMemberIPAddress.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.pool_member.ip_address"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolMemberIPAddress.Include) + } + if mbc.ResourceAttributes.BigipPoolMemberIPAddress.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.pool_member.ip_address"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolMemberIPAddress.Exclude) + } + if mbc.ResourceAttributes.BigipPoolMemberName.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.pool_member.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolMemberName.Include) + } + if mbc.ResourceAttributes.BigipPoolMemberName.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.pool_member.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipPoolMemberName.Exclude) + } + if mbc.ResourceAttributes.BigipVirtualServerDestination.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.virtual_server.destination"] = filter.CreateFilter(mbc.ResourceAttributes.BigipVirtualServerDestination.Include) + } + if mbc.ResourceAttributes.BigipVirtualServerDestination.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.virtual_server.destination"] = filter.CreateFilter(mbc.ResourceAttributes.BigipVirtualServerDestination.Exclude) + } + if mbc.ResourceAttributes.BigipVirtualServerName.Include != nil { + mb.resourceAttributeIncludeFilter["bigip.virtual_server.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipVirtualServerName.Include) + } + if mbc.ResourceAttributes.BigipVirtualServerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["bigip.virtual_server.name"] = filter.CreateFilter(mbc.ResourceAttributes.BigipVirtualServerName.Exclude) + } + for _, op := range options { op(mb) } @@ -1686,6 +1734,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/bigipreceiver/internal/metadata/generated_metrics_test.go b/receiver/bigipreceiver/internal/metadata/generated_metrics_test.go index 45ddad4d8974..970926462db2 100644 --- a/receiver/bigipreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/bigipreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -174,7 +187,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -184,10 +197,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/bigipreceiver/internal/metadata/testdata/config.yaml b/receiver/bigipreceiver/internal/metadata/testdata/config.yaml index 3e40d44b9612..7a26614d1335 100644 --- a/receiver/bigipreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/bigipreceiver/internal/metadata/testdata/config.yaml @@ -141,3 +141,63 @@ none_set: enabled: false bigip.virtual_server.name: enabled: false +filter_set_include: + resource_attributes: + bigip.node.ip_address: + enabled: true + include: + - regexp: ".*" + bigip.node.name: + enabled: true + include: + - regexp: ".*" + bigip.pool.name: + enabled: true + include: + - regexp: ".*" + bigip.pool_member.ip_address: + enabled: true + include: + - regexp: ".*" + bigip.pool_member.name: + enabled: true + include: + - regexp: ".*" + bigip.virtual_server.destination: + enabled: true + include: + - regexp: ".*" + bigip.virtual_server.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + bigip.node.ip_address: + enabled: true + exclude: + - strict: "bigip.node.ip_address-val" + bigip.node.name: + enabled: true + exclude: + - strict: "bigip.node.name-val" + bigip.pool.name: + enabled: true + exclude: + - strict: "bigip.pool.name-val" + bigip.pool_member.ip_address: + enabled: true + exclude: + - strict: "bigip.pool_member.ip_address-val" + bigip.pool_member.name: + enabled: true + exclude: + - strict: "bigip.pool_member.name-val" + bigip.virtual_server.destination: + enabled: true + exclude: + - strict: "bigip.virtual_server.destination-val" + bigip.virtual_server.name: + enabled: true + exclude: + - strict: "bigip.virtual_server.name-val" diff --git a/receiver/carbonreceiver/generated_component_test.go b/receiver/carbonreceiver/generated_component_test.go index 00ba32db9799..e16e39f1bc56 100644 --- a/receiver/carbonreceiver/generated_component_test.go +++ b/receiver/carbonreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "carbon", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/carbonreceiver/go.mod b/receiver/carbonreceiver/go.mod index 9f2659661590..341d5a539715 100644 --- a/receiver/carbonreceiver/go.mod +++ b/receiver/carbonreceiver/go.mod @@ -5,12 +5,12 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/sdk v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -41,9 +41,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect diff --git a/receiver/carbonreceiver/go.sum b/receiver/carbonreceiver/go.sum index 132124c25b0f..c70796e06601 100644 --- a/receiver/carbonreceiver/go.sum +++ b/receiver/carbonreceiver/go.sum @@ -62,26 +62,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/chronyreceiver/generated_component_test.go b/receiver/chronyreceiver/generated_component_test.go index d788aa646f15..5b804d1a869a 100644 --- a/receiver/chronyreceiver/generated_component_test.go +++ b/receiver/chronyreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "chrony", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/chronyreceiver/go.mod b/receiver/chronyreceiver/go.mod index 821a5e1d25f7..4b5d2685bb24 100644 --- a/receiver/chronyreceiver/go.mod +++ b/receiver/chronyreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/google/go-cmp v0.6.0 github.com/stretchr/testify v1.9.0 github.com/tilinna/clock v1.1.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,8 +43,8 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/sirupsen/logrus v1.8.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/chronyreceiver/go.sum b/receiver/chronyreceiver/go.sum index a46bdbde7de0..217080e63896 100644 --- a/receiver/chronyreceiver/go.sum +++ b/receiver/chronyreceiver/go.sum @@ -69,22 +69,22 @@ github.com/tilinna/clock v1.1.0 h1:6IQQQCo6KoBxVudv6gwtY8o4eDfhHo8ojA5dP0MfhSs= github.com/tilinna/clock v1.1.0/go.mod h1:ZsP7BcY7sEEz7ktc0IVy8Us6boDrK8VradlKRUGfOao= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/chronyreceiver/internal/metadata/generated_config.go b/receiver/chronyreceiver/internal/metadata/generated_config.go index 8561b07dcfa7..cc36277a94de 100644 --- a/receiver/chronyreceiver/internal/metadata/generated_config.go +++ b/receiver/chronyreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/chronyreceiver/internal/metadata/generated_metrics.go b/receiver/chronyreceiver/internal/metadata/generated_metrics.go index d594fd14d1b2..4f1a4485c391 100644 --- a/receiver/chronyreceiver/internal/metadata/generated_metrics.go +++ b/receiver/chronyreceiver/internal/metadata/generated_metrics.go @@ -439,6 +439,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricNtpTimeRmsOffset: newMetricNtpTimeRmsOffset(mbc.Metrics.NtpTimeRmsOffset), metricNtpTimeRootDelay: newMetricNtpTimeRootDelay(mbc.Metrics.NtpTimeRootDelay), } + for _, op := range options { op(mb) } @@ -505,6 +506,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/chronyreceiver/internal/metadata/generated_metrics_test.go b/receiver/chronyreceiver/internal/metadata/generated_metrics_test.go index c71978b26db7..782193256859 100644 --- a/receiver/chronyreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/chronyreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -82,7 +86,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -92,10 +96,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/cloudflarereceiver/generated_component_test.go b/receiver/cloudflarereceiver/generated_component_test.go index 2a5f91af7e68..5e5c1e33156b 100644 --- a/receiver/cloudflarereceiver/generated_component_test.go +++ b/receiver/cloudflarereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "cloudflare", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/cloudflarereceiver/go.mod b/receiver/cloudflarereceiver/go.mod index f3c76346f00a..cea251be9c40 100644 --- a/receiver/cloudflarereceiver/go.mod +++ b/receiver/cloudflarereceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -45,9 +45,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/cloudflarereceiver/go.sum b/receiver/cloudflarereceiver/go.sum index 2ccc30a70c74..ee2711362306 100644 --- a/receiver/cloudflarereceiver/go.sum +++ b/receiver/cloudflarereceiver/go.sum @@ -65,26 +65,26 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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 v0.98.0 h1:O7bpARGWzNfFQEYevLl4iigDrpGTJY3vV/kKqNZzMOk= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/cloudfoundryreceiver/generated_component_test.go b/receiver/cloudfoundryreceiver/generated_component_test.go index 7a3551cef00c..7eeda5fb226b 100644 --- a/receiver/cloudfoundryreceiver/generated_component_test.go +++ b/receiver/cloudfoundryreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "cloudfoundry", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/cloudfoundryreceiver/go.mod b/receiver/cloudfoundryreceiver/go.mod index 961a14c994c1..0b97cfac992f 100644 --- a/receiver/cloudfoundryreceiver/go.mod +++ b/receiver/cloudfoundryreceiver/go.mod @@ -6,14 +6,14 @@ require ( code.cloudfoundry.org/go-loggregator v7.4.0+incompatible github.com/cloudfoundry-incubator/uaago v0.0.0-20190307164349-8136b7bbe76e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -53,14 +53,14 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/cloudfoundryreceiver/go.sum b/receiver/cloudfoundryreceiver/go.sum index f0ccdb0c2a4a..4b85754bdd7e 100644 --- a/receiver/cloudfoundryreceiver/go.sum +++ b/receiver/cloudfoundryreceiver/go.sum @@ -114,40 +114,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/collectdreceiver/generated_component_test.go b/receiver/collectdreceiver/generated_component_test.go index 0be55502cca6..6675fca08356 100644 --- a/receiver/collectdreceiver/generated_component_test.go +++ b/receiver/collectdreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "collectd", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/collectdreceiver/go.mod b/receiver/collectdreceiver/go.mod index 65816e4d4454..95923c2702b8 100644 --- a/receiver/collectdreceiver/go.mod +++ b/receiver/collectdreceiver/go.mod @@ -8,12 +8,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -49,16 +49,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/collectdreceiver/go.sum b/receiver/collectdreceiver/go.sum index 68ef922de1e4..e2be0b34a1b9 100644 --- a/receiver/collectdreceiver/go.sum +++ b/receiver/collectdreceiver/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/couchdbreceiver/generated_component_test.go b/receiver/couchdbreceiver/generated_component_test.go index 49e5b404c019..410f21305335 100644 --- a/receiver/couchdbreceiver/generated_component_test.go +++ b/receiver/couchdbreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "couchdb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/couchdbreceiver/go.mod b/receiver/couchdbreceiver/go.mod index a6da74e9b03e..e3f4dfd5fdcf 100644 --- a/receiver/couchdbreceiver/go.mod +++ b/receiver/couchdbreceiver/go.mod @@ -7,14 +7,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,14 +53,14 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/couchdbreceiver/go.sum b/receiver/couchdbreceiver/go.sum index f8650c835bdd..82c8c7cf7e87 100644 --- a/receiver/couchdbreceiver/go.sum +++ b/receiver/couchdbreceiver/go.sum @@ -74,40 +74,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/couchdbreceiver/internal/metadata/generated_config.go b/receiver/couchdbreceiver/internal/metadata/generated_config.go index e19fd45acda7..5abebdbcb798 100644 --- a/receiver/couchdbreceiver/internal/metadata/generated_config.go +++ b/receiver/couchdbreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -66,7 +69,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/couchdbreceiver/internal/metadata/generated_metrics.go b/receiver/couchdbreceiver/internal/metadata/generated_metrics.go index b2c4dadbbdf1..f9c33d6f6aa6 100644 --- a/receiver/couchdbreceiver/internal/metadata/generated_metrics.go +++ b/receiver/couchdbreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -531,6 +532,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricCouchdbAverageRequestTime metricCouchdbAverageRequestTime metricCouchdbDatabaseOpen metricCouchdbDatabaseOpen metricCouchdbDatabaseOperations metricCouchdbDatabaseOperations @@ -565,7 +568,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricCouchdbHttpdRequests: newMetricCouchdbHttpdRequests(mbc.Metrics.CouchdbHttpdRequests), metricCouchdbHttpdResponses: newMetricCouchdbHttpdResponses(mbc.Metrics.CouchdbHttpdResponses), metricCouchdbHttpdViews: newMetricCouchdbHttpdViews(mbc.Metrics.CouchdbHttpdViews), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.CouchdbNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["couchdb.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.CouchdbNodeName.Include) + } + if mbc.ResourceAttributes.CouchdbNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["couchdb.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.CouchdbNodeName.Exclude) + } + for _, op := range options { op(mb) } @@ -638,6 +650,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/couchdbreceiver/internal/metadata/generated_metrics_test.go b/receiver/couchdbreceiver/internal/metadata/generated_metrics_test.go index c822b6b23c37..aa20faef10f6 100644 --- a/receiver/couchdbreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/couchdbreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -92,7 +105,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -102,10 +115,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/couchdbreceiver/internal/metadata/testdata/config.yaml b/receiver/couchdbreceiver/internal/metadata/testdata/config.yaml index 30a4c3b3ed11..00ea24f7e59d 100644 --- a/receiver/couchdbreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/couchdbreceiver/internal/metadata/testdata/config.yaml @@ -41,3 +41,15 @@ none_set: resource_attributes: couchdb.node.name: enabled: false +filter_set_include: + resource_attributes: + couchdb.node.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + couchdb.node.name: + enabled: true + exclude: + - strict: "couchdb.node.name-val" diff --git a/receiver/datadogreceiver/generated_component_test.go b/receiver/datadogreceiver/generated_component_test.go index 02675f4dd58e..75cc7cdbf1a1 100644 --- a/receiver/datadogreceiver/generated_component_test.go +++ b/receiver/datadogreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "datadog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/datadogreceiver/go.mod b/receiver/datadogreceiver/go.mod index ed843328bf2a..9656b94a6397 100644 --- a/receiver/datadogreceiver/go.mod +++ b/receiver/datadogreceiver/go.mod @@ -7,13 +7,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/stretchr/testify v1.9.0 github.com/vmihailenco/msgpack/v4 v4.3.13 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -53,16 +53,16 @@ require ( github.com/rs/cors v1.10.1 // indirect github.com/tinylib/msgp v1.1.9 // indirect github.com/vmihailenco/tagparser v0.1.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/datadogreceiver/go.sum b/receiver/datadogreceiver/go.sum index af1fe4423ee0..4b1153fabead 100644 --- a/receiver/datadogreceiver/go.sum +++ b/receiver/datadogreceiver/go.sum @@ -96,42 +96,42 @@ github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgq 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/dockerstatsreceiver/generated_component_test.go b/receiver/dockerstatsreceiver/generated_component_test.go index 535e9ed45fc2..0b2a66691fc5 100644 --- a/receiver/dockerstatsreceiver/generated_component_test.go +++ b/receiver/dockerstatsreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "docker_stats", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/dockerstatsreceiver/go.mod b/receiver/dockerstatsreceiver/go.mod index 5319b6e60388..ddeacd30cb7a 100644 --- a/receiver/dockerstatsreceiver/go.mod +++ b/receiver/dockerstatsreceiver/go.mod @@ -10,12 +10,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -78,8 +79,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/dockerstatsreceiver/go.sum b/receiver/dockerstatsreceiver/go.sum index de2e005b9eff..46b8f5a128a7 100644 --- a/receiver/dockerstatsreceiver/go.sum +++ b/receiver/dockerstatsreceiver/go.sum @@ -145,24 +145,26 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_config.go b/receiver/dockerstatsreceiver/internal/metadata/generated_config.go index 94ce4b4db8bc..12924b3bc1e6 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_config.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -318,7 +321,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go index 547d5410715a..59a3829ad4a4 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -3679,6 +3680,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricContainerBlockioIoMergedRecursive metricContainerBlockioIoMergedRecursive metricContainerBlockioIoQueuedRecursive metricContainerBlockioIoQueuedRecursive metricContainerBlockioIoServiceBytesRecursive metricContainerBlockioIoServiceBytesRecursive @@ -3839,7 +3842,52 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricContainerPidsLimit: newMetricContainerPidsLimit(mbc.Metrics.ContainerPidsLimit), metricContainerRestarts: newMetricContainerRestarts(mbc.Metrics.ContainerRestarts), metricContainerUptime: newMetricContainerUptime(mbc.Metrics.ContainerUptime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ContainerCommandLine.Include != nil { + mb.resourceAttributeIncludeFilter["container.command_line"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerCommandLine.Include) + } + if mbc.ResourceAttributes.ContainerCommandLine.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.command_line"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerCommandLine.Exclude) + } + if mbc.ResourceAttributes.ContainerHostname.Include != nil { + mb.resourceAttributeIncludeFilter["container.hostname"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerHostname.Include) + } + if mbc.ResourceAttributes.ContainerHostname.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.hostname"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerHostname.Exclude) + } + if mbc.ResourceAttributes.ContainerID.Include != nil { + mb.resourceAttributeIncludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Include) + } + if mbc.ResourceAttributes.ContainerID.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Exclude) + } + if mbc.ResourceAttributes.ContainerImageID.Include != nil { + mb.resourceAttributeIncludeFilter["container.image.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageID.Include) + } + if mbc.ResourceAttributes.ContainerImageID.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.image.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageID.Exclude) + } + if mbc.ResourceAttributes.ContainerImageName.Include != nil { + mb.resourceAttributeIncludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Include) + } + if mbc.ResourceAttributes.ContainerImageName.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Exclude) + } + if mbc.ResourceAttributes.ContainerName.Include != nil { + mb.resourceAttributeIncludeFilter["container.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerName.Include) + } + if mbc.ResourceAttributes.ContainerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerName.Exclude) + } + if mbc.ResourceAttributes.ContainerRuntime.Include != nil { + mb.resourceAttributeIncludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Include) + } + if mbc.ResourceAttributes.ContainerRuntime.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Exclude) + } + for _, op := range options { op(mb) } @@ -3976,6 +4024,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go index addd9e9bdb11..56834bc34c8c 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -293,7 +306,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -303,10 +316,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml b/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml index 1c5dc2133db9..1a1c5b0a63c5 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/dockerstatsreceiver/internal/metadata/testdata/config.yaml @@ -317,3 +317,63 @@ none_set: enabled: false container.runtime: enabled: false +filter_set_include: + resource_attributes: + container.command_line: + enabled: true + include: + - regexp: ".*" + container.hostname: + enabled: true + include: + - regexp: ".*" + container.id: + enabled: true + include: + - regexp: ".*" + container.image.id: + enabled: true + include: + - regexp: ".*" + container.image.name: + enabled: true + include: + - regexp: ".*" + container.name: + enabled: true + include: + - regexp: ".*" + container.runtime: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + container.command_line: + enabled: true + exclude: + - strict: "container.command_line-val" + container.hostname: + enabled: true + exclude: + - strict: "container.hostname-val" + container.id: + enabled: true + exclude: + - strict: "container.id-val" + container.image.id: + enabled: true + exclude: + - strict: "container.image.id-val" + container.image.name: + enabled: true + exclude: + - strict: "container.image.name-val" + container.name: + enabled: true + exclude: + - strict: "container.name-val" + container.runtime: + enabled: true + exclude: + - strict: "container.runtime-val" diff --git a/receiver/elasticsearchreceiver/generated_component_test.go b/receiver/elasticsearchreceiver/generated_component_test.go index 8cbe5223840e..473c5a7ab69c 100644 --- a/receiver/elasticsearchreceiver/generated_component_test.go +++ b/receiver/elasticsearchreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "elasticsearch", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/elasticsearchreceiver/go.mod b/receiver/elasticsearchreceiver/go.mod index 399597a963c4..097d0d12077e 100644 --- a/receiver/elasticsearchreceiver/go.mod +++ b/receiver/elasticsearchreceiver/go.mod @@ -10,14 +10,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -84,14 +85,14 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/elasticsearchreceiver/go.sum b/receiver/elasticsearchreceiver/go.sum index fa3ae174b4ab..c8e1cd53385d 100644 --- a/receiver/elasticsearchreceiver/go.sum +++ b/receiver/elasticsearchreceiver/go.sum @@ -152,40 +152,42 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/elasticsearchreceiver/internal/metadata/generated_config.go b/receiver/elasticsearchreceiver/internal/metadata/generated_config.go index 38467c4a791c..161a2328b717 100644 --- a/receiver/elasticsearchreceiver/internal/metadata/generated_config.go +++ b/receiver/elasticsearchreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -398,7 +401,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/elasticsearchreceiver/internal/metadata/generated_metrics.go b/receiver/elasticsearchreceiver/internal/metadata/generated_metrics.go index 6641bd3286b6..ec39d4ca0eaf 100644 --- a/receiver/elasticsearchreceiver/internal/metadata/generated_metrics.go +++ b/receiver/elasticsearchreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -5251,6 +5252,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricElasticsearchBreakerMemoryEstimated metricElasticsearchBreakerMemoryEstimated metricElasticsearchBreakerMemoryLimit metricElasticsearchBreakerMemoryLimit metricElasticsearchBreakerTripped metricElasticsearchBreakerTripped @@ -5451,7 +5454,34 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricJvmMemoryPoolMax: newMetricJvmMemoryPoolMax(mbc.Metrics.JvmMemoryPoolMax), metricJvmMemoryPoolUsed: newMetricJvmMemoryPoolUsed(mbc.Metrics.JvmMemoryPoolUsed), metricJvmThreadsCount: newMetricJvmThreadsCount(mbc.Metrics.JvmThreadsCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ElasticsearchClusterName.Include != nil { + mb.resourceAttributeIncludeFilter["elasticsearch.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchClusterName.Include) + } + if mbc.ResourceAttributes.ElasticsearchClusterName.Exclude != nil { + mb.resourceAttributeExcludeFilter["elasticsearch.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchClusterName.Exclude) + } + if mbc.ResourceAttributes.ElasticsearchIndexName.Include != nil { + mb.resourceAttributeIncludeFilter["elasticsearch.index.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchIndexName.Include) + } + if mbc.ResourceAttributes.ElasticsearchIndexName.Exclude != nil { + mb.resourceAttributeExcludeFilter["elasticsearch.index.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchIndexName.Exclude) + } + if mbc.ResourceAttributes.ElasticsearchNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["elasticsearch.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchNodeName.Include) + } + if mbc.ResourceAttributes.ElasticsearchNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["elasticsearch.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchNodeName.Exclude) + } + if mbc.ResourceAttributes.ElasticsearchNodeVersion.Include != nil { + mb.resourceAttributeIncludeFilter["elasticsearch.node.version"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchNodeVersion.Include) + } + if mbc.ResourceAttributes.ElasticsearchNodeVersion.Exclude != nil { + mb.resourceAttributeExcludeFilter["elasticsearch.node.version"] = filter.CreateFilter(mbc.ResourceAttributes.ElasticsearchNodeVersion.Exclude) + } + for _, op := range options { op(mb) } @@ -5607,6 +5637,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/elasticsearchreceiver/internal/metadata/generated_metrics_test.go b/receiver/elasticsearchreceiver/internal/metadata/generated_metrics_test.go index 8e23648e5cc9..4fc154a7b1f8 100644 --- a/receiver/elasticsearchreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/elasticsearchreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -406,7 +419,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -416,10 +429,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/elasticsearchreceiver/internal/metadata/testdata/config.yaml b/receiver/elasticsearchreceiver/internal/metadata/testdata/config.yaml index 46e58496b5fe..f5b7d0471e0b 100644 --- a/receiver/elasticsearchreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/elasticsearchreceiver/internal/metadata/testdata/config.yaml @@ -385,3 +385,39 @@ none_set: enabled: false elasticsearch.node.version: enabled: false +filter_set_include: + resource_attributes: + elasticsearch.cluster.name: + enabled: true + include: + - regexp: ".*" + elasticsearch.index.name: + enabled: true + include: + - regexp: ".*" + elasticsearch.node.name: + enabled: true + include: + - regexp: ".*" + elasticsearch.node.version: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + elasticsearch.cluster.name: + enabled: true + exclude: + - strict: "elasticsearch.cluster.name-val" + elasticsearch.index.name: + enabled: true + exclude: + - strict: "elasticsearch.index.name-val" + elasticsearch.node.name: + enabled: true + exclude: + - strict: "elasticsearch.node.name-val" + elasticsearch.node.version: + enabled: true + exclude: + - strict: "elasticsearch.node.version-val" diff --git a/receiver/expvarreceiver/generated_component_test.go b/receiver/expvarreceiver/generated_component_test.go index 2920748654fe..602d7d958069 100644 --- a/receiver/expvarreceiver/generated_component_test.go +++ b/receiver/expvarreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "expvar", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/expvarreceiver/go.mod b/receiver/expvarreceiver/go.mod index 08f8ec8d5d59..af71086c449b 100644 --- a/receiver/expvarreceiver/go.mod +++ b/receiver/expvarreceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,16 +48,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/expvarreceiver/go.sum b/receiver/expvarreceiver/go.sum index 68ef922de1e4..e2be0b34a1b9 100644 --- a/receiver/expvarreceiver/go.sum +++ b/receiver/expvarreceiver/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/expvarreceiver/internal/metadata/generated_config.go b/receiver/expvarreceiver/internal/metadata/generated_config.go index a80c079d18cf..bac6b1311fce 100644 --- a/receiver/expvarreceiver/internal/metadata/generated_config.go +++ b/receiver/expvarreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/expvarreceiver/internal/metadata/generated_metrics.go b/receiver/expvarreceiver/internal/metadata/generated_metrics.go index 4a6e7991872c..48b1876a1755 100644 --- a/receiver/expvarreceiver/internal/metadata/generated_metrics.go +++ b/receiver/expvarreceiver/internal/metadata/generated_metrics.go @@ -1412,6 +1412,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricProcessRuntimeMemstatsSys: newMetricProcessRuntimeMemstatsSys(mbc.Metrics.ProcessRuntimeMemstatsSys), metricProcessRuntimeMemstatsTotalAlloc: newMetricProcessRuntimeMemstatsTotalAlloc(mbc.Metrics.ProcessRuntimeMemstatsTotalAlloc), } + for _, op := range options { op(mb) } @@ -1497,6 +1498,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/expvarreceiver/internal/metadata/generated_metrics_test.go b/receiver/expvarreceiver/internal/metadata/generated_metrics_test.go index 19988caf9529..0cf7394c1ce9 100644 --- a/receiver/expvarreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/expvarreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -160,7 +164,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -170,10 +174,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/filelogreceiver/generated_component_test.go b/receiver/filelogreceiver/generated_component_test.go index 4e27aa020248..f2b7d2be7516 100644 --- a/receiver/filelogreceiver/generated_component_test.go +++ b/receiver/filelogreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "filelog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/filelogreceiver/go.mod b/receiver/filelogreceiver/go.mod index 5544278b53de..9cb90d42d25f 100644 --- a/receiver/filelogreceiver/go.mod +++ b/receiver/filelogreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -47,10 +47,10 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/filelogreceiver/go.sum b/receiver/filelogreceiver/go.sum index 773b05653e64..65e1b343e7d3 100644 --- a/receiver/filelogreceiver/go.sum +++ b/receiver/filelogreceiver/go.sum @@ -79,26 +79,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/filestatsreceiver/generated_component_test.go b/receiver/filestatsreceiver/generated_component_test.go index d3311760e131..304ff7d477e6 100644 --- a/receiver/filestatsreceiver/generated_component_test.go +++ b/receiver/filestatsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "filestats", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/filestatsreceiver/go.mod b/receiver/filestatsreceiver/go.mod index fbfc76dcabd1..13239d762fc5 100644 --- a/receiver/filestatsreceiver/go.mod +++ b/receiver/filestatsreceiver/go.mod @@ -8,11 +8,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -77,8 +78,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/filestatsreceiver/go.sum b/receiver/filestatsreceiver/go.sum index 9035e2bcd399..727acd4d3b5b 100644 --- a/receiver/filestatsreceiver/go.sum +++ b/receiver/filestatsreceiver/go.sum @@ -145,22 +145,24 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/filestatsreceiver/internal/metadata/generated_config.go b/receiver/filestatsreceiver/internal/metadata/generated_config.go index 231526cd09f1..63ae13a1d666 100644 --- a/receiver/filestatsreceiver/internal/metadata/generated_config.go +++ b/receiver/filestatsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -54,7 +57,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/filestatsreceiver/internal/metadata/generated_metrics.go b/receiver/filestatsreceiver/internal/metadata/generated_metrics.go index 498d4b99cb9f..e87675883de7 100644 --- a/receiver/filestatsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/filestatsreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -267,16 +268,18 @@ func newMetricFileSize(cfg MetricConfig) metricFileSize { // MetricsBuilder provides an interface for scrapers to report metrics while taking care of all the transformations // required to produce metric representation defined in metadata and user config. type MetricsBuilder struct { - config MetricsBuilderConfig // config of the metrics builder. - startTime pcommon.Timestamp // start time that will be applied to all recorded data points. - metricsCapacity int // maximum observed number of metrics per resource. - metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. - buildInfo component.BuildInfo // contains version information. - metricFileAtime metricFileAtime - metricFileCount metricFileCount - metricFileCtime metricFileCtime - metricFileMtime metricFileMtime - metricFileSize metricFileSize + config MetricsBuilderConfig // config of the metrics builder. + startTime pcommon.Timestamp // start time that will be applied to all recorded data points. + metricsCapacity int // maximum observed number of metrics per resource. + metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. + buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter + metricFileAtime metricFileAtime + metricFileCount metricFileCount + metricFileCtime metricFileCtime + metricFileMtime metricFileMtime + metricFileSize metricFileSize } // metricBuilderOption applies changes to default metrics builder. @@ -291,16 +294,31 @@ func WithStartTime(startTime pcommon.Timestamp) metricBuilderOption { func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSettings, options ...metricBuilderOption) *MetricsBuilder { mb := &MetricsBuilder{ - config: mbc, - startTime: pcommon.NewTimestampFromTime(time.Now()), - metricsBuffer: pmetric.NewMetrics(), - buildInfo: settings.BuildInfo, - metricFileAtime: newMetricFileAtime(mbc.Metrics.FileAtime), - metricFileCount: newMetricFileCount(mbc.Metrics.FileCount), - metricFileCtime: newMetricFileCtime(mbc.Metrics.FileCtime), - metricFileMtime: newMetricFileMtime(mbc.Metrics.FileMtime), - metricFileSize: newMetricFileSize(mbc.Metrics.FileSize), + config: mbc, + startTime: pcommon.NewTimestampFromTime(time.Now()), + metricsBuffer: pmetric.NewMetrics(), + buildInfo: settings.BuildInfo, + metricFileAtime: newMetricFileAtime(mbc.Metrics.FileAtime), + metricFileCount: newMetricFileCount(mbc.Metrics.FileCount), + metricFileCtime: newMetricFileCtime(mbc.Metrics.FileCtime), + metricFileMtime: newMetricFileMtime(mbc.Metrics.FileMtime), + metricFileSize: newMetricFileSize(mbc.Metrics.FileSize), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.FileName.Include != nil { + mb.resourceAttributeIncludeFilter["file.name"] = filter.CreateFilter(mbc.ResourceAttributes.FileName.Include) + } + if mbc.ResourceAttributes.FileName.Exclude != nil { + mb.resourceAttributeExcludeFilter["file.name"] = filter.CreateFilter(mbc.ResourceAttributes.FileName.Exclude) + } + if mbc.ResourceAttributes.FilePath.Include != nil { + mb.resourceAttributeIncludeFilter["file.path"] = filter.CreateFilter(mbc.ResourceAttributes.FilePath.Include) + } + if mbc.ResourceAttributes.FilePath.Exclude != nil { + mb.resourceAttributeExcludeFilter["file.path"] = filter.CreateFilter(mbc.ResourceAttributes.FilePath.Exclude) + } + for _, op := range options { op(mb) } @@ -370,6 +388,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/filestatsreceiver/internal/metadata/generated_metrics_test.go b/receiver/filestatsreceiver/internal/metadata/generated_metrics_test.go index 064d87407f16..70ca32e1941a 100644 --- a/receiver/filestatsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/filestatsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -78,7 +91,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -88,10 +101,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/filestatsreceiver/internal/metadata/testdata/config.yaml b/receiver/filestatsreceiver/internal/metadata/testdata/config.yaml index dd4ee0b13247..f133df98bd2a 100644 --- a/receiver/filestatsreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/filestatsreceiver/internal/metadata/testdata/config.yaml @@ -33,3 +33,23 @@ none_set: enabled: false file.path: enabled: false +filter_set_include: + resource_attributes: + file.name: + enabled: true + include: + - regexp: ".*" + file.path: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + file.name: + enabled: true + exclude: + - strict: "file.name-val" + file.path: + enabled: true + exclude: + - strict: "file.path-val" diff --git a/receiver/flinkmetricsreceiver/generated_component_test.go b/receiver/flinkmetricsreceiver/generated_component_test.go index 5880edfdfbad..ca68cdb04f03 100644 --- a/receiver/flinkmetricsreceiver/generated_component_test.go +++ b/receiver/flinkmetricsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "flinkmetrics", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/flinkmetricsreceiver/go.mod b/receiver/flinkmetricsreceiver/go.mod index 0da6ef5236ba..56c4fd485791 100644 --- a/receiver/flinkmetricsreceiver/go.mod +++ b/receiver/flinkmetricsreceiver/go.mod @@ -7,13 +7,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,15 +51,15 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/flinkmetricsreceiver/go.sum b/receiver/flinkmetricsreceiver/go.sum index f8650c835bdd..82c8c7cf7e87 100644 --- a/receiver/flinkmetricsreceiver/go.sum +++ b/receiver/flinkmetricsreceiver/go.sum @@ -74,40 +74,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/flinkmetricsreceiver/internal/metadata/generated_config.go b/receiver/flinkmetricsreceiver/internal/metadata/generated_config.go index 6f6d29ee27b6..bfaaaf817f0c 100644 --- a/receiver/flinkmetricsreceiver/internal/metadata/generated_config.go +++ b/receiver/flinkmetricsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -150,7 +153,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics.go b/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics.go index f4e25db79413..1eb4032635ff 100644 --- a/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1599,6 +1600,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricFlinkJobCheckpointCount metricFlinkJobCheckpointCount metricFlinkJobCheckpointInProgress metricFlinkJobCheckpointInProgress metricFlinkJobLastCheckpointSize metricFlinkJobLastCheckpointSize @@ -1675,7 +1678,46 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricFlinkOperatorRecordCount: newMetricFlinkOperatorRecordCount(mbc.Metrics.FlinkOperatorRecordCount), metricFlinkOperatorWatermarkOutput: newMetricFlinkOperatorWatermarkOutput(mbc.Metrics.FlinkOperatorWatermarkOutput), metricFlinkTaskRecordCount: newMetricFlinkTaskRecordCount(mbc.Metrics.FlinkTaskRecordCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.FlinkJobName.Include != nil { + mb.resourceAttributeIncludeFilter["flink.job.name"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkJobName.Include) + } + if mbc.ResourceAttributes.FlinkJobName.Exclude != nil { + mb.resourceAttributeExcludeFilter["flink.job.name"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkJobName.Exclude) + } + if mbc.ResourceAttributes.FlinkResourceType.Include != nil { + mb.resourceAttributeIncludeFilter["flink.resource.type"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkResourceType.Include) + } + if mbc.ResourceAttributes.FlinkResourceType.Exclude != nil { + mb.resourceAttributeExcludeFilter["flink.resource.type"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkResourceType.Exclude) + } + if mbc.ResourceAttributes.FlinkSubtaskIndex.Include != nil { + mb.resourceAttributeIncludeFilter["flink.subtask.index"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkSubtaskIndex.Include) + } + if mbc.ResourceAttributes.FlinkSubtaskIndex.Exclude != nil { + mb.resourceAttributeExcludeFilter["flink.subtask.index"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkSubtaskIndex.Exclude) + } + if mbc.ResourceAttributes.FlinkTaskName.Include != nil { + mb.resourceAttributeIncludeFilter["flink.task.name"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkTaskName.Include) + } + if mbc.ResourceAttributes.FlinkTaskName.Exclude != nil { + mb.resourceAttributeExcludeFilter["flink.task.name"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkTaskName.Exclude) + } + if mbc.ResourceAttributes.FlinkTaskmanagerID.Include != nil { + mb.resourceAttributeIncludeFilter["flink.taskmanager.id"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkTaskmanagerID.Include) + } + if mbc.ResourceAttributes.FlinkTaskmanagerID.Exclude != nil { + mb.resourceAttributeExcludeFilter["flink.taskmanager.id"] = filter.CreateFilter(mbc.ResourceAttributes.FlinkTaskmanagerID.Exclude) + } + if mbc.ResourceAttributes.HostName.Include != nil { + mb.resourceAttributeIncludeFilter["host.name"] = filter.CreateFilter(mbc.ResourceAttributes.HostName.Include) + } + if mbc.ResourceAttributes.HostName.Exclude != nil { + mb.resourceAttributeExcludeFilter["host.name"] = filter.CreateFilter(mbc.ResourceAttributes.HostName.Exclude) + } + for _, op := range options { op(mb) } @@ -1769,6 +1811,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics_test.go b/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics_test.go index 04bd72dd72d9..a26d3dac0185 100644 --- a/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/flinkmetricsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -181,7 +194,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -191,10 +204,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/flinkmetricsreceiver/internal/metadata/testdata/config.yaml b/receiver/flinkmetricsreceiver/internal/metadata/testdata/config.yaml index f3fc38b20782..c21b03c5fd65 100644 --- a/receiver/flinkmetricsreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/flinkmetricsreceiver/internal/metadata/testdata/config.yaml @@ -145,3 +145,55 @@ none_set: enabled: false host.name: enabled: false +filter_set_include: + resource_attributes: + flink.job.name: + enabled: true + include: + - regexp: ".*" + flink.resource.type: + enabled: true + include: + - regexp: ".*" + flink.subtask.index: + enabled: true + include: + - regexp: ".*" + flink.task.name: + enabled: true + include: + - regexp: ".*" + flink.taskmanager.id: + enabled: true + include: + - regexp: ".*" + host.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + flink.job.name: + enabled: true + exclude: + - strict: "flink.job.name-val" + flink.resource.type: + enabled: true + exclude: + - strict: "jobmanager" + flink.subtask.index: + enabled: true + exclude: + - strict: "flink.subtask.index-val" + flink.task.name: + enabled: true + exclude: + - strict: "flink.task.name-val" + flink.taskmanager.id: + enabled: true + exclude: + - strict: "flink.taskmanager.id-val" + host.name: + enabled: true + exclude: + - strict: "host.name-val" diff --git a/receiver/fluentforwardreceiver/generated_component_test.go b/receiver/fluentforwardreceiver/generated_component_test.go index 5542a309e13b..043db67f9b5d 100644 --- a/receiver/fluentforwardreceiver/generated_component_test.go +++ b/receiver/fluentforwardreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "fluentforward", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/fluentforwardreceiver/go.mod b/receiver/fluentforwardreceiver/go.mod index 503689198485..51344118d975 100644 --- a/receiver/fluentforwardreceiver/go.mod +++ b/receiver/fluentforwardreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/stretchr/testify v1.9.0 github.com/tinylib/msgp v1.1.9 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,8 +43,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/fluentforwardreceiver/go.sum b/receiver/fluentforwardreceiver/go.sum index cf7ee71d4370..9158f72ce553 100644 --- a/receiver/fluentforwardreceiver/go.sum +++ b/receiver/fluentforwardreceiver/go.sum @@ -102,22 +102,22 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/gitproviderreceiver/generated_component_test.go b/receiver/gitproviderreceiver/generated_component_test.go index 2dd6541ea179..47a82d632b66 100644 --- a/receiver/gitproviderreceiver/generated_component_test.go +++ b/receiver/gitproviderreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "gitprovider", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/gitproviderreceiver/go.mod b/receiver/gitproviderreceiver/go.mod index b73e125d5fd7..26c6a4fdacd5 100644 --- a/receiver/gitproviderreceiver/go.mod +++ b/receiver/gitproviderreceiver/go.mod @@ -7,14 +7,15 @@ require ( github.com/google/go-cmp v0.6.0 github.com/google/go-github/v61 v61.0.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -66,27 +67,27 @@ require ( github.com/vektah/gqlparser/v2 v2.5.11 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect diff --git a/receiver/gitproviderreceiver/go.sum b/receiver/gitproviderreceiver/go.sum index 0065ad3992af..39397df03b26 100644 --- a/receiver/gitproviderreceiver/go.sum +++ b/receiver/gitproviderreceiver/go.sum @@ -157,70 +157,72 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/gitproviderreceiver/internal/metadata/generated_config.go b/receiver/gitproviderreceiver/internal/metadata/generated_config.go index 64d884e82a68..9789b978496c 100644 --- a/receiver/gitproviderreceiver/internal/metadata/generated_config.go +++ b/receiver/gitproviderreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -62,7 +65,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/gitproviderreceiver/internal/metadata/generated_metrics.go b/receiver/gitproviderreceiver/internal/metadata/generated_metrics.go index 1916ea13e022..81f6996ebcec 100644 --- a/receiver/gitproviderreceiver/internal/metadata/generated_metrics.go +++ b/receiver/gitproviderreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -405,6 +406,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricGitRepositoryBranchCount metricGitRepositoryBranchCount metricGitRepositoryContributorCount metricGitRepositoryContributorCount metricGitRepositoryCount metricGitRepositoryCount @@ -437,7 +440,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricGitRepositoryPullRequestTimeOpen: newMetricGitRepositoryPullRequestTimeOpen(mbc.Metrics.GitRepositoryPullRequestTimeOpen), metricGitRepositoryPullRequestTimeToApproval: newMetricGitRepositoryPullRequestTimeToApproval(mbc.Metrics.GitRepositoryPullRequestTimeToApproval), metricGitRepositoryPullRequestTimeToMerge: newMetricGitRepositoryPullRequestTimeToMerge(mbc.Metrics.GitRepositoryPullRequestTimeToMerge), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.GitVendorName.Include != nil { + mb.resourceAttributeIncludeFilter["git.vendor.name"] = filter.CreateFilter(mbc.ResourceAttributes.GitVendorName.Include) + } + if mbc.ResourceAttributes.GitVendorName.Exclude != nil { + mb.resourceAttributeExcludeFilter["git.vendor.name"] = filter.CreateFilter(mbc.ResourceAttributes.GitVendorName.Exclude) + } + if mbc.ResourceAttributes.OrganizationName.Include != nil { + mb.resourceAttributeIncludeFilter["organization.name"] = filter.CreateFilter(mbc.ResourceAttributes.OrganizationName.Include) + } + if mbc.ResourceAttributes.OrganizationName.Exclude != nil { + mb.resourceAttributeExcludeFilter["organization.name"] = filter.CreateFilter(mbc.ResourceAttributes.OrganizationName.Exclude) + } + for _, op := range options { op(mb) } @@ -510,6 +528,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/gitproviderreceiver/internal/metadata/generated_metrics_test.go b/receiver/gitproviderreceiver/internal/metadata/generated_metrics_test.go index b32d398a8f79..d241678ec245 100644 --- a/receiver/gitproviderreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/gitproviderreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -88,7 +101,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -98,10 +111,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/gitproviderreceiver/internal/metadata/testdata/config.yaml b/receiver/gitproviderreceiver/internal/metadata/testdata/config.yaml index cc2fa0fd2bd6..1aefe5883c32 100644 --- a/receiver/gitproviderreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/gitproviderreceiver/internal/metadata/testdata/config.yaml @@ -41,3 +41,23 @@ none_set: enabled: false organization.name: enabled: false +filter_set_include: + resource_attributes: + git.vendor.name: + enabled: true + include: + - regexp: ".*" + organization.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + git.vendor.name: + enabled: true + exclude: + - strict: "git.vendor.name-val" + organization.name: + enabled: true + exclude: + - strict: "organization.name-val" diff --git a/receiver/googlecloudpubsubreceiver/go.mod b/receiver/googlecloudpubsubreceiver/go.mod index 4a8ea22f945e..e4284e76669c 100644 --- a/receiver/googlecloudpubsubreceiver/go.mod +++ b/receiver/googlecloudpubsubreceiver/go.mod @@ -9,12 +9,12 @@ require ( github.com/iancoleman/strcase v0.3.0 github.com/json-iterator/go v1.1.12 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -62,10 +62,10 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect go.einride.tech/aip v0.66.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/googlecloudpubsubreceiver/go.sum b/receiver/googlecloudpubsubreceiver/go.sum index 34363fbefa0e..8ad1d1eda8c6 100644 --- a/receiver/googlecloudpubsubreceiver/go.sum +++ b/receiver/googlecloudpubsubreceiver/go.sum @@ -132,28 +132,28 @@ go.einride.tech/aip v0.66.0 h1:XfV+NQX6L7EOYK11yoHHFtndeaWh3KbD9/cN/6iWEt8= go.einride.tech/aip v0.66.0/go.mod h1:qAhMsfT7plxBX+Oy7Huol6YUvZ0ZzdUz26yZsQwfl1M= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/receiver/googlecloudspannerreceiver/generated_component_test.go b/receiver/googlecloudspannerreceiver/generated_component_test.go index ef66a685415f..286bd6f4d027 100644 --- a/receiver/googlecloudspannerreceiver/generated_component_test.go +++ b/receiver/googlecloudspannerreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "googlecloudspanner", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/googlecloudspannerreceiver/go.mod b/receiver/googlecloudspannerreceiver/go.mod index 9a198e6a6ab8..9181b89d2609 100644 --- a/receiver/googlecloudspannerreceiver/go.mod +++ b/receiver/googlecloudspannerreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/ReneKroon/ttlcache/v2 v2.11.0 github.com/mitchellh/hashstructure v1.1.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -61,8 +61,8 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/googlecloudspannerreceiver/go.sum b/receiver/googlecloudspannerreceiver/go.sum index fceb331d26b8..311b29c795b3 100644 --- a/receiver/googlecloudspannerreceiver/go.sum +++ b/receiver/googlecloudspannerreceiver/go.sum @@ -143,22 +143,22 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/receiver/haproxyreceiver/generated_component_test.go b/receiver/haproxyreceiver/generated_component_test.go index 69af3a3369cc..e5e47afbb23d 100644 --- a/receiver/haproxyreceiver/generated_component_test.go +++ b/receiver/haproxyreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "haproxy", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/haproxyreceiver/go.mod b/receiver/haproxyreceiver/go.mod index a845a7d50400..66c0ecea8434 100644 --- a/receiver/haproxyreceiver/go.mod +++ b/receiver/haproxyreceiver/go.mod @@ -9,12 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,16 +82,16 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/haproxyreceiver/go.sum b/receiver/haproxyreceiver/go.sum index a16aa83213a4..0ba21e6e4b6e 100644 --- a/receiver/haproxyreceiver/go.sum +++ b/receiver/haproxyreceiver/go.sum @@ -151,40 +151,42 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/haproxyreceiver/internal/metadata/generated_config.go b/receiver/haproxyreceiver/internal/metadata/generated_config.go index 55674e1362ee..59a98ead7a85 100644 --- a/receiver/haproxyreceiver/internal/metadata/generated_config.go +++ b/receiver/haproxyreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -138,7 +141,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/haproxyreceiver/internal/metadata/generated_metrics.go b/receiver/haproxyreceiver/internal/metadata/generated_metrics.go index a32a71428e16..6bc9958df4ec 100644 --- a/receiver/haproxyreceiver/internal/metadata/generated_metrics.go +++ b/receiver/haproxyreceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1381,6 +1382,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricHaproxyBytesInput metricHaproxyBytesInput metricHaproxyBytesOutput metricHaproxyBytesOutput metricHaproxyClientsCanceled metricHaproxyClientsCanceled @@ -1451,7 +1454,28 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricHaproxySessionsCount: newMetricHaproxySessionsCount(mbc.Metrics.HaproxySessionsCount), metricHaproxySessionsRate: newMetricHaproxySessionsRate(mbc.Metrics.HaproxySessionsRate), metricHaproxySessionsTotal: newMetricHaproxySessionsTotal(mbc.Metrics.HaproxySessionsTotal), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.HaproxyAddr.Include != nil { + mb.resourceAttributeIncludeFilter["haproxy.addr"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyAddr.Include) + } + if mbc.ResourceAttributes.HaproxyAddr.Exclude != nil { + mb.resourceAttributeExcludeFilter["haproxy.addr"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyAddr.Exclude) + } + if mbc.ResourceAttributes.HaproxyProxyName.Include != nil { + mb.resourceAttributeIncludeFilter["haproxy.proxy_name"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyProxyName.Include) + } + if mbc.ResourceAttributes.HaproxyProxyName.Exclude != nil { + mb.resourceAttributeExcludeFilter["haproxy.proxy_name"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyProxyName.Exclude) + } + if mbc.ResourceAttributes.HaproxyServiceName.Include != nil { + mb.resourceAttributeIncludeFilter["haproxy.service_name"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyServiceName.Include) + } + if mbc.ResourceAttributes.HaproxyServiceName.Exclude != nil { + mb.resourceAttributeExcludeFilter["haproxy.service_name"] = filter.CreateFilter(mbc.ResourceAttributes.HaproxyServiceName.Exclude) + } + for _, op := range options { op(mb) } @@ -1542,6 +1566,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/haproxyreceiver/internal/metadata/generated_metrics_test.go b/receiver/haproxyreceiver/internal/metadata/generated_metrics_test.go index cbf8694d61ce..554934c230f0 100644 --- a/receiver/haproxyreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/haproxyreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -157,7 +170,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -167,10 +180,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/haproxyreceiver/internal/metadata/testdata/config.yaml b/receiver/haproxyreceiver/internal/metadata/testdata/config.yaml index f8db661801af..609869b001ca 100644 --- a/receiver/haproxyreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/haproxyreceiver/internal/metadata/testdata/config.yaml @@ -121,3 +121,31 @@ none_set: enabled: false haproxy.service_name: enabled: false +filter_set_include: + resource_attributes: + haproxy.addr: + enabled: true + include: + - regexp: ".*" + haproxy.proxy_name: + enabled: true + include: + - regexp: ".*" + haproxy.service_name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + haproxy.addr: + enabled: true + exclude: + - strict: "haproxy.addr-val" + haproxy.proxy_name: + enabled: true + exclude: + - strict: "haproxy.proxy_name-val" + haproxy.service_name: + enabled: true + exclude: + - strict: "haproxy.service_name-val" diff --git a/receiver/hostmetricsreceiver/generated_component_test.go b/receiver/hostmetricsreceiver/generated_component_test.go index b0cc2ac45a86..3bc31e4b259d 100644 --- a/receiver/hostmetricsreceiver/generated_component_test.go +++ b/receiver/hostmetricsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "hostmetrics", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/hostmetricsreceiver/go.mod b/receiver/hostmetricsreceiver/go.mod index f0e7b120f093..bf3974c73f3e 100644 --- a/receiver/hostmetricsreceiver/go.mod +++ b/receiver/hostmetricsreceiver/go.mod @@ -12,14 +12,15 @@ require ( github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 github.com/yusufpapurcu/wmi v1.2.4 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -91,20 +92,20 @@ require ( github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect diff --git a/receiver/hostmetricsreceiver/go.sum b/receiver/hostmetricsreceiver/go.sum index 2af0ae4d4f11..fcd036dc4b09 100644 --- a/receiver/hostmetricsreceiver/go.sum +++ b/receiver/hostmetricsreceiver/go.sum @@ -331,56 +331,58 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_config.go index 47f8886d1396..0ed68079dd37 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics.go index d6eb80141269..12c3ebfd9e48 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics.go @@ -358,6 +358,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemCPUTime: newMetricSystemCPUTime(mbc.Metrics.SystemCPUTime), metricSystemCPUUtilization: newMetricSystemCPUUtilization(mbc.Metrics.SystemCPUUtilization), } + for _, op := range options { op(mb) } @@ -423,6 +424,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics_test.go index 1333e19db136..3d5add0e4f55 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -74,7 +78,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -84,10 +88,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_config.go index 86fb2d6e49d4..a89aa0c77034 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics.go index 217de537eac9..cc4e914e2875 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics.go @@ -454,6 +454,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemDiskPendingOperations: newMetricSystemDiskPendingOperations(mbc.Metrics.SystemDiskPendingOperations), metricSystemDiskWeightedIoTime: newMetricSystemDiskWeightedIoTime(mbc.Metrics.SystemDiskWeightedIoTime), } + for _, op := range options { op(mb) } @@ -521,6 +522,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics_test.go index 5f2dadf556fa..f6ccabb7e77b 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -86,7 +90,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -96,10 +100,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_config.go index c0c5b12cfe75..101dfb0cf552 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics.go index c911a25b9fb8..dcab518ec947 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics.go @@ -243,6 +243,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemFilesystemUsage: newMetricSystemFilesystemUsage(mbc.Metrics.SystemFilesystemUsage), metricSystemFilesystemUtilization: newMetricSystemFilesystemUtilization(mbc.Metrics.SystemFilesystemUtilization), } + for _, op := range options { op(mb) } @@ -306,6 +307,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics_test.go index 90b068c5293c..2ad610cdabc3 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -69,7 +73,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -79,10 +83,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_config.go index 5581bbcf4bed..51ed7b029739 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics.go index 9fa62ebe8697..fd5f03299fa9 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics.go @@ -192,6 +192,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemCPULoadAverage1m: newMetricSystemCPULoadAverage1m(mbc.Metrics.SystemCPULoadAverage1m), metricSystemCPULoadAverage5m: newMetricSystemCPULoadAverage5m(mbc.Metrics.SystemCPULoadAverage5m), } + for _, op := range options { op(mb) } @@ -255,6 +256,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics_test.go index 880b24bd029d..dc661759805c 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -70,7 +74,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -80,10 +84,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_config.go index a81eb2efc960..05db5a46cb21 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics.go index 1539258e61e6..de465ffe51ad 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics.go @@ -299,6 +299,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemMemoryUsage: newMetricSystemMemoryUsage(mbc.Metrics.SystemMemoryUsage), metricSystemMemoryUtilization: newMetricSystemMemoryUtilization(mbc.Metrics.SystemMemoryUtilization), } + for _, op := range options { op(mb) } @@ -363,6 +364,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics_test.go index 8438b3ec0618..3ab8f36401ff 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -71,7 +75,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -81,10 +85,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_config.go index 960cb5315878..22b1763be9ac 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics.go index 0b35c70a5f7c..51a414b2c1ca 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics.go @@ -473,6 +473,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemNetworkIo: newMetricSystemNetworkIo(mbc.Metrics.SystemNetworkIo), metricSystemNetworkPackets: newMetricSystemNetworkPackets(mbc.Metrics.SystemNetworkPackets), } + for _, op := range options { op(mb) } @@ -540,6 +541,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics_test.go index c8762dd4107b..7baf74c8e715 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -84,7 +88,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -94,10 +98,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_config.go index 382f2018a751..426be1aacddc 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics.go index e01e375e535f..f776009b00f7 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics.go @@ -342,6 +342,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemPagingUsage: newMetricSystemPagingUsage(mbc.Metrics.SystemPagingUsage), metricSystemPagingUtilization: newMetricSystemPagingUtilization(mbc.Metrics.SystemPagingUtilization), } + for _, op := range options { op(mb) } @@ -406,6 +407,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics_test.go index 23c52463f699..1d180a990d19 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -73,7 +77,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -83,10 +87,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_config.go index d15d27a08cac..ef03a8fa44d9 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics.go index f7f854977f89..feb8583a3aa0 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics.go @@ -217,6 +217,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSystemProcessesCount: newMetricSystemProcessesCount(mbc.Metrics.SystemProcessesCount), metricSystemProcessesCreated: newMetricSystemProcessesCreated(mbc.Metrics.SystemProcessesCreated), } + for _, op := range options { op(mb) } @@ -279,6 +280,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics_test.go index 8b0f735f6cb4..39635aa37d5f 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -66,7 +70,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -76,10 +80,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config.go index 4398c9117228..ea85a759e8ff 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -86,7 +89,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics.go index 8c84375ce48d..16b50ca8497e 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -799,6 +800,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricProcessContextSwitches metricProcessContextSwitches metricProcessCPUTime metricProcessCPUTime metricProcessCPUUtilization metricProcessCPUUtilization @@ -843,7 +846,58 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricProcessPagingFaults: newMetricProcessPagingFaults(mbc.Metrics.ProcessPagingFaults), metricProcessSignalsPending: newMetricProcessSignalsPending(mbc.Metrics.ProcessSignalsPending), metricProcessThreads: newMetricProcessThreads(mbc.Metrics.ProcessThreads), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ProcessCgroup.Include != nil { + mb.resourceAttributeIncludeFilter["process.cgroup"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCgroup.Include) + } + if mbc.ResourceAttributes.ProcessCgroup.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.cgroup"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCgroup.Exclude) + } + if mbc.ResourceAttributes.ProcessCommand.Include != nil { + mb.resourceAttributeIncludeFilter["process.command"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCommand.Include) + } + if mbc.ResourceAttributes.ProcessCommand.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.command"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCommand.Exclude) + } + if mbc.ResourceAttributes.ProcessCommandLine.Include != nil { + mb.resourceAttributeIncludeFilter["process.command_line"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCommandLine.Include) + } + if mbc.ResourceAttributes.ProcessCommandLine.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.command_line"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessCommandLine.Exclude) + } + if mbc.ResourceAttributes.ProcessExecutableName.Include != nil { + mb.resourceAttributeIncludeFilter["process.executable.name"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessExecutableName.Include) + } + if mbc.ResourceAttributes.ProcessExecutableName.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.executable.name"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessExecutableName.Exclude) + } + if mbc.ResourceAttributes.ProcessExecutablePath.Include != nil { + mb.resourceAttributeIncludeFilter["process.executable.path"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessExecutablePath.Include) + } + if mbc.ResourceAttributes.ProcessExecutablePath.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.executable.path"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessExecutablePath.Exclude) + } + if mbc.ResourceAttributes.ProcessOwner.Include != nil { + mb.resourceAttributeIncludeFilter["process.owner"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessOwner.Include) + } + if mbc.ResourceAttributes.ProcessOwner.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.owner"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessOwner.Exclude) + } + if mbc.ResourceAttributes.ProcessParentPid.Include != nil { + mb.resourceAttributeIncludeFilter["process.parent_pid"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessParentPid.Include) + } + if mbc.ResourceAttributes.ProcessParentPid.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.parent_pid"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessParentPid.Exclude) + } + if mbc.ResourceAttributes.ProcessPid.Include != nil { + mb.resourceAttributeIncludeFilter["process.pid"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessPid.Include) + } + if mbc.ResourceAttributes.ProcessPid.Exclude != nil { + mb.resourceAttributeExcludeFilter["process.pid"] = filter.CreateFilter(mbc.ResourceAttributes.ProcessPid.Exclude) + } + for _, op := range options { op(mb) } @@ -922,6 +976,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics_test.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics_test.go index b7f7849746e2..6efe6ab07a1d 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -110,7 +123,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -120,10 +133,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/testdata/config.yaml b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/testdata/config.yaml index fab0758ec8d4..bad7a9748252 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/testdata/config.yaml +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/testdata/config.yaml @@ -89,3 +89,71 @@ none_set: enabled: false process.pid: enabled: false +filter_set_include: + resource_attributes: + process.cgroup: + enabled: true + include: + - regexp: ".*" + process.command: + enabled: true + include: + - regexp: ".*" + process.command_line: + enabled: true + include: + - regexp: ".*" + process.executable.name: + enabled: true + include: + - regexp: ".*" + process.executable.path: + enabled: true + include: + - regexp: ".*" + process.owner: + enabled: true + include: + - regexp: ".*" + process.parent_pid: + enabled: true + include: + - regexp: ".*" + process.pid: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + process.cgroup: + enabled: true + exclude: + - strict: "process.cgroup-val" + process.command: + enabled: true + exclude: + - strict: "process.command-val" + process.command_line: + enabled: true + exclude: + - strict: "process.command_line-val" + process.executable.name: + enabled: true + exclude: + - strict: "process.executable.name-val" + process.executable.path: + enabled: true + exclude: + - strict: "process.executable.path-val" + process.owner: + enabled: true + exclude: + - strict: "process.owner-val" + process.parent_pid: + enabled: true + exclude: + - regexp: ".*" + process.pid: + enabled: true + exclude: + - regexp: ".*" diff --git a/receiver/httpcheckreceiver/generated_component_test.go b/receiver/httpcheckreceiver/generated_component_test.go index 6414eaa6707d..7a732605f69f 100644 --- a/receiver/httpcheckreceiver/generated_component_test.go +++ b/receiver/httpcheckreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "httpcheck", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/httpcheckreceiver/go.mod b/receiver/httpcheckreceiver/go.mod index 2223a88a5832..68ae4455e4f2 100644 --- a/receiver/httpcheckreceiver/go.mod +++ b/receiver/httpcheckreceiver/go.mod @@ -7,13 +7,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -50,15 +50,15 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/httpcheckreceiver/go.sum b/receiver/httpcheckreceiver/go.sum index 68ef922de1e4..e2be0b34a1b9 100644 --- a/receiver/httpcheckreceiver/go.sum +++ b/receiver/httpcheckreceiver/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/httpcheckreceiver/internal/metadata/generated_config.go b/receiver/httpcheckreceiver/internal/metadata/generated_config.go index 3f064e0f1b45..4030a826a56c 100644 --- a/receiver/httpcheckreceiver/internal/metadata/generated_config.go +++ b/receiver/httpcheckreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/httpcheckreceiver/internal/metadata/generated_metrics.go b/receiver/httpcheckreceiver/internal/metadata/generated_metrics.go index 9154fcc3a960..628ccb1fd399 100644 --- a/receiver/httpcheckreceiver/internal/metadata/generated_metrics.go +++ b/receiver/httpcheckreceiver/internal/metadata/generated_metrics.go @@ -205,6 +205,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricHttpcheckError: newMetricHttpcheckError(mbc.Metrics.HttpcheckError), metricHttpcheckStatus: newMetricHttpcheckStatus(mbc.Metrics.HttpcheckStatus), } + for _, op := range options { op(mb) } @@ -267,6 +268,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/httpcheckreceiver/internal/metadata/generated_metrics_test.go b/receiver/httpcheckreceiver/internal/metadata/generated_metrics_test.go index 79a50c033a97..3f027cb1a51b 100644 --- a/receiver/httpcheckreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/httpcheckreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -70,7 +74,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -80,10 +84,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/iisreceiver/generated_component_test.go b/receiver/iisreceiver/generated_component_test.go index 4fb4c0108a06..2bf3b90e4c6a 100644 --- a/receiver/iisreceiver/generated_component_test.go +++ b/receiver/iisreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "iis", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/iisreceiver/go.mod b/receiver/iisreceiver/go.mod index 4d15c01b0c47..ba5f51bc7c92 100644 --- a/receiver/iisreceiver/go.mod +++ b/receiver/iisreceiver/go.mod @@ -9,11 +9,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/winperfcounters v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -77,8 +78,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/iisreceiver/go.sum b/receiver/iisreceiver/go.sum index 163e43b53bf8..7622e385f96e 100644 --- a/receiver/iisreceiver/go.sum +++ b/receiver/iisreceiver/go.sum @@ -143,22 +143,24 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/iisreceiver/internal/metadata/generated_config.go b/receiver/iisreceiver/internal/metadata/generated_config.go index 5a808a295ec3..a87635777537 100644 --- a/receiver/iisreceiver/internal/metadata/generated_config.go +++ b/receiver/iisreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -82,7 +85,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/iisreceiver/internal/metadata/generated_metrics.go b/receiver/iisreceiver/internal/metadata/generated_metrics.go index a4e585182c41..9695e11d5aa2 100644 --- a/receiver/iisreceiver/internal/metadata/generated_metrics.go +++ b/receiver/iisreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -705,6 +706,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricIisConnectionActive metricIisConnectionActive metricIisConnectionAnonymous metricIisConnectionAnonymous metricIisConnectionAttemptCount metricIisConnectionAttemptCount @@ -747,7 +750,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricIisRequestRejected: newMetricIisRequestRejected(mbc.Metrics.IisRequestRejected), metricIisThreadActive: newMetricIisThreadActive(mbc.Metrics.IisThreadActive), metricIisUptime: newMetricIisUptime(mbc.Metrics.IisUptime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.IisApplicationPool.Include != nil { + mb.resourceAttributeIncludeFilter["iis.application_pool"] = filter.CreateFilter(mbc.ResourceAttributes.IisApplicationPool.Include) + } + if mbc.ResourceAttributes.IisApplicationPool.Exclude != nil { + mb.resourceAttributeExcludeFilter["iis.application_pool"] = filter.CreateFilter(mbc.ResourceAttributes.IisApplicationPool.Exclude) + } + if mbc.ResourceAttributes.IisSite.Include != nil { + mb.resourceAttributeIncludeFilter["iis.site"] = filter.CreateFilter(mbc.ResourceAttributes.IisSite.Include) + } + if mbc.ResourceAttributes.IisSite.Exclude != nil { + mb.resourceAttributeExcludeFilter["iis.site"] = filter.CreateFilter(mbc.ResourceAttributes.IisSite.Exclude) + } + for _, op := range options { op(mb) } @@ -824,6 +842,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/iisreceiver/internal/metadata/generated_metrics_test.go b/receiver/iisreceiver/internal/metadata/generated_metrics_test.go index 16bb1ec008ca..5d464222d6f6 100644 --- a/receiver/iisreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/iisreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -109,7 +122,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -119,10 +132,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/iisreceiver/internal/metadata/testdata/config.yaml b/receiver/iisreceiver/internal/metadata/testdata/config.yaml index fdbf84978610..dec4f4ad8c21 100644 --- a/receiver/iisreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/iisreceiver/internal/metadata/testdata/config.yaml @@ -61,3 +61,23 @@ none_set: enabled: false iis.site: enabled: false +filter_set_include: + resource_attributes: + iis.application_pool: + enabled: true + include: + - regexp: ".*" + iis.site: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + iis.application_pool: + enabled: true + exclude: + - strict: "iis.application_pool-val" + iis.site: + enabled: true + exclude: + - strict: "iis.site-val" diff --git a/receiver/influxdbreceiver/generated_component_test.go b/receiver/influxdbreceiver/generated_component_test.go index 9eb82c0c8937..d8c27260ca37 100644 --- a/receiver/influxdbreceiver/generated_component_test.go +++ b/receiver/influxdbreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "influxdb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/influxdbreceiver/go.mod b/receiver/influxdbreceiver/go.mod index b2460b0d582d..8cfd08e188de 100644 --- a/receiver/influxdbreceiver/go.mod +++ b/receiver/influxdbreceiver/go.mod @@ -10,12 +10,12 @@ require ( github.com/influxdata/line-protocol/v2 v2.2.1 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -55,17 +55,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/influxdbreceiver/go.sum b/receiver/influxdbreceiver/go.sum index 7271e4c6779a..3cd61554773c 100644 --- a/receiver/influxdbreceiver/go.sum +++ b/receiver/influxdbreceiver/go.sum @@ -115,42 +115,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/jaegerreceiver/generated_component_test.go b/receiver/jaegerreceiver/generated_component_test.go index b062bbc3b321..dd898945ca64 100644 --- a/receiver/jaegerreceiver/generated_component_test.go +++ b/receiver/jaegerreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "jaeger", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/jaegerreceiver/go.mod b/receiver/jaegerreceiver/go.mod index 2a5cf2cbe218..826fac9026bc 100644 --- a/receiver/jaegerreceiver/go.mod +++ b/receiver/jaegerreceiver/go.mod @@ -9,17 +9,17 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -59,14 +59,14 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/jaegerreceiver/go.sum b/receiver/jaegerreceiver/go.sum index ba5d21e80e9e..d92ba9e460af 100644 --- a/receiver/jaegerreceiver/go.sum +++ b/receiver/jaegerreceiver/go.sum @@ -124,46 +124,46 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8 github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/jmxreceiver/generated_component_test.go b/receiver/jmxreceiver/generated_component_test.go index 8883d147b45a..d38bb56d1dba 100644 --- a/receiver/jmxreceiver/generated_component_test.go +++ b/receiver/jmxreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "jmx", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/jmxreceiver/go.mod b/receiver/jmxreceiver/go.mod index ed930e1549b5..0dae70b0f8ab 100644 --- a/receiver/jmxreceiver/go.mod +++ b/receiver/jmxreceiver/go.mod @@ -9,14 +9,14 @@ require ( github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -83,19 +83,19 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/jmxreceiver/go.sum b/receiver/jmxreceiver/go.sum index eef15d4bcdab..242fe8e34a23 100644 --- a/receiver/jmxreceiver/go.sum +++ b/receiver/jmxreceiver/go.sum @@ -153,50 +153,50 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/receiver/journaldreceiver/generated_component_test.go b/receiver/journaldreceiver/generated_component_test.go index 8b3b46add33a..14abac24ed44 100644 --- a/receiver/journaldreceiver/generated_component_test.go +++ b/receiver/journaldreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "journald", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/journaldreceiver/go.mod b/receiver/journaldreceiver/go.mod index d069e22ac9df..3e50b8081eaa 100644 --- a/receiver/journaldreceiver/go.mod +++ b/receiver/journaldreceiver/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,11 +43,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/journaldreceiver/go.sum b/receiver/journaldreceiver/go.sum index 33e043063a67..aa6a0811111a 100644 --- a/receiver/journaldreceiver/go.sum +++ b/receiver/journaldreceiver/go.sum @@ -77,26 +77,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/k8sclusterreceiver/generated_component_test.go b/receiver/k8sclusterreceiver/generated_component_test.go index da5dad3d67d3..837e48f13d00 100644 --- a/receiver/k8sclusterreceiver/generated_component_test.go +++ b/receiver/k8sclusterreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "k8s_cluster", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/k8sclusterreceiver/go.mod b/receiver/k8sclusterreceiver/go.mod index 5a124714d80c..1dcef1056366 100644 --- a/receiver/k8sclusterreceiver/go.mod +++ b/receiver/k8sclusterreceiver/go.mod @@ -16,13 +16,14 @@ require ( github.com/openshift/api v3.9.0+incompatible github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -83,19 +84,19 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/k8sclusterreceiver/go.sum b/receiver/k8sclusterreceiver/go.sum index 58432fb4f489..c092066be967 100644 --- a/receiver/k8sclusterreceiver/go.sum +++ b/receiver/k8sclusterreceiver/go.sum @@ -309,48 +309,50 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/receiver/k8sclusterreceiver/internal/metadata/generated_config.go b/receiver/k8sclusterreceiver/internal/metadata/generated_config.go index ee319ab03b8f..22a1c8703bf6 100644 --- a/receiver/k8sclusterreceiver/internal/metadata/generated_config.go +++ b/receiver/k8sclusterreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -210,7 +213,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/k8sclusterreceiver/internal/metadata/generated_metrics.go b/receiver/k8sclusterreceiver/internal/metadata/generated_metrics.go index 3d1bf97bcc37..08d98364f951 100644 --- a/receiver/k8sclusterreceiver/internal/metadata/generated_metrics.go +++ b/receiver/k8sclusterreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -2192,6 +2193,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricK8sContainerCPULimit metricK8sContainerCPULimit metricK8sContainerCPURequest metricK8sContainerCPURequest metricK8sContainerEphemeralstorageLimit metricK8sContainerEphemeralstorageLimit @@ -2298,7 +2301,232 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricOpenshiftAppliedclusterquotaUsed: newMetricOpenshiftAppliedclusterquotaUsed(mbc.Metrics.OpenshiftAppliedclusterquotaUsed), metricOpenshiftClusterquotaLimit: newMetricOpenshiftClusterquotaLimit(mbc.Metrics.OpenshiftClusterquotaLimit), metricOpenshiftClusterquotaUsed: newMetricOpenshiftClusterquotaUsed(mbc.Metrics.OpenshiftClusterquotaUsed), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ContainerID.Include != nil { + mb.resourceAttributeIncludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Include) + } + if mbc.ResourceAttributes.ContainerID.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Exclude) + } + if mbc.ResourceAttributes.ContainerImageName.Include != nil { + mb.resourceAttributeIncludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Include) + } + if mbc.ResourceAttributes.ContainerImageName.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Exclude) + } + if mbc.ResourceAttributes.ContainerImageTag.Include != nil { + mb.resourceAttributeIncludeFilter["container.image.tag"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageTag.Include) + } + if mbc.ResourceAttributes.ContainerImageTag.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.image.tag"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageTag.Exclude) + } + if mbc.ResourceAttributes.ContainerRuntime.Include != nil { + mb.resourceAttributeIncludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Include) + } + if mbc.ResourceAttributes.ContainerRuntime.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Exclude) + } + if mbc.ResourceAttributes.ContainerRuntimeVersion.Include != nil { + mb.resourceAttributeIncludeFilter["container.runtime.version"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntimeVersion.Include) + } + if mbc.ResourceAttributes.ContainerRuntimeVersion.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.runtime.version"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntimeVersion.Exclude) + } + if mbc.ResourceAttributes.K8sContainerName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.container.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerName.Include) + } + if mbc.ResourceAttributes.K8sContainerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.container.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerName.Exclude) + } + if mbc.ResourceAttributes.K8sContainerStatusLastTerminatedReason.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.container.status.last_terminated_reason"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerStatusLastTerminatedReason.Include) + } + if mbc.ResourceAttributes.K8sContainerStatusLastTerminatedReason.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.container.status.last_terminated_reason"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerStatusLastTerminatedReason.Exclude) + } + if mbc.ResourceAttributes.K8sCronjobName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.cronjob.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sCronjobName.Include) + } + if mbc.ResourceAttributes.K8sCronjobName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.cronjob.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sCronjobName.Exclude) + } + if mbc.ResourceAttributes.K8sCronjobUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.cronjob.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sCronjobUID.Include) + } + if mbc.ResourceAttributes.K8sCronjobUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.cronjob.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sCronjobUID.Exclude) + } + if mbc.ResourceAttributes.K8sDaemonsetName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.daemonset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDaemonsetName.Include) + } + if mbc.ResourceAttributes.K8sDaemonsetName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.daemonset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDaemonsetName.Exclude) + } + if mbc.ResourceAttributes.K8sDaemonsetUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.daemonset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDaemonsetUID.Include) + } + if mbc.ResourceAttributes.K8sDaemonsetUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.daemonset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDaemonsetUID.Exclude) + } + if mbc.ResourceAttributes.K8sDeploymentName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.deployment.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDeploymentName.Include) + } + if mbc.ResourceAttributes.K8sDeploymentName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.deployment.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDeploymentName.Exclude) + } + if mbc.ResourceAttributes.K8sDeploymentUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.deployment.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDeploymentUID.Include) + } + if mbc.ResourceAttributes.K8sDeploymentUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.deployment.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sDeploymentUID.Exclude) + } + if mbc.ResourceAttributes.K8sHpaName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.hpa.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sHpaName.Include) + } + if mbc.ResourceAttributes.K8sHpaName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.hpa.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sHpaName.Exclude) + } + if mbc.ResourceAttributes.K8sHpaUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.hpa.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sHpaUID.Include) + } + if mbc.ResourceAttributes.K8sHpaUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.hpa.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sHpaUID.Exclude) + } + if mbc.ResourceAttributes.K8sJobName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.job.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sJobName.Include) + } + if mbc.ResourceAttributes.K8sJobName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.job.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sJobName.Exclude) + } + if mbc.ResourceAttributes.K8sJobUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.job.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sJobUID.Include) + } + if mbc.ResourceAttributes.K8sJobUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.job.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sJobUID.Exclude) + } + if mbc.ResourceAttributes.K8sKubeletVersion.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.kubelet.version"] = filter.CreateFilter(mbc.ResourceAttributes.K8sKubeletVersion.Include) + } + if mbc.ResourceAttributes.K8sKubeletVersion.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.kubelet.version"] = filter.CreateFilter(mbc.ResourceAttributes.K8sKubeletVersion.Exclude) + } + if mbc.ResourceAttributes.K8sNamespaceName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.namespace.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceName.Include) + } + if mbc.ResourceAttributes.K8sNamespaceName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.namespace.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceName.Exclude) + } + if mbc.ResourceAttributes.K8sNamespaceUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.namespace.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceUID.Include) + } + if mbc.ResourceAttributes.K8sNamespaceUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.namespace.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceUID.Exclude) + } + if mbc.ResourceAttributes.K8sNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeName.Include) + } + if mbc.ResourceAttributes.K8sNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeName.Exclude) + } + if mbc.ResourceAttributes.K8sNodeUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.node.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeUID.Include) + } + if mbc.ResourceAttributes.K8sNodeUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.node.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeUID.Exclude) + } + if mbc.ResourceAttributes.K8sPodName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.pod.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodName.Include) + } + if mbc.ResourceAttributes.K8sPodName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.pod.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodName.Exclude) + } + if mbc.ResourceAttributes.K8sPodQosClass.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.pod.qos_class"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodQosClass.Include) + } + if mbc.ResourceAttributes.K8sPodQosClass.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.pod.qos_class"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodQosClass.Exclude) + } + if mbc.ResourceAttributes.K8sPodUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.pod.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodUID.Include) + } + if mbc.ResourceAttributes.K8sPodUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.pod.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodUID.Exclude) + } + if mbc.ResourceAttributes.K8sReplicasetName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.replicaset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicasetName.Include) + } + if mbc.ResourceAttributes.K8sReplicasetName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.replicaset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicasetName.Exclude) + } + if mbc.ResourceAttributes.K8sReplicasetUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.replicaset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicasetUID.Include) + } + if mbc.ResourceAttributes.K8sReplicasetUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.replicaset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicasetUID.Exclude) + } + if mbc.ResourceAttributes.K8sReplicationcontrollerName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.replicationcontroller.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicationcontrollerName.Include) + } + if mbc.ResourceAttributes.K8sReplicationcontrollerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.replicationcontroller.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicationcontrollerName.Exclude) + } + if mbc.ResourceAttributes.K8sReplicationcontrollerUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.replicationcontroller.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicationcontrollerUID.Include) + } + if mbc.ResourceAttributes.K8sReplicationcontrollerUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.replicationcontroller.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sReplicationcontrollerUID.Exclude) + } + if mbc.ResourceAttributes.K8sResourcequotaName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.resourcequota.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sResourcequotaName.Include) + } + if mbc.ResourceAttributes.K8sResourcequotaName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.resourcequota.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sResourcequotaName.Exclude) + } + if mbc.ResourceAttributes.K8sResourcequotaUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.resourcequota.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sResourcequotaUID.Include) + } + if mbc.ResourceAttributes.K8sResourcequotaUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.resourcequota.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sResourcequotaUID.Exclude) + } + if mbc.ResourceAttributes.K8sStatefulsetName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.statefulset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sStatefulsetName.Include) + } + if mbc.ResourceAttributes.K8sStatefulsetName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.statefulset.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sStatefulsetName.Exclude) + } + if mbc.ResourceAttributes.K8sStatefulsetUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.statefulset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sStatefulsetUID.Include) + } + if mbc.ResourceAttributes.K8sStatefulsetUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.statefulset.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sStatefulsetUID.Exclude) + } + if mbc.ResourceAttributes.OpenshiftClusterquotaName.Include != nil { + mb.resourceAttributeIncludeFilter["openshift.clusterquota.name"] = filter.CreateFilter(mbc.ResourceAttributes.OpenshiftClusterquotaName.Include) + } + if mbc.ResourceAttributes.OpenshiftClusterquotaName.Exclude != nil { + mb.resourceAttributeExcludeFilter["openshift.clusterquota.name"] = filter.CreateFilter(mbc.ResourceAttributes.OpenshiftClusterquotaName.Exclude) + } + if mbc.ResourceAttributes.OpenshiftClusterquotaUID.Include != nil { + mb.resourceAttributeIncludeFilter["openshift.clusterquota.uid"] = filter.CreateFilter(mbc.ResourceAttributes.OpenshiftClusterquotaUID.Include) + } + if mbc.ResourceAttributes.OpenshiftClusterquotaUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["openshift.clusterquota.uid"] = filter.CreateFilter(mbc.ResourceAttributes.OpenshiftClusterquotaUID.Exclude) + } + if mbc.ResourceAttributes.OsDescription.Include != nil { + mb.resourceAttributeIncludeFilter["os.description"] = filter.CreateFilter(mbc.ResourceAttributes.OsDescription.Include) + } + if mbc.ResourceAttributes.OsDescription.Exclude != nil { + mb.resourceAttributeExcludeFilter["os.description"] = filter.CreateFilter(mbc.ResourceAttributes.OsDescription.Exclude) + } + if mbc.ResourceAttributes.OsType.Include != nil { + mb.resourceAttributeIncludeFilter["os.type"] = filter.CreateFilter(mbc.ResourceAttributes.OsType.Include) + } + if mbc.ResourceAttributes.OsType.Exclude != nil { + mb.resourceAttributeExcludeFilter["os.type"] = filter.CreateFilter(mbc.ResourceAttributes.OsType.Exclude) + } + for _, op := range options { op(mb) } @@ -2408,6 +2636,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/k8sclusterreceiver/internal/metadata/generated_metrics_test.go b/receiver/k8sclusterreceiver/internal/metadata/generated_metrics_test.go index 8e72e4c91d12..1f97ef4001a5 100644 --- a/receiver/k8sclusterreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/k8sclusterreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -270,7 +283,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -280,10 +293,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/k8sclusterreceiver/internal/metadata/testdata/config.yaml b/receiver/k8sclusterreceiver/internal/metadata/testdata/config.yaml index 20c47b09563f..5e51dfc4a10c 100644 --- a/receiver/k8sclusterreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/k8sclusterreceiver/internal/metadata/testdata/config.yaml @@ -329,3 +329,303 @@ none_set: enabled: false os.type: enabled: false +filter_set_include: + resource_attributes: + container.id: + enabled: true + include: + - regexp: ".*" + container.image.name: + enabled: true + include: + - regexp: ".*" + container.image.tag: + enabled: true + include: + - regexp: ".*" + container.runtime: + enabled: true + include: + - regexp: ".*" + container.runtime.version: + enabled: true + include: + - regexp: ".*" + k8s.container.name: + enabled: true + include: + - regexp: ".*" + k8s.container.status.last_terminated_reason: + enabled: true + include: + - regexp: ".*" + k8s.cronjob.name: + enabled: true + include: + - regexp: ".*" + k8s.cronjob.uid: + enabled: true + include: + - regexp: ".*" + k8s.daemonset.name: + enabled: true + include: + - regexp: ".*" + k8s.daemonset.uid: + enabled: true + include: + - regexp: ".*" + k8s.deployment.name: + enabled: true + include: + - regexp: ".*" + k8s.deployment.uid: + enabled: true + include: + - regexp: ".*" + k8s.hpa.name: + enabled: true + include: + - regexp: ".*" + k8s.hpa.uid: + enabled: true + include: + - regexp: ".*" + k8s.job.name: + enabled: true + include: + - regexp: ".*" + k8s.job.uid: + enabled: true + include: + - regexp: ".*" + k8s.kubelet.version: + enabled: true + include: + - regexp: ".*" + k8s.namespace.name: + enabled: true + include: + - regexp: ".*" + k8s.namespace.uid: + enabled: true + include: + - regexp: ".*" + k8s.node.name: + enabled: true + include: + - regexp: ".*" + k8s.node.uid: + enabled: true + include: + - regexp: ".*" + k8s.pod.name: + enabled: true + include: + - regexp: ".*" + k8s.pod.qos_class: + enabled: true + include: + - regexp: ".*" + k8s.pod.uid: + enabled: true + include: + - regexp: ".*" + k8s.replicaset.name: + enabled: true + include: + - regexp: ".*" + k8s.replicaset.uid: + enabled: true + include: + - regexp: ".*" + k8s.replicationcontroller.name: + enabled: true + include: + - regexp: ".*" + k8s.replicationcontroller.uid: + enabled: true + include: + - regexp: ".*" + k8s.resourcequota.name: + enabled: true + include: + - regexp: ".*" + k8s.resourcequota.uid: + enabled: true + include: + - regexp: ".*" + k8s.statefulset.name: + enabled: true + include: + - regexp: ".*" + k8s.statefulset.uid: + enabled: true + include: + - regexp: ".*" + openshift.clusterquota.name: + enabled: true + include: + - regexp: ".*" + openshift.clusterquota.uid: + enabled: true + include: + - regexp: ".*" + os.description: + enabled: true + include: + - regexp: ".*" + os.type: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + container.id: + enabled: true + exclude: + - strict: "container.id-val" + container.image.name: + enabled: true + exclude: + - strict: "container.image.name-val" + container.image.tag: + enabled: true + exclude: + - strict: "container.image.tag-val" + container.runtime: + enabled: true + exclude: + - strict: "container.runtime-val" + container.runtime.version: + enabled: true + exclude: + - strict: "container.runtime.version-val" + k8s.container.name: + enabled: true + exclude: + - strict: "k8s.container.name-val" + k8s.container.status.last_terminated_reason: + enabled: true + exclude: + - strict: "k8s.container.status.last_terminated_reason-val" + k8s.cronjob.name: + enabled: true + exclude: + - strict: "k8s.cronjob.name-val" + k8s.cronjob.uid: + enabled: true + exclude: + - strict: "k8s.cronjob.uid-val" + k8s.daemonset.name: + enabled: true + exclude: + - strict: "k8s.daemonset.name-val" + k8s.daemonset.uid: + enabled: true + exclude: + - strict: "k8s.daemonset.uid-val" + k8s.deployment.name: + enabled: true + exclude: + - strict: "k8s.deployment.name-val" + k8s.deployment.uid: + enabled: true + exclude: + - strict: "k8s.deployment.uid-val" + k8s.hpa.name: + enabled: true + exclude: + - strict: "k8s.hpa.name-val" + k8s.hpa.uid: + enabled: true + exclude: + - strict: "k8s.hpa.uid-val" + k8s.job.name: + enabled: true + exclude: + - strict: "k8s.job.name-val" + k8s.job.uid: + enabled: true + exclude: + - strict: "k8s.job.uid-val" + k8s.kubelet.version: + enabled: true + exclude: + - strict: "k8s.kubelet.version-val" + k8s.namespace.name: + enabled: true + exclude: + - strict: "k8s.namespace.name-val" + k8s.namespace.uid: + enabled: true + exclude: + - strict: "k8s.namespace.uid-val" + k8s.node.name: + enabled: true + exclude: + - strict: "k8s.node.name-val" + k8s.node.uid: + enabled: true + exclude: + - strict: "k8s.node.uid-val" + k8s.pod.name: + enabled: true + exclude: + - strict: "k8s.pod.name-val" + k8s.pod.qos_class: + enabled: true + exclude: + - strict: "k8s.pod.qos_class-val" + k8s.pod.uid: + enabled: true + exclude: + - strict: "k8s.pod.uid-val" + k8s.replicaset.name: + enabled: true + exclude: + - strict: "k8s.replicaset.name-val" + k8s.replicaset.uid: + enabled: true + exclude: + - strict: "k8s.replicaset.uid-val" + k8s.replicationcontroller.name: + enabled: true + exclude: + - strict: "k8s.replicationcontroller.name-val" + k8s.replicationcontroller.uid: + enabled: true + exclude: + - strict: "k8s.replicationcontroller.uid-val" + k8s.resourcequota.name: + enabled: true + exclude: + - strict: "k8s.resourcequota.name-val" + k8s.resourcequota.uid: + enabled: true + exclude: + - strict: "k8s.resourcequota.uid-val" + k8s.statefulset.name: + enabled: true + exclude: + - strict: "k8s.statefulset.name-val" + k8s.statefulset.uid: + enabled: true + exclude: + - strict: "k8s.statefulset.uid-val" + openshift.clusterquota.name: + enabled: true + exclude: + - strict: "openshift.clusterquota.name-val" + openshift.clusterquota.uid: + enabled: true + exclude: + - strict: "openshift.clusterquota.uid-val" + os.description: + enabled: true + exclude: + - strict: "os.description-val" + os.type: + enabled: true + exclude: + - strict: "os.type-val" diff --git a/receiver/k8seventsreceiver/generated_component_test.go b/receiver/k8seventsreceiver/generated_component_test.go index af79071367a4..73468bca659c 100644 --- a/receiver/k8seventsreceiver/generated_component_test.go +++ b/receiver/k8seventsreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "k8s_events", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/k8seventsreceiver/go.mod b/receiver/k8seventsreceiver/go.mod index b9c0d093b96a..06aa166c33fc 100644 --- a/receiver/k8seventsreceiver/go.mod +++ b/receiver/k8seventsreceiver/go.mod @@ -5,12 +5,12 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -59,8 +59,8 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/k8seventsreceiver/go.sum b/receiver/k8seventsreceiver/go.sum index 9c76ad35f524..1e5d1ea91850 100644 --- a/receiver/k8seventsreceiver/go.sum +++ b/receiver/k8seventsreceiver/go.sum @@ -265,24 +265,24 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/k8sobjectsreceiver/generated_component_test.go b/receiver/k8sobjectsreceiver/generated_component_test.go index e55bd7d112cd..f01be93dfe78 100644 --- a/receiver/k8sobjectsreceiver/generated_component_test.go +++ b/receiver/k8sobjectsreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "k8sobjects", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/k8sobjectsreceiver/go.mod b/receiver/k8sobjectsreceiver/go.mod index f56009bc89c3..abb6b8e5d8c8 100644 --- a/receiver/k8sobjectsreceiver/go.mod +++ b/receiver/k8sobjectsreceiver/go.mod @@ -9,13 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -77,19 +77,19 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/k8sobjectsreceiver/go.sum b/receiver/k8sobjectsreceiver/go.sum index dc9f312bcb7e..928f8096b8f4 100644 --- a/receiver/k8sobjectsreceiver/go.sum +++ b/receiver/k8sobjectsreceiver/go.sum @@ -307,48 +307,48 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/receiver/kafkametricsreceiver/generated_component_test.go b/receiver/kafkametricsreceiver/generated_component_test.go index c1f0ddd8ccbb..6a5416d30a40 100644 --- a/receiver/kafkametricsreceiver/generated_component_test.go +++ b/receiver/kafkametricsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "kafkametrics", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/kafkametricsreceiver/go.mod b/receiver/kafkametricsreceiver/go.mod index 46c9e1cfdc4a..25d18fa3676b 100644 --- a/receiver/kafkametricsreceiver/go.mod +++ b/receiver/kafkametricsreceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/google/go-cmp v0.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/kafka v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -64,9 +64,9 @@ require ( github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/kafkametricsreceiver/go.sum b/receiver/kafkametricsreceiver/go.sum index 04247a71d25e..c91d0abbf311 100644 --- a/receiver/kafkametricsreceiver/go.sum +++ b/receiver/kafkametricsreceiver/go.sum @@ -125,26 +125,26 @@ github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gi 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/kafkametricsreceiver/internal/metadata/generated_config.go b/receiver/kafkametricsreceiver/internal/metadata/generated_config.go index dfcc17508e1f..89f05c6a4179 100644 --- a/receiver/kafkametricsreceiver/internal/metadata/generated_config.go +++ b/receiver/kafkametricsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go index 9a2ff30c2ae0..29213b430840 100644 --- a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go @@ -639,6 +639,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricKafkaPartitionReplicasInSync: newMetricKafkaPartitionReplicasInSync(mbc.Metrics.KafkaPartitionReplicasInSync), metricKafkaTopicPartitions: newMetricKafkaTopicPartitions(mbc.Metrics.KafkaTopicPartitions), } + for _, op := range options { op(mb) } @@ -709,6 +710,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go index 8d37a5321951..b68a27e7d2fb 100644 --- a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -102,7 +106,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -112,10 +116,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/kafkareceiver/generated_component_test.go b/receiver/kafkareceiver/generated_component_test.go index 5535405eb885..57b8b53b90f4 100644 --- a/receiver/kafkareceiver/generated_component_test.go +++ b/receiver/kafkareceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "kafka", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/kafkareceiver/go.mod b/receiver/kafkareceiver/go.mod index 92c4c8ee2ce2..b4e52ba489f0 100644 --- a/receiver/kafkareceiver/go.mod +++ b/receiver/kafkareceiver/go.mod @@ -17,14 +17,14 @@ require ( github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -75,12 +75,12 @@ require ( github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/kafkareceiver/go.sum b/receiver/kafkareceiver/go.sum index cecbf625f676..75a2f2e0a2c6 100644 --- a/receiver/kafkareceiver/go.sum +++ b/receiver/kafkareceiver/go.sum @@ -166,34 +166,34 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/kubeletstatsreceiver/generated_component_test.go b/receiver/kubeletstatsreceiver/generated_component_test.go index f14afe4bf861..6818f180bfd0 100644 --- a/receiver/kubeletstatsreceiver/generated_component_test.go +++ b/receiver/kubeletstatsreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "kubeletstats", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/kubeletstatsreceiver/go.mod b/receiver/kubeletstatsreceiver/go.mod index 8e970020c061..c4462fade376 100644 --- a/receiver/kubeletstatsreceiver/go.mod +++ b/receiver/kubeletstatsreceiver/go.mod @@ -11,15 +11,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -84,17 +85,17 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/kubeletstatsreceiver/go.sum b/receiver/kubeletstatsreceiver/go.sum index ab1ffa4f6227..213fa65964c9 100644 --- a/receiver/kubeletstatsreceiver/go.sum +++ b/receiver/kubeletstatsreceiver/go.sum @@ -307,48 +307,50 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/receiver/kubeletstatsreceiver/internal/metadata/generated_config.go b/receiver/kubeletstatsreceiver/internal/metadata/generated_config.go index a7d7a70dcb32..6f1f091fbf15 100644 --- a/receiver/kubeletstatsreceiver/internal/metadata/generated_config.go +++ b/receiver/kubeletstatsreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -258,7 +261,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics.go b/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics.go index 3f312391aba5..63ed8fb7a32b 100644 --- a/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -2821,6 +2822,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricContainerCPUTime metricContainerCPUTime metricContainerCPUUsage metricContainerCPUUsage metricContainerCPUUtilization metricContainerCPUUtilization @@ -2960,7 +2963,100 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricK8sVolumeInodes: newMetricK8sVolumeInodes(mbc.Metrics.K8sVolumeInodes), metricK8sVolumeInodesFree: newMetricK8sVolumeInodesFree(mbc.Metrics.K8sVolumeInodesFree), metricK8sVolumeInodesUsed: newMetricK8sVolumeInodesUsed(mbc.Metrics.K8sVolumeInodesUsed), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.AwsVolumeID.Include != nil { + mb.resourceAttributeIncludeFilter["aws.volume.id"] = filter.CreateFilter(mbc.ResourceAttributes.AwsVolumeID.Include) + } + if mbc.ResourceAttributes.AwsVolumeID.Exclude != nil { + mb.resourceAttributeExcludeFilter["aws.volume.id"] = filter.CreateFilter(mbc.ResourceAttributes.AwsVolumeID.Exclude) + } + if mbc.ResourceAttributes.ContainerID.Include != nil { + mb.resourceAttributeIncludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Include) + } + if mbc.ResourceAttributes.ContainerID.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Exclude) + } + if mbc.ResourceAttributes.FsType.Include != nil { + mb.resourceAttributeIncludeFilter["fs.type"] = filter.CreateFilter(mbc.ResourceAttributes.FsType.Include) + } + if mbc.ResourceAttributes.FsType.Exclude != nil { + mb.resourceAttributeExcludeFilter["fs.type"] = filter.CreateFilter(mbc.ResourceAttributes.FsType.Exclude) + } + if mbc.ResourceAttributes.GcePdName.Include != nil { + mb.resourceAttributeIncludeFilter["gce.pd.name"] = filter.CreateFilter(mbc.ResourceAttributes.GcePdName.Include) + } + if mbc.ResourceAttributes.GcePdName.Exclude != nil { + mb.resourceAttributeExcludeFilter["gce.pd.name"] = filter.CreateFilter(mbc.ResourceAttributes.GcePdName.Exclude) + } + if mbc.ResourceAttributes.GlusterfsEndpointsName.Include != nil { + mb.resourceAttributeIncludeFilter["glusterfs.endpoints.name"] = filter.CreateFilter(mbc.ResourceAttributes.GlusterfsEndpointsName.Include) + } + if mbc.ResourceAttributes.GlusterfsEndpointsName.Exclude != nil { + mb.resourceAttributeExcludeFilter["glusterfs.endpoints.name"] = filter.CreateFilter(mbc.ResourceAttributes.GlusterfsEndpointsName.Exclude) + } + if mbc.ResourceAttributes.GlusterfsPath.Include != nil { + mb.resourceAttributeIncludeFilter["glusterfs.path"] = filter.CreateFilter(mbc.ResourceAttributes.GlusterfsPath.Include) + } + if mbc.ResourceAttributes.GlusterfsPath.Exclude != nil { + mb.resourceAttributeExcludeFilter["glusterfs.path"] = filter.CreateFilter(mbc.ResourceAttributes.GlusterfsPath.Exclude) + } + if mbc.ResourceAttributes.K8sContainerName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.container.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerName.Include) + } + if mbc.ResourceAttributes.K8sContainerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.container.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sContainerName.Exclude) + } + if mbc.ResourceAttributes.K8sNamespaceName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.namespace.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceName.Include) + } + if mbc.ResourceAttributes.K8sNamespaceName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.namespace.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNamespaceName.Exclude) + } + if mbc.ResourceAttributes.K8sNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeName.Include) + } + if mbc.ResourceAttributes.K8sNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sNodeName.Exclude) + } + if mbc.ResourceAttributes.K8sPersistentvolumeclaimName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.persistentvolumeclaim.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPersistentvolumeclaimName.Include) + } + if mbc.ResourceAttributes.K8sPersistentvolumeclaimName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.persistentvolumeclaim.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPersistentvolumeclaimName.Exclude) + } + if mbc.ResourceAttributes.K8sPodName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.pod.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodName.Include) + } + if mbc.ResourceAttributes.K8sPodName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.pod.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodName.Exclude) + } + if mbc.ResourceAttributes.K8sPodUID.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.pod.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodUID.Include) + } + if mbc.ResourceAttributes.K8sPodUID.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.pod.uid"] = filter.CreateFilter(mbc.ResourceAttributes.K8sPodUID.Exclude) + } + if mbc.ResourceAttributes.K8sVolumeName.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.volume.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sVolumeName.Include) + } + if mbc.ResourceAttributes.K8sVolumeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.volume.name"] = filter.CreateFilter(mbc.ResourceAttributes.K8sVolumeName.Exclude) + } + if mbc.ResourceAttributes.K8sVolumeType.Include != nil { + mb.resourceAttributeIncludeFilter["k8s.volume.type"] = filter.CreateFilter(mbc.ResourceAttributes.K8sVolumeType.Include) + } + if mbc.ResourceAttributes.K8sVolumeType.Exclude != nil { + mb.resourceAttributeExcludeFilter["k8s.volume.type"] = filter.CreateFilter(mbc.ResourceAttributes.K8sVolumeType.Exclude) + } + if mbc.ResourceAttributes.Partition.Include != nil { + mb.resourceAttributeIncludeFilter["partition"] = filter.CreateFilter(mbc.ResourceAttributes.Partition.Include) + } + if mbc.ResourceAttributes.Partition.Exclude != nil { + mb.resourceAttributeExcludeFilter["partition"] = filter.CreateFilter(mbc.ResourceAttributes.Partition.Exclude) + } + for _, op := range options { op(mb) } @@ -3081,6 +3177,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics_test.go b/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics_test.go index ad03beaee512..d186dbb52227 100644 --- a/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/kubeletstatsreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -49,15 +62,15 @@ func TestMetricsBuilder(t *testing.T) { mb := NewMetricsBuilder(loadMetricsBuilderConfig(t, test.name), settings, WithStartTime(start)) expectedWarnings := 0 - if test.configSet == testSetDefault || test.configSet == testSetAll { + if test.metricsSet == testDataSetDefault || test.metricsSet == testDataSetAll { assert.Equal(t, "[WARNING] `container.cpu.utilization` should not be enabled: WARNING: This metric will be disabled in a future release. Use metric container.cpu.usage instead.", observedLogs.All()[expectedWarnings].Message) expectedWarnings++ } - if test.configSet == testSetDefault || test.configSet == testSetAll { + if test.metricsSet == testDataSetDefault || test.metricsSet == testDataSetAll { assert.Equal(t, "[WARNING] `k8s.node.cpu.utilization` should not be enabled: WARNING: This metric will be disabled in a future release. Use metric k8s.node.cpu.usage instead.", observedLogs.All()[expectedWarnings].Message) expectedWarnings++ } - if test.configSet == testSetDefault || test.configSet == testSetAll { + if test.metricsSet == testDataSetDefault || test.metricsSet == testDataSetAll { assert.Equal(t, "[WARNING] `k8s.pod.cpu.utilization` should not be enabled: This metric will be disabled in a future release. Use metric k8s.pod.cpu.usage instead.", observedLogs.All()[expectedWarnings].Message) expectedWarnings++ } @@ -296,7 +309,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -306,10 +319,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/kubeletstatsreceiver/internal/metadata/testdata/config.yaml b/receiver/kubeletstatsreceiver/internal/metadata/testdata/config.yaml index 670fea221c4d..3d7947fc5bab 100644 --- a/receiver/kubeletstatsreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/kubeletstatsreceiver/internal/metadata/testdata/config.yaml @@ -289,3 +289,127 @@ none_set: enabled: false partition: enabled: false +filter_set_include: + resource_attributes: + aws.volume.id: + enabled: true + include: + - regexp: ".*" + container.id: + enabled: true + include: + - regexp: ".*" + fs.type: + enabled: true + include: + - regexp: ".*" + gce.pd.name: + enabled: true + include: + - regexp: ".*" + glusterfs.endpoints.name: + enabled: true + include: + - regexp: ".*" + glusterfs.path: + enabled: true + include: + - regexp: ".*" + k8s.container.name: + enabled: true + include: + - regexp: ".*" + k8s.namespace.name: + enabled: true + include: + - regexp: ".*" + k8s.node.name: + enabled: true + include: + - regexp: ".*" + k8s.persistentvolumeclaim.name: + enabled: true + include: + - regexp: ".*" + k8s.pod.name: + enabled: true + include: + - regexp: ".*" + k8s.pod.uid: + enabled: true + include: + - regexp: ".*" + k8s.volume.name: + enabled: true + include: + - regexp: ".*" + k8s.volume.type: + enabled: true + include: + - regexp: ".*" + partition: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + aws.volume.id: + enabled: true + exclude: + - strict: "aws.volume.id-val" + container.id: + enabled: true + exclude: + - strict: "container.id-val" + fs.type: + enabled: true + exclude: + - strict: "fs.type-val" + gce.pd.name: + enabled: true + exclude: + - strict: "gce.pd.name-val" + glusterfs.endpoints.name: + enabled: true + exclude: + - strict: "glusterfs.endpoints.name-val" + glusterfs.path: + enabled: true + exclude: + - strict: "glusterfs.path-val" + k8s.container.name: + enabled: true + exclude: + - strict: "k8s.container.name-val" + k8s.namespace.name: + enabled: true + exclude: + - strict: "k8s.namespace.name-val" + k8s.node.name: + enabled: true + exclude: + - strict: "k8s.node.name-val" + k8s.persistentvolumeclaim.name: + enabled: true + exclude: + - strict: "k8s.persistentvolumeclaim.name-val" + k8s.pod.name: + enabled: true + exclude: + - strict: "k8s.pod.name-val" + k8s.pod.uid: + enabled: true + exclude: + - strict: "k8s.pod.uid-val" + k8s.volume.name: + enabled: true + exclude: + - strict: "k8s.volume.name-val" + k8s.volume.type: + enabled: true + exclude: + - strict: "k8s.volume.type-val" + partition: + enabled: true + exclude: + - strict: "partition-val" diff --git a/receiver/lokireceiver/generated_component_test.go b/receiver/lokireceiver/generated_component_test.go index 6479b4b06180..443169b3949d 100644 --- a/receiver/lokireceiver/generated_component_test.go +++ b/receiver/lokireceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "loki", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/lokireceiver/go.mod b/receiver/lokireceiver/go.mod index 6b1c2bb486bc..8db00f131062 100644 --- a/receiver/lokireceiver/go.mod +++ b/receiver/lokireceiver/go.mod @@ -15,20 +15,20 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/loki v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.98.0 // indirect github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/zap v1.27.0 google.golang.org/grpc v1.63.2 ) require ( - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -65,16 +65,16 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/lokireceiver/go.sum b/receiver/lokireceiver/go.sum index 81d7439150a9..a60ec6b0a643 100644 --- a/receiver/lokireceiver/go.sum +++ b/receiver/lokireceiver/go.sum @@ -122,46 +122,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/memcachedreceiver/generated_component_test.go b/receiver/memcachedreceiver/generated_component_test.go index 88130d45a777..7eb9f8f34541 100644 --- a/receiver/memcachedreceiver/generated_component_test.go +++ b/receiver/memcachedreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "memcached", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/memcachedreceiver/go.mod b/receiver/memcachedreceiver/go.mod index 468033b6ef23..57a5bf7bdd74 100644 --- a/receiver/memcachedreceiver/go.mod +++ b/receiver/memcachedreceiver/go.mod @@ -10,12 +10,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -77,8 +77,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/memcachedreceiver/go.sum b/receiver/memcachedreceiver/go.sum index 279056266f0b..7155b2292d29 100644 --- a/receiver/memcachedreceiver/go.sum +++ b/receiver/memcachedreceiver/go.sum @@ -145,24 +145,24 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/memcachedreceiver/internal/metadata/generated_config.go b/receiver/memcachedreceiver/internal/metadata/generated_config.go index 871e61c35a00..77d80247008b 100644 --- a/receiver/memcachedreceiver/internal/metadata/generated_config.go +++ b/receiver/memcachedreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/memcachedreceiver/internal/metadata/generated_metrics.go b/receiver/memcachedreceiver/internal/metadata/generated_metrics.go index 19172fbceaa1..e14588a983ab 100644 --- a/receiver/memcachedreceiver/internal/metadata/generated_metrics.go +++ b/receiver/memcachedreceiver/internal/metadata/generated_metrics.go @@ -770,6 +770,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricMemcachedOperations: newMetricMemcachedOperations(mbc.Metrics.MemcachedOperations), metricMemcachedThreads: newMetricMemcachedThreads(mbc.Metrics.MemcachedThreads), } + for _, op := range options { op(mb) } @@ -840,6 +841,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/memcachedreceiver/internal/metadata/generated_metrics_test.go b/receiver/memcachedreceiver/internal/metadata/generated_metrics_test.go index dbb7f0eebc67..8642a274cfe7 100644 --- a/receiver/memcachedreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/memcachedreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -102,7 +106,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -112,10 +116,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/mongodbatlasreceiver/generated_component_test.go b/receiver/mongodbatlasreceiver/generated_component_test.go index d50d36c9b4a0..9607bf965fd8 100644 --- a/receiver/mongodbatlasreceiver/generated_component_test.go +++ b/receiver/mongodbatlasreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "mongodbatlas", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/mongodbatlasreceiver/go.mod b/receiver/mongodbatlasreceiver/go.mod index 2acd08ed1455..77fc6478b1b3 100644 --- a/receiver/mongodbatlasreceiver/go.mod +++ b/receiver/mongodbatlasreceiver/go.mod @@ -12,15 +12,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 go.mongodb.org/atlas v0.36.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -60,9 +61,9 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/mongodbatlasreceiver/go.sum b/receiver/mongodbatlasreceiver/go.sum index 74beabcf174b..ebb6f982164d 100644 --- a/receiver/mongodbatlasreceiver/go.sum +++ b/receiver/mongodbatlasreceiver/go.sum @@ -88,32 +88,34 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.mongodb.org/atlas v0.36.0 h1:m05S3AO7zkl+bcG1qaNsEKBnAqnKx2FDwLooHpIG3j4= go.mongodb.org/atlas v0.36.0/go.mod h1:nfPldE9dSama6G2IbIzmEza02Ly7yFZjMMVscaM0uEc= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/mongodbatlasreceiver/internal/metadata/generated_config.go b/receiver/mongodbatlasreceiver/internal/metadata/generated_config.go index f4ed6081feca..7f3dadd30086 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/generated_config.go +++ b/receiver/mongodbatlasreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -282,7 +285,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go index 98a8508d14e5..99857e95b3ed 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go +++ b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -3888,6 +3889,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricMongodbatlasDbCounts metricMongodbatlasDbCounts metricMongodbatlasDbSize metricMongodbatlasDbSize metricMongodbatlasDiskPartitionIopsAverage metricMongodbatlasDiskPartitionIopsAverage @@ -4030,7 +4033,88 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricMongodbatlasSystemPagingIoMax: newMetricMongodbatlasSystemPagingIoMax(mbc.Metrics.MongodbatlasSystemPagingIoMax), metricMongodbatlasSystemPagingUsageAverage: newMetricMongodbatlasSystemPagingUsageAverage(mbc.Metrics.MongodbatlasSystemPagingUsageAverage), metricMongodbatlasSystemPagingUsageMax: newMetricMongodbatlasSystemPagingUsageMax(mbc.Metrics.MongodbatlasSystemPagingUsageMax), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.MongodbAtlasClusterName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasClusterName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasClusterName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasClusterName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasDbName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.db.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasDbName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasDbName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.db.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasDbName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasDiskPartition.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.disk.partition"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasDiskPartition.Include) + } + if mbc.ResourceAttributes.MongodbAtlasDiskPartition.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.disk.partition"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasDiskPartition.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasHostName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.host.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasHostName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasHostName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.host.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasHostName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasOrgName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.org_name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasOrgName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasOrgName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.org_name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasOrgName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProcessID.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.process.id"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessID.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProcessID.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.process.id"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessID.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProcessPort.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.process.port"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessPort.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProcessPort.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.process.port"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessPort.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProcessTypeName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.process.type_name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessTypeName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProcessTypeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.process.type_name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProcessTypeName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProjectID.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.project.id"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProjectID.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProjectID.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.project.id"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProjectID.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProjectName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.project.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProjectName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProjectName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.project.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProjectName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasProviderName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.provider.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProviderName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasProviderName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.provider.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasProviderName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasRegionName.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.region.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasRegionName.Include) + } + if mbc.ResourceAttributes.MongodbAtlasRegionName.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.region.name"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasRegionName.Exclude) + } + if mbc.ResourceAttributes.MongodbAtlasUserAlias.Include != nil { + mb.resourceAttributeIncludeFilter["mongodb_atlas.user.alias"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasUserAlias.Include) + } + if mbc.ResourceAttributes.MongodbAtlasUserAlias.Exclude != nil { + mb.resourceAttributeExcludeFilter["mongodb_atlas.user.alias"] = filter.CreateFilter(mbc.ResourceAttributes.MongodbAtlasUserAlias.Exclude) + } + for _, op := range options { op(mb) } @@ -4157,6 +4241,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics_test.go b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics_test.go index 6554b33fade1..37ef31777239 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -320,7 +333,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -330,10 +343,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/mongodbatlasreceiver/internal/metadata/testdata/config.yaml b/receiver/mongodbatlasreceiver/internal/metadata/testdata/config.yaml index 97fb52af00ad..aba41774abfc 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/mongodbatlasreceiver/internal/metadata/testdata/config.yaml @@ -305,3 +305,111 @@ none_set: enabled: false mongodb_atlas.user.alias: enabled: false +filter_set_include: + resource_attributes: + mongodb_atlas.cluster.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.db.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.disk.partition: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.host.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.org_name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.process.id: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.process.port: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.process.type_name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.project.id: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.project.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.provider.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.region.name: + enabled: true + include: + - regexp: ".*" + mongodb_atlas.user.alias: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + mongodb_atlas.cluster.name: + enabled: true + exclude: + - strict: "mongodb_atlas.cluster.name-val" + mongodb_atlas.db.name: + enabled: true + exclude: + - strict: "mongodb_atlas.db.name-val" + mongodb_atlas.disk.partition: + enabled: true + exclude: + - strict: "mongodb_atlas.disk.partition-val" + mongodb_atlas.host.name: + enabled: true + exclude: + - strict: "mongodb_atlas.host.name-val" + mongodb_atlas.org_name: + enabled: true + exclude: + - strict: "mongodb_atlas.org_name-val" + mongodb_atlas.process.id: + enabled: true + exclude: + - strict: "mongodb_atlas.process.id-val" + mongodb_atlas.process.port: + enabled: true + exclude: + - strict: "mongodb_atlas.process.port-val" + mongodb_atlas.process.type_name: + enabled: true + exclude: + - strict: "mongodb_atlas.process.type_name-val" + mongodb_atlas.project.id: + enabled: true + exclude: + - strict: "mongodb_atlas.project.id-val" + mongodb_atlas.project.name: + enabled: true + exclude: + - strict: "mongodb_atlas.project.name-val" + mongodb_atlas.provider.name: + enabled: true + exclude: + - strict: "mongodb_atlas.provider.name-val" + mongodb_atlas.region.name: + enabled: true + exclude: + - strict: "mongodb_atlas.region.name-val" + mongodb_atlas.user.alias: + enabled: true + exclude: + - strict: "mongodb_atlas.user.alias-val" diff --git a/receiver/mongodbreceiver/generated_component_test.go b/receiver/mongodbreceiver/generated_component_test.go index c1c01c227dfd..aa49dda15e9c 100644 --- a/receiver/mongodbreceiver/generated_component_test.go +++ b/receiver/mongodbreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "mongodb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/mongodbreceiver/go.mod b/receiver/mongodbreceiver/go.mod index 4e008f24e03d..60518c86101e 100644 --- a/receiver/mongodbreceiver/go.mod +++ b/receiver/mongodbreceiver/go.mod @@ -11,15 +11,16 @@ require ( github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 go.mongodb.org/mongo-driver v1.15.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -90,8 +91,8 @@ require ( github.com/xdg-go/stringprep v1.0.4 // indirect github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/mongodbreceiver/go.sum b/receiver/mongodbreceiver/go.sum index f0c6e66e0374..25cbaa9cf1a4 100644 --- a/receiver/mongodbreceiver/go.sum +++ b/receiver/mongodbreceiver/go.sum @@ -163,30 +163,32 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.mongodb.org/mongo-driver v1.15.0 h1:rJCKC8eEliewXjZGf0ddURtl7tTVy1TK3bfl0gkUSLc= go.mongodb.org/mongo-driver v1.15.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/mongodbreceiver/internal/metadata/generated_config.go b/receiver/mongodbreceiver/internal/metadata/generated_config.go index 53969c7dee19..bc071033ae1b 100644 --- a/receiver/mongodbreceiver/internal/metadata/generated_config.go +++ b/receiver/mongodbreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -154,7 +157,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/mongodbreceiver/internal/metadata/generated_metrics.go b/receiver/mongodbreceiver/internal/metadata/generated_metrics.go index 9e9bb67ec6ca..1a9b164721bf 100644 --- a/receiver/mongodbreceiver/internal/metadata/generated_metrics.go +++ b/receiver/mongodbreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1813,6 +1814,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricMongodbCacheOperations metricMongodbCacheOperations metricMongodbCollectionCount metricMongodbCollectionCount metricMongodbConnectionCount metricMongodbConnectionCount @@ -1891,7 +1894,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricMongodbSessionCount: newMetricMongodbSessionCount(mbc.Metrics.MongodbSessionCount), metricMongodbStorageSize: newMetricMongodbStorageSize(mbc.Metrics.MongodbStorageSize), metricMongodbUptime: newMetricMongodbUptime(mbc.Metrics.MongodbUptime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.Database.Include != nil { + mb.resourceAttributeIncludeFilter["database"] = filter.CreateFilter(mbc.ResourceAttributes.Database.Include) + } + if mbc.ResourceAttributes.Database.Exclude != nil { + mb.resourceAttributeExcludeFilter["database"] = filter.CreateFilter(mbc.ResourceAttributes.Database.Exclude) + } + for _, op := range options { op(mb) } @@ -1986,6 +1998,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/mongodbreceiver/internal/metadata/generated_metrics_test.go b/receiver/mongodbreceiver/internal/metadata/generated_metrics_test.go index 29632f4b83df..ba7ee6db1d22 100644 --- a/receiver/mongodbreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/mongodbreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -172,7 +185,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -182,10 +195,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/mongodbreceiver/internal/metadata/testdata/config.yaml b/receiver/mongodbreceiver/internal/metadata/testdata/config.yaml index 41abdfb07ca2..94213d1d0983 100644 --- a/receiver/mongodbreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/mongodbreceiver/internal/metadata/testdata/config.yaml @@ -129,3 +129,15 @@ none_set: resource_attributes: database: enabled: false +filter_set_include: + resource_attributes: + database: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + database: + enabled: true + exclude: + - strict: "database-val" diff --git a/receiver/mysqlreceiver/generated_component_test.go b/receiver/mysqlreceiver/generated_component_test.go index b257f39c8402..a73c5ade475d 100644 --- a/receiver/mysqlreceiver/generated_component_test.go +++ b/receiver/mysqlreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "mysql", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/mysqlreceiver/go.mod b/receiver/mysqlreceiver/go.mod index 3eced6c88955..a44ff0a79e83 100644 --- a/receiver/mysqlreceiver/go.mod +++ b/receiver/mysqlreceiver/go.mod @@ -10,14 +10,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,8 +82,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/mysqlreceiver/go.sum b/receiver/mysqlreceiver/go.sum index 20800a808111..bc26450a5217 100644 --- a/receiver/mysqlreceiver/go.sum +++ b/receiver/mysqlreceiver/go.sum @@ -149,28 +149,30 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/mysqlreceiver/internal/metadata/generated_config.go b/receiver/mysqlreceiver/internal/metadata/generated_config.go index ac6212410e78..395d5cdd24f2 100644 --- a/receiver/mysqlreceiver/internal/metadata/generated_config.go +++ b/receiver/mysqlreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -206,7 +209,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/mysqlreceiver/internal/metadata/generated_metrics.go b/receiver/mysqlreceiver/internal/metadata/generated_metrics.go index 553bcd1b912e..75b9c1be4558 100644 --- a/receiver/mysqlreceiver/internal/metadata/generated_metrics.go +++ b/receiver/mysqlreceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -3275,6 +3276,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricMysqlBufferPoolDataPages metricMysqlBufferPoolDataPages metricMysqlBufferPoolLimit metricMysqlBufferPoolLimit metricMysqlBufferPoolOperations metricMysqlBufferPoolOperations @@ -3379,7 +3382,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricMysqlThreads: newMetricMysqlThreads(mbc.Metrics.MysqlThreads), metricMysqlTmpResources: newMetricMysqlTmpResources(mbc.Metrics.MysqlTmpResources), metricMysqlUptime: newMetricMysqlUptime(mbc.Metrics.MysqlUptime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.MysqlInstanceEndpoint.Include != nil { + mb.resourceAttributeIncludeFilter["mysql.instance.endpoint"] = filter.CreateFilter(mbc.ResourceAttributes.MysqlInstanceEndpoint.Include) + } + if mbc.ResourceAttributes.MysqlInstanceEndpoint.Exclude != nil { + mb.resourceAttributeExcludeFilter["mysql.instance.endpoint"] = filter.CreateFilter(mbc.ResourceAttributes.MysqlInstanceEndpoint.Exclude) + } + for _, op := range options { op(mb) } @@ -3487,6 +3499,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/mysqlreceiver/internal/metadata/generated_metrics_test.go b/receiver/mysqlreceiver/internal/metadata/generated_metrics_test.go index 416e596664d0..64317c8ce2d3 100644 --- a/receiver/mysqlreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/mysqlreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -214,7 +227,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -224,10 +237,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/mysqlreceiver/internal/metadata/testdata/config.yaml b/receiver/mysqlreceiver/internal/metadata/testdata/config.yaml index 23683772027c..b90fcf504616 100644 --- a/receiver/mysqlreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/mysqlreceiver/internal/metadata/testdata/config.yaml @@ -181,3 +181,15 @@ none_set: resource_attributes: mysql.instance.endpoint: enabled: false +filter_set_include: + resource_attributes: + mysql.instance.endpoint: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + mysql.instance.endpoint: + enabled: true + exclude: + - strict: "mysql.instance.endpoint-val" diff --git a/receiver/namedpipereceiver/generated_component_test.go b/receiver/namedpipereceiver/generated_component_test.go index 15b61aa479e2..17fdba4ebd3a 100644 --- a/receiver/namedpipereceiver/generated_component_test.go +++ b/receiver/namedpipereceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "namedpipe", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/namedpipereceiver/go.mod b/receiver/namedpipereceiver/go.mod index c627b8888bf8..0885abea90f5 100644 --- a/receiver/namedpipereceiver/go.mod +++ b/receiver/namedpipereceiver/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -45,11 +45,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/namedpipereceiver/go.sum b/receiver/namedpipereceiver/go.sum index d52300cf800d..f52f9e9f2cf5 100644 --- a/receiver/namedpipereceiver/go.sum +++ b/receiver/namedpipereceiver/go.sum @@ -79,26 +79,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/nginxreceiver/generated_component_test.go b/receiver/nginxreceiver/generated_component_test.go index b26ff510de4e..33b64e22d1eb 100644 --- a/receiver/nginxreceiver/generated_component_test.go +++ b/receiver/nginxreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "nginx", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/nginxreceiver/go.mod b/receiver/nginxreceiver/go.mod index 11706a35eeeb..2f193c8cffca 100644 --- a/receiver/nginxreceiver/go.mod +++ b/receiver/nginxreceiver/go.mod @@ -10,13 +10,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -82,15 +82,15 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/nginxreceiver/go.sum b/receiver/nginxreceiver/go.sum index 6f083f3bc495..f381e12534f8 100644 --- a/receiver/nginxreceiver/go.sum +++ b/receiver/nginxreceiver/go.sum @@ -153,40 +153,40 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/nginxreceiver/internal/metadata/generated_config.go b/receiver/nginxreceiver/internal/metadata/generated_config.go index 57bf3a9913a9..e7a5fdfedeb2 100644 --- a/receiver/nginxreceiver/internal/metadata/generated_config.go +++ b/receiver/nginxreceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/nginxreceiver/internal/metadata/generated_metrics.go b/receiver/nginxreceiver/internal/metadata/generated_metrics.go index 874747263aec..e48307a1c8b4 100644 --- a/receiver/nginxreceiver/internal/metadata/generated_metrics.go +++ b/receiver/nginxreceiver/internal/metadata/generated_metrics.go @@ -286,6 +286,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricNginxConnectionsHandled: newMetricNginxConnectionsHandled(mbc.Metrics.NginxConnectionsHandled), metricNginxRequests: newMetricNginxRequests(mbc.Metrics.NginxRequests), } + for _, op := range options { op(mb) } @@ -349,6 +350,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/nginxreceiver/internal/metadata/generated_metrics_test.go b/receiver/nginxreceiver/internal/metadata/generated_metrics_test.go index 5a8f90a84fcd..ccda03cc83f1 100644 --- a/receiver/nginxreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/nginxreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -74,7 +78,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -84,10 +88,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/nsxtreceiver/generated_component_test.go b/receiver/nsxtreceiver/generated_component_test.go index 1feff04ed41c..a101c53a9abe 100644 --- a/receiver/nsxtreceiver/generated_component_test.go +++ b/receiver/nsxtreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "nsxt", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/nsxtreceiver/go.mod b/receiver/nsxtreceiver/go.mod index 7bbed771c46e..ebc190196a73 100644 --- a/receiver/nsxtreceiver/go.mod +++ b/receiver/nsxtreceiver/go.mod @@ -8,13 +8,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/vmware/go-vmware-nsxt v0.0.0-20230223012718-d31b8a1ca05e - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,15 +53,15 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/nsxtreceiver/go.sum b/receiver/nsxtreceiver/go.sum index 8fbf4a94d4e0..f4a743f1f3fc 100644 --- a/receiver/nsxtreceiver/go.sum +++ b/receiver/nsxtreceiver/go.sum @@ -80,40 +80,42 @@ github.com/vmware/go-vmware-nsxt v0.0.0-20230223012718-d31b8a1ca05e/go.mod h1:aR 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/nsxtreceiver/internal/metadata/generated_config.go b/receiver/nsxtreceiver/internal/metadata/generated_config.go index ea5c30821d54..a6f386820a66 100644 --- a/receiver/nsxtreceiver/internal/metadata/generated_config.go +++ b/receiver/nsxtreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -62,7 +65,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/nsxtreceiver/internal/metadata/generated_metrics.go b/receiver/nsxtreceiver/internal/metadata/generated_metrics.go index b10121090fc1..587449d45c21 100644 --- a/receiver/nsxtreceiver/internal/metadata/generated_metrics.go +++ b/receiver/nsxtreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -489,6 +490,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricNsxtNodeCPUUtilization metricNsxtNodeCPUUtilization metricNsxtNodeFilesystemUsage metricNsxtNodeFilesystemUsage metricNsxtNodeFilesystemUtilization metricNsxtNodeFilesystemUtilization @@ -521,7 +524,34 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricNsxtNodeMemoryUsage: newMetricNsxtNodeMemoryUsage(mbc.Metrics.NsxtNodeMemoryUsage), metricNsxtNodeNetworkIo: newMetricNsxtNodeNetworkIo(mbc.Metrics.NsxtNodeNetworkIo), metricNsxtNodeNetworkPacketCount: newMetricNsxtNodeNetworkPacketCount(mbc.Metrics.NsxtNodeNetworkPacketCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.DeviceID.Include != nil { + mb.resourceAttributeIncludeFilter["device.id"] = filter.CreateFilter(mbc.ResourceAttributes.DeviceID.Include) + } + if mbc.ResourceAttributes.DeviceID.Exclude != nil { + mb.resourceAttributeExcludeFilter["device.id"] = filter.CreateFilter(mbc.ResourceAttributes.DeviceID.Exclude) + } + if mbc.ResourceAttributes.NsxtNodeID.Include != nil { + mb.resourceAttributeIncludeFilter["nsxt.node.id"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeID.Include) + } + if mbc.ResourceAttributes.NsxtNodeID.Exclude != nil { + mb.resourceAttributeExcludeFilter["nsxt.node.id"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeID.Exclude) + } + if mbc.ResourceAttributes.NsxtNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["nsxt.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeName.Include) + } + if mbc.ResourceAttributes.NsxtNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["nsxt.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeName.Exclude) + } + if mbc.ResourceAttributes.NsxtNodeType.Include != nil { + mb.resourceAttributeIncludeFilter["nsxt.node.type"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeType.Include) + } + if mbc.ResourceAttributes.NsxtNodeType.Exclude != nil { + mb.resourceAttributeExcludeFilter["nsxt.node.type"] = filter.CreateFilter(mbc.ResourceAttributes.NsxtNodeType.Exclude) + } + for _, op := range options { op(mb) } @@ -593,6 +623,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/nsxtreceiver/internal/metadata/generated_metrics_test.go b/receiver/nsxtreceiver/internal/metadata/generated_metrics_test.go index bfda0ca65df9..b2d530c5c4c4 100644 --- a/receiver/nsxtreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/nsxtreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -91,7 +104,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -101,10 +114,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/nsxtreceiver/internal/metadata/testdata/config.yaml b/receiver/nsxtreceiver/internal/metadata/testdata/config.yaml index 5df91af68eb9..407525fc359e 100644 --- a/receiver/nsxtreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/nsxtreceiver/internal/metadata/testdata/config.yaml @@ -49,3 +49,39 @@ none_set: enabled: false nsxt.node.type: enabled: false +filter_set_include: + resource_attributes: + device.id: + enabled: true + include: + - regexp: ".*" + nsxt.node.id: + enabled: true + include: + - regexp: ".*" + nsxt.node.name: + enabled: true + include: + - regexp: ".*" + nsxt.node.type: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + device.id: + enabled: true + exclude: + - strict: "device.id-val" + nsxt.node.id: + enabled: true + exclude: + - strict: "nsxt.node.id-val" + nsxt.node.name: + enabled: true + exclude: + - strict: "nsxt.node.name-val" + nsxt.node.type: + enabled: true + exclude: + - strict: "nsxt.node.type-val" diff --git a/receiver/opencensusreceiver/generated_component_test.go b/receiver/opencensusreceiver/generated_component_test.go index 5d848da2b2d4..00d72eea7754 100644 --- a/receiver/opencensusreceiver/generated_component_test.go +++ b/receiver/opencensusreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "opencensus", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/opencensusreceiver/go.mod b/receiver/opencensusreceiver/go.mod index 1278404006a9..86c637fe6743 100644 --- a/receiver/opencensusreceiver/go.mod +++ b/receiver/opencensusreceiver/go.mod @@ -11,15 +11,15 @@ require ( github.com/rs/cors v1.10.1 github.com/soheilhy/cmux v0.1.5 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 @@ -61,16 +61,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect go.uber.org/multierr v1.11.0 // indirect diff --git a/receiver/opencensusreceiver/go.sum b/receiver/opencensusreceiver/go.sum index a3ce6dc47768..6edc662f3476 100644 --- a/receiver/opencensusreceiver/go.sum +++ b/receiver/opencensusreceiver/go.sum @@ -118,44 +118,44 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/oracledbreceiver/generated_component_test.go b/receiver/oracledbreceiver/generated_component_test.go index 065e362f78b6..a639915e936c 100644 --- a/receiver/oracledbreceiver/generated_component_test.go +++ b/receiver/oracledbreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "oracledb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/oracledbreceiver/go.mod b/receiver/oracledbreceiver/go.mod index c75459242c3a..6a4b47db7e4d 100644 --- a/receiver/oracledbreceiver/go.mod +++ b/receiver/oracledbreceiver/go.mod @@ -6,11 +6,12 @@ require ( github.com/google/go-cmp v0.6.0 github.com/sijms/go-ora/v2 v2.8.11 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -40,8 +41,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/oracledbreceiver/go.sum b/receiver/oracledbreceiver/go.sum index e6aa2fcc68df..595cedb56564 100644 --- a/receiver/oracledbreceiver/go.sum +++ b/receiver/oracledbreceiver/go.sum @@ -62,22 +62,24 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/oracledbreceiver/internal/metadata/generated_config.go b/receiver/oracledbreceiver/internal/metadata/generated_config.go index 45bd36647063..2f31f2f8cd14 100644 --- a/receiver/oracledbreceiver/internal/metadata/generated_config.go +++ b/receiver/oracledbreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -142,7 +145,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/oracledbreceiver/internal/metadata/generated_metrics.go b/receiver/oracledbreceiver/internal/metadata/generated_metrics.go index 2cd119b5f9b9..e526b4c7bc7a 100644 --- a/receiver/oracledbreceiver/internal/metadata/generated_metrics.go +++ b/receiver/oracledbreceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1377,6 +1378,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricOracledbConsistentGets metricOracledbConsistentGets metricOracledbCPUTime metricOracledbCPUTime metricOracledbDbBlockGets metricOracledbDbBlockGets @@ -1449,7 +1452,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricOracledbTransactionsUsage: newMetricOracledbTransactionsUsage(mbc.Metrics.OracledbTransactionsUsage), metricOracledbUserCommits: newMetricOracledbUserCommits(mbc.Metrics.OracledbUserCommits), metricOracledbUserRollbacks: newMetricOracledbUserRollbacks(mbc.Metrics.OracledbUserRollbacks), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.OracledbInstanceName.Include != nil { + mb.resourceAttributeIncludeFilter["oracledb.instance.name"] = filter.CreateFilter(mbc.ResourceAttributes.OracledbInstanceName.Include) + } + if mbc.ResourceAttributes.OracledbInstanceName.Exclude != nil { + mb.resourceAttributeExcludeFilter["oracledb.instance.name"] = filter.CreateFilter(mbc.ResourceAttributes.OracledbInstanceName.Exclude) + } + for _, op := range options { op(mb) } @@ -1541,6 +1553,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/oracledbreceiver/internal/metadata/generated_metrics_test.go b/receiver/oracledbreceiver/internal/metadata/generated_metrics_test.go index 2827dd3ab22c..0e305e841aa0 100644 --- a/receiver/oracledbreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/oracledbreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -166,7 +179,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -176,10 +189,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/oracledbreceiver/internal/metadata/testdata/config.yaml b/receiver/oracledbreceiver/internal/metadata/testdata/config.yaml index 364600cb9d74..64a3189e38af 100644 --- a/receiver/oracledbreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/oracledbreceiver/internal/metadata/testdata/config.yaml @@ -117,3 +117,15 @@ none_set: resource_attributes: oracledb.instance.name: enabled: false +filter_set_include: + resource_attributes: + oracledb.instance.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + oracledb.instance.name: + enabled: true + exclude: + - strict: "oracledb.instance.name-val" diff --git a/receiver/osqueryreceiver/go.mod b/receiver/osqueryreceiver/go.mod index da7cca45d62b..34ebe0a062c0 100644 --- a/receiver/osqueryreceiver/go.mod +++ b/receiver/osqueryreceiver/go.mod @@ -4,8 +4,8 @@ go 1.21 require ( github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -32,11 +32,11 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/osqueryreceiver/go.sum b/receiver/osqueryreceiver/go.sum index f24ebaa67e9d..526f0a741427 100644 --- a/receiver/osqueryreceiver/go.sum +++ b/receiver/osqueryreceiver/go.sum @@ -60,20 +60,20 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/otelarrowreceiver/generated_component_test.go b/receiver/otelarrowreceiver/generated_component_test.go index d1b9a1f016a3..37ca2b015ff3 100644 --- a/receiver/otelarrowreceiver/generated_component_test.go +++ b/receiver/otelarrowreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "otelarrow", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/otelarrowreceiver/go.mod b/receiver/otelarrowreceiver/go.mod index 1834bc991596..eafe5ba52806 100644 --- a/receiver/otelarrowreceiver/go.mod +++ b/receiver/otelarrowreceiver/go.mod @@ -7,15 +7,15 @@ require ( github.com/open-telemetry/otel-arrow v0.18.0 github.com/open-telemetry/otel-arrow/collector v0.20.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -60,15 +60,15 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/x448/float16 v0.8.4 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/otelarrowreceiver/go.sum b/receiver/otelarrowreceiver/go.sum index f5c24390c706..a2dba1ddbd39 100644 --- a/receiver/otelarrowreceiver/go.sum +++ b/receiver/otelarrowreceiver/go.sum @@ -113,44 +113,44 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/otlpjsonfilereceiver/generated_component_test.go b/receiver/otlpjsonfilereceiver/generated_component_test.go index 92eed6ad71ad..cb7687037604 100644 --- a/receiver/otlpjsonfilereceiver/generated_component_test.go +++ b/receiver/otlpjsonfilereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "otlpjsonfile", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/otlpjsonfilereceiver/go.mod b/receiver/otlpjsonfilereceiver/go.mod index e067c6d49aa5..d58104749aa1 100644 --- a/receiver/otlpjsonfilereceiver/go.mod +++ b/receiver/otlpjsonfilereceiver/go.mod @@ -5,12 +5,12 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -46,10 +46,10 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/otlpjsonfilereceiver/go.sum b/receiver/otlpjsonfilereceiver/go.sum index 4bd1791f5529..5e6f6bfac9cf 100644 --- a/receiver/otlpjsonfilereceiver/go.sum +++ b/receiver/otlpjsonfilereceiver/go.sum @@ -79,26 +79,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/podmanreceiver/generated_component_test.go b/receiver/podmanreceiver/generated_component_test.go index ccaca5212782..08be66226541 100644 --- a/receiver/podmanreceiver/generated_component_test.go +++ b/receiver/podmanreceiver/generated_component_test.go @@ -9,12 +9,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "podman_stats", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/podmanreceiver/go.mod b/receiver/podmanreceiver/go.mod index c8d658a79266..9e128d747944 100644 --- a/receiver/podmanreceiver/go.mod +++ b/receiver/podmanreceiver/go.mod @@ -5,12 +5,13 @@ go 1.21 require ( github.com/google/go-cmp v0.6.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -41,8 +42,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/podmanreceiver/go.sum b/receiver/podmanreceiver/go.sum index 83ceddaadd32..b6bd81505d6b 100644 --- a/receiver/podmanreceiver/go.sum +++ b/receiver/podmanreceiver/go.sum @@ -60,24 +60,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/podmanreceiver/internal/metadata/generated_config.go b/receiver/podmanreceiver/internal/metadata/generated_config.go index 7edc12b42acf..54628e5a4e53 100644 --- a/receiver/podmanreceiver/internal/metadata/generated_config.go +++ b/receiver/podmanreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -78,7 +81,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/podmanreceiver/internal/metadata/generated_metrics.go b/receiver/podmanreceiver/internal/metadata/generated_metrics.go index b2a628971b8b..40d2162b32c8 100644 --- a/receiver/podmanreceiver/internal/metadata/generated_metrics.go +++ b/receiver/podmanreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -578,6 +579,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricContainerBlockioIoServiceBytesRecursiveRead metricContainerBlockioIoServiceBytesRecursiveRead metricContainerBlockioIoServiceBytesRecursiveWrite metricContainerBlockioIoServiceBytesRecursiveWrite metricContainerCPUPercent metricContainerCPUPercent @@ -618,7 +621,34 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricContainerMemoryUsageTotal: newMetricContainerMemoryUsageTotal(mbc.Metrics.ContainerMemoryUsageTotal), metricContainerNetworkIoUsageRxBytes: newMetricContainerNetworkIoUsageRxBytes(mbc.Metrics.ContainerNetworkIoUsageRxBytes), metricContainerNetworkIoUsageTxBytes: newMetricContainerNetworkIoUsageTxBytes(mbc.Metrics.ContainerNetworkIoUsageTxBytes), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ContainerID.Include != nil { + mb.resourceAttributeIncludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Include) + } + if mbc.ResourceAttributes.ContainerID.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.id"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerID.Exclude) + } + if mbc.ResourceAttributes.ContainerImageName.Include != nil { + mb.resourceAttributeIncludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Include) + } + if mbc.ResourceAttributes.ContainerImageName.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.image.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerImageName.Exclude) + } + if mbc.ResourceAttributes.ContainerName.Include != nil { + mb.resourceAttributeIncludeFilter["container.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerName.Include) + } + if mbc.ResourceAttributes.ContainerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.name"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerName.Exclude) + } + if mbc.ResourceAttributes.ContainerRuntime.Include != nil { + mb.resourceAttributeIncludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Include) + } + if mbc.ResourceAttributes.ContainerRuntime.Exclude != nil { + mb.resourceAttributeExcludeFilter["container.runtime"] = filter.CreateFilter(mbc.ResourceAttributes.ContainerRuntime.Exclude) + } + for _, op := range options { op(mb) } @@ -694,6 +724,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/podmanreceiver/internal/metadata/generated_metrics_test.go b/receiver/podmanreceiver/internal/metadata/generated_metrics_test.go index 0b9a0868d03a..05f300022e21 100644 --- a/receiver/podmanreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/podmanreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -107,7 +120,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -117,10 +130,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/podmanreceiver/internal/metadata/testdata/config.yaml b/receiver/podmanreceiver/internal/metadata/testdata/config.yaml index 9fafe024c230..642d7e422a56 100644 --- a/receiver/podmanreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/podmanreceiver/internal/metadata/testdata/config.yaml @@ -65,3 +65,39 @@ none_set: enabled: false container.runtime: enabled: false +filter_set_include: + resource_attributes: + container.id: + enabled: true + include: + - regexp: ".*" + container.image.name: + enabled: true + include: + - regexp: ".*" + container.name: + enabled: true + include: + - regexp: ".*" + container.runtime: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + container.id: + enabled: true + exclude: + - strict: "container.id-val" + container.image.name: + enabled: true + exclude: + - strict: "container.image.name-val" + container.name: + enabled: true + exclude: + - strict: "container.name-val" + container.runtime: + enabled: true + exclude: + - strict: "container.runtime-val" diff --git a/receiver/postgresqlreceiver/generated_component_test.go b/receiver/postgresqlreceiver/generated_component_test.go index 4e02cbca32a9..317763752194 100644 --- a/receiver/postgresqlreceiver/generated_component_test.go +++ b/receiver/postgresqlreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "postgresql", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/postgresqlreceiver/go.mod b/receiver/postgresqlreceiver/go.mod index 5f6814889ca9..509a1287e6d4 100644 --- a/receiver/postgresqlreceiver/go.mod +++ b/receiver/postgresqlreceiver/go.mod @@ -11,15 +11,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -85,8 +86,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/postgresqlreceiver/go.sum b/receiver/postgresqlreceiver/go.sum index 2750f6bb4c83..b7adb570ea54 100644 --- a/receiver/postgresqlreceiver/go.sum +++ b/receiver/postgresqlreceiver/go.sum @@ -150,30 +150,32 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_config.go b/receiver/postgresqlreceiver/internal/metadata/generated_config.go index 998be7c208c0..72277bf6da7b 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_config.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -142,7 +145,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go index 8ac280a050c0..ac4152310d2f 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1632,6 +1633,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricPostgresqlBackends metricPostgresqlBackends metricPostgresqlBgwriterBuffersAllocated metricPostgresqlBgwriterBuffersAllocated metricPostgresqlBgwriterBuffersWrites metricPostgresqlBgwriterBuffersWrites @@ -1704,7 +1707,34 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricPostgresqlWalAge: newMetricPostgresqlWalAge(mbc.Metrics.PostgresqlWalAge), metricPostgresqlWalDelay: newMetricPostgresqlWalDelay(mbc.Metrics.PostgresqlWalDelay), metricPostgresqlWalLag: newMetricPostgresqlWalLag(mbc.Metrics.PostgresqlWalLag), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.PostgresqlDatabaseName.Include != nil { + mb.resourceAttributeIncludeFilter["postgresql.database.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlDatabaseName.Include) + } + if mbc.ResourceAttributes.PostgresqlDatabaseName.Exclude != nil { + mb.resourceAttributeExcludeFilter["postgresql.database.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlDatabaseName.Exclude) + } + if mbc.ResourceAttributes.PostgresqlIndexName.Include != nil { + mb.resourceAttributeIncludeFilter["postgresql.index.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlIndexName.Include) + } + if mbc.ResourceAttributes.PostgresqlIndexName.Exclude != nil { + mb.resourceAttributeExcludeFilter["postgresql.index.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlIndexName.Exclude) + } + if mbc.ResourceAttributes.PostgresqlSchemaName.Include != nil { + mb.resourceAttributeIncludeFilter["postgresql.schema.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlSchemaName.Include) + } + if mbc.ResourceAttributes.PostgresqlSchemaName.Exclude != nil { + mb.resourceAttributeExcludeFilter["postgresql.schema.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlSchemaName.Exclude) + } + if mbc.ResourceAttributes.PostgresqlTableName.Include != nil { + mb.resourceAttributeIncludeFilter["postgresql.table.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlTableName.Include) + } + if mbc.ResourceAttributes.PostgresqlTableName.Exclude != nil { + mb.resourceAttributeExcludeFilter["postgresql.table.name"] = filter.CreateFilter(mbc.ResourceAttributes.PostgresqlTableName.Exclude) + } + for _, op := range options { op(mb) } @@ -1796,6 +1826,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go index 8b9ccff958be..55068d5636a5 100644 --- a/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/postgresqlreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -166,7 +179,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -176,10 +189,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/postgresqlreceiver/internal/metadata/testdata/config.yaml b/receiver/postgresqlreceiver/internal/metadata/testdata/config.yaml index 23222b134081..952716cb378f 100644 --- a/receiver/postgresqlreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/postgresqlreceiver/internal/metadata/testdata/config.yaml @@ -129,3 +129,39 @@ none_set: enabled: false postgresql.table.name: enabled: false +filter_set_include: + resource_attributes: + postgresql.database.name: + enabled: true + include: + - regexp: ".*" + postgresql.index.name: + enabled: true + include: + - regexp: ".*" + postgresql.schema.name: + enabled: true + include: + - regexp: ".*" + postgresql.table.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + postgresql.database.name: + enabled: true + exclude: + - strict: "postgresql.database.name-val" + postgresql.index.name: + enabled: true + exclude: + - strict: "postgresql.index.name-val" + postgresql.schema.name: + enabled: true + exclude: + - strict: "postgresql.schema.name-val" + postgresql.table.name: + enabled: true + exclude: + - strict: "postgresql.table.name-val" diff --git a/receiver/prometheusreceiver/generated_component_test.go b/receiver/prometheusreceiver/generated_component_test.go index 8cd217f54e7c..29e5b0a1bff0 100644 --- a/receiver/prometheusreceiver/generated_component_test.go +++ b/receiver/prometheusreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "prometheus", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/prometheusreceiver/go.mod b/receiver/prometheusreceiver/go.mod index 7989dde34431..b2899ae58aa3 100644 --- a/receiver/prometheusreceiver/go.mod +++ b/receiver/prometheusreceiver/go.mod @@ -14,19 +14,19 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -161,23 +161,23 @@ require ( github.com/vultr/govultr/v2 v2.17.2 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect diff --git a/receiver/prometheusreceiver/go.sum b/receiver/prometheusreceiver/go.sum index 9410fc8109a7..1d30f43f7ac6 100644 --- a/receiver/prometheusreceiver/go.sum +++ b/receiver/prometheusreceiver/go.sum @@ -567,72 +567,72 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/pulsarreceiver/generated_component_test.go b/receiver/pulsarreceiver/generated_component_test.go index ee4d9dbb920b..a57663f1ba4b 100644 --- a/receiver/pulsarreceiver/generated_component_test.go +++ b/receiver/pulsarreceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "pulsar", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/pulsarreceiver/go.mod b/receiver/pulsarreceiver/go.mod index be924a8a013f..b20283fc0601 100644 --- a/receiver/pulsarreceiver/go.mod +++ b/receiver/pulsarreceiver/go.mod @@ -11,13 +11,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.98.0 github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -68,7 +68,7 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/pulsarreceiver/go.sum b/receiver/pulsarreceiver/go.sum index a159b6348d9d..70b57e6e9e2f 100644 --- a/receiver/pulsarreceiver/go.sum +++ b/receiver/pulsarreceiver/go.sum @@ -420,25 +420,25 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/purefareceiver/generated_component_test.go b/receiver/purefareceiver/generated_component_test.go index d27f75d7a4e2..4f9f3c1e1226 100644 --- a/receiver/purefareceiver/generated_component_test.go +++ b/receiver/purefareceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "purefa", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/purefareceiver/go.mod b/receiver/purefareceiver/go.mod index 89a956c544bf..1e6538f67ab0 100644 --- a/receiver/purefareceiver/go.mod +++ b/receiver/purefareceiver/go.mod @@ -8,13 +8,13 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -134,16 +134,16 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/vultr/govultr/v2 v2.17.2 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/purefareceiver/go.sum b/receiver/purefareceiver/go.sum index a74743f0b45b..3e887c708f54 100644 --- a/receiver/purefareceiver/go.sum +++ b/receiver/purefareceiver/go.sum @@ -563,68 +563,68 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/purefbreceiver/generated_component_test.go b/receiver/purefbreceiver/generated_component_test.go index be9c8424035b..f39e64ca2709 100644 --- a/receiver/purefbreceiver/generated_component_test.go +++ b/receiver/purefbreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "purefb", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/purefbreceiver/go.mod b/receiver/purefbreceiver/go.mod index 7063cf0169af..cc89ed5c8fbd 100644 --- a/receiver/purefbreceiver/go.mod +++ b/receiver/purefbreceiver/go.mod @@ -8,13 +8,13 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -134,16 +134,16 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/vultr/govultr/v2 v2.17.2 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/purefbreceiver/go.sum b/receiver/purefbreceiver/go.sum index a74743f0b45b..3e887c708f54 100644 --- a/receiver/purefbreceiver/go.sum +++ b/receiver/purefbreceiver/go.sum @@ -563,68 +563,68 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/rabbitmqreceiver/generated_component_test.go b/receiver/rabbitmqreceiver/generated_component_test.go index f643003fe279..123f43ab8a38 100644 --- a/receiver/rabbitmqreceiver/generated_component_test.go +++ b/receiver/rabbitmqreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "rabbitmq", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/rabbitmqreceiver/go.mod b/receiver/rabbitmqreceiver/go.mod index 43ff2e7db8cc..d844a580c5d3 100644 --- a/receiver/rabbitmqreceiver/go.mod +++ b/receiver/rabbitmqreceiver/go.mod @@ -7,14 +7,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -51,14 +52,14 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/rabbitmqreceiver/go.sum b/receiver/rabbitmqreceiver/go.sum index f8650c835bdd..82c8c7cf7e87 100644 --- a/receiver/rabbitmqreceiver/go.sum +++ b/receiver/rabbitmqreceiver/go.sum @@ -74,40 +74,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/rabbitmqreceiver/internal/metadata/generated_config.go b/receiver/rabbitmqreceiver/internal/metadata/generated_config.go index dcedc71105d3..806a1ca67405 100644 --- a/receiver/rabbitmqreceiver/internal/metadata/generated_config.go +++ b/receiver/rabbitmqreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -58,7 +61,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/rabbitmqreceiver/internal/metadata/generated_metrics.go b/receiver/rabbitmqreceiver/internal/metadata/generated_metrics.go index 9165eb098b98..e30d5fff4de9 100644 --- a/receiver/rabbitmqreceiver/internal/metadata/generated_metrics.go +++ b/receiver/rabbitmqreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -353,6 +354,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricRabbitmqConsumerCount metricRabbitmqConsumerCount metricRabbitmqMessageAcknowledged metricRabbitmqMessageAcknowledged metricRabbitmqMessageCurrent metricRabbitmqMessageCurrent @@ -383,7 +386,28 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricRabbitmqMessageDelivered: newMetricRabbitmqMessageDelivered(mbc.Metrics.RabbitmqMessageDelivered), metricRabbitmqMessageDropped: newMetricRabbitmqMessageDropped(mbc.Metrics.RabbitmqMessageDropped), metricRabbitmqMessagePublished: newMetricRabbitmqMessagePublished(mbc.Metrics.RabbitmqMessagePublished), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.RabbitmqNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["rabbitmq.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqNodeName.Include) + } + if mbc.ResourceAttributes.RabbitmqNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["rabbitmq.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqNodeName.Exclude) + } + if mbc.ResourceAttributes.RabbitmqQueueName.Include != nil { + mb.resourceAttributeIncludeFilter["rabbitmq.queue.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqQueueName.Include) + } + if mbc.ResourceAttributes.RabbitmqQueueName.Exclude != nil { + mb.resourceAttributeExcludeFilter["rabbitmq.queue.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqQueueName.Exclude) + } + if mbc.ResourceAttributes.RabbitmqVhostName.Include != nil { + mb.resourceAttributeIncludeFilter["rabbitmq.vhost.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqVhostName.Include) + } + if mbc.ResourceAttributes.RabbitmqVhostName.Exclude != nil { + mb.resourceAttributeExcludeFilter["rabbitmq.vhost.name"] = filter.CreateFilter(mbc.ResourceAttributes.RabbitmqVhostName.Exclude) + } + for _, op := range options { op(mb) } @@ -454,6 +478,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/rabbitmqreceiver/internal/metadata/generated_metrics_test.go b/receiver/rabbitmqreceiver/internal/metadata/generated_metrics_test.go index 3050b1451ac3..eaefe7c5e8fb 100644 --- a/receiver/rabbitmqreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/rabbitmqreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -86,7 +99,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -96,10 +109,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/rabbitmqreceiver/internal/metadata/testdata/config.yaml b/receiver/rabbitmqreceiver/internal/metadata/testdata/config.yaml index 4961739ac6a1..e185f9bbb9bb 100644 --- a/receiver/rabbitmqreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/rabbitmqreceiver/internal/metadata/testdata/config.yaml @@ -41,3 +41,31 @@ none_set: enabled: false rabbitmq.vhost.name: enabled: false +filter_set_include: + resource_attributes: + rabbitmq.node.name: + enabled: true + include: + - regexp: ".*" + rabbitmq.queue.name: + enabled: true + include: + - regexp: ".*" + rabbitmq.vhost.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + rabbitmq.node.name: + enabled: true + exclude: + - strict: "rabbitmq.node.name-val" + rabbitmq.queue.name: + enabled: true + exclude: + - strict: "rabbitmq.queue.name-val" + rabbitmq.vhost.name: + enabled: true + exclude: + - strict: "rabbitmq.vhost.name-val" diff --git a/receiver/receivercreator/generated_component_test.go b/receiver/receivercreator/generated_component_test.go index a6a6efa9d0eb..0de7c9e93e3b 100644 --- a/receiver/receivercreator/generated_component_test.go +++ b/receiver/receivercreator/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "receiver_creator", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/receivercreator/go.mod b/receiver/receivercreator/go.mod index 01c99d45b11c..39df565a68ae 100644 --- a/receiver/receivercreator/go.mod +++ b/receiver/receivercreator/go.mod @@ -9,14 +9,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/spf13/cast v1.6.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -63,20 +63,20 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/receivercreator/go.sum b/receiver/receivercreator/go.sum index b46f20edb0a5..f3918710d963 100644 --- a/receiver/receivercreator/go.sum +++ b/receiver/receivercreator/go.sum @@ -141,56 +141,56 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/propagators/b3 v1.25.0 h1:QU8UEKyPqgr/8vCC9LlDmkPnfFmiWAUF9GtJdcLz+BU= diff --git a/receiver/redisreceiver/generated_component_test.go b/receiver/redisreceiver/generated_component_test.go index 9933348adbab..a5727b206877 100644 --- a/receiver/redisreceiver/generated_component_test.go +++ b/receiver/redisreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "redis", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/redisreceiver/go.mod b/receiver/redisreceiver/go.mod index 0fe9cec5ff3c..92ecba7d4272 100644 --- a/receiver/redisreceiver/go.mod +++ b/receiver/redisreceiver/go.mod @@ -9,14 +9,15 @@ require ( github.com/redis/go-redis/v9 v9.5.1 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,8 +82,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/redisreceiver/go.sum b/receiver/redisreceiver/go.sum index b5b806244f23..e9be0685ee9d 100644 --- a/receiver/redisreceiver/go.sum +++ b/receiver/redisreceiver/go.sum @@ -153,28 +153,30 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/redisreceiver/internal/metadata/generated_config.go b/receiver/redisreceiver/internal/metadata/generated_config.go index 2222fff52138..397511994cef 100644 --- a/receiver/redisreceiver/internal/metadata/generated_config.go +++ b/receiver/redisreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -174,7 +177,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/redisreceiver/internal/metadata/generated_metrics.go b/receiver/redisreceiver/internal/metadata/generated_metrics.go index 5d66c452df2d..654cacc01878 100644 --- a/receiver/redisreceiver/internal/metadata/generated_metrics.go +++ b/receiver/redisreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1885,6 +1886,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricRedisClientsBlocked metricRedisClientsBlocked metricRedisClientsConnected metricRedisClientsConnected metricRedisClientsMaxInputBuffer metricRedisClientsMaxInputBuffer @@ -1973,7 +1976,28 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricRedisRole: newMetricRedisRole(mbc.Metrics.RedisRole), metricRedisSlavesConnected: newMetricRedisSlavesConnected(mbc.Metrics.RedisSlavesConnected), metricRedisUptime: newMetricRedisUptime(mbc.Metrics.RedisUptime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.RedisVersion.Include != nil { + mb.resourceAttributeIncludeFilter["redis.version"] = filter.CreateFilter(mbc.ResourceAttributes.RedisVersion.Include) + } + if mbc.ResourceAttributes.RedisVersion.Exclude != nil { + mb.resourceAttributeExcludeFilter["redis.version"] = filter.CreateFilter(mbc.ResourceAttributes.RedisVersion.Exclude) + } + if mbc.ResourceAttributes.ServerAddress.Include != nil { + mb.resourceAttributeIncludeFilter["server.address"] = filter.CreateFilter(mbc.ResourceAttributes.ServerAddress.Include) + } + if mbc.ResourceAttributes.ServerAddress.Exclude != nil { + mb.resourceAttributeExcludeFilter["server.address"] = filter.CreateFilter(mbc.ResourceAttributes.ServerAddress.Exclude) + } + if mbc.ResourceAttributes.ServerPort.Include != nil { + mb.resourceAttributeIncludeFilter["server.port"] = filter.CreateFilter(mbc.ResourceAttributes.ServerPort.Include) + } + if mbc.ResourceAttributes.ServerPort.Exclude != nil { + mb.resourceAttributeExcludeFilter["server.port"] = filter.CreateFilter(mbc.ResourceAttributes.ServerPort.Exclude) + } + for _, op := range options { op(mb) } @@ -2073,6 +2097,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/redisreceiver/internal/metadata/generated_metrics_test.go b/receiver/redisreceiver/internal/metadata/generated_metrics_test.go index ba5c9abfafc3..849c301ce460 100644 --- a/receiver/redisreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/redisreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -196,7 +209,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -206,10 +219,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/redisreceiver/internal/metadata/testdata/config.yaml b/receiver/redisreceiver/internal/metadata/testdata/config.yaml index a66045913a3b..9b02e550f19b 100644 --- a/receiver/redisreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/redisreceiver/internal/metadata/testdata/config.yaml @@ -157,3 +157,31 @@ none_set: enabled: false server.port: enabled: false +filter_set_include: + resource_attributes: + redis.version: + enabled: true + include: + - regexp: ".*" + server.address: + enabled: true + include: + - regexp: ".*" + server.port: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + redis.version: + enabled: true + exclude: + - strict: "redis.version-val" + server.address: + enabled: true + exclude: + - strict: "server.address-val" + server.port: + enabled: true + exclude: + - strict: "server.port-val" diff --git a/receiver/riakreceiver/generated_component_test.go b/receiver/riakreceiver/generated_component_test.go index a4ad88bdfe48..7788ef4789d8 100644 --- a/receiver/riakreceiver/generated_component_test.go +++ b/receiver/riakreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "riak", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/riakreceiver/go.mod b/receiver/riakreceiver/go.mod index fc00b20570c2..ab41a6d225d8 100644 --- a/receiver/riakreceiver/go.mod +++ b/receiver/riakreceiver/go.mod @@ -7,14 +7,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,14 +53,14 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/riakreceiver/go.sum b/receiver/riakreceiver/go.sum index f8650c835bdd..82c8c7cf7e87 100644 --- a/receiver/riakreceiver/go.sum +++ b/receiver/riakreceiver/go.sum @@ -74,40 +74,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/riakreceiver/internal/metadata/generated_config.go b/receiver/riakreceiver/internal/metadata/generated_config.go index d98655a39943..e1383b23b1e3 100644 --- a/receiver/riakreceiver/internal/metadata/generated_config.go +++ b/receiver/riakreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -58,7 +61,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/riakreceiver/internal/metadata/generated_metrics.go b/receiver/riakreceiver/internal/metadata/generated_metrics.go index 10187d21d26f..da1dc0e9e00c 100644 --- a/receiver/riakreceiver/internal/metadata/generated_metrics.go +++ b/receiver/riakreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -387,6 +388,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricRiakMemoryLimit metricRiakMemoryLimit metricRiakNodeOperationCount metricRiakNodeOperationCount metricRiakNodeOperationTimeMean metricRiakNodeOperationTimeMean @@ -417,7 +420,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricRiakNodeReadRepairCount: newMetricRiakNodeReadRepairCount(mbc.Metrics.RiakNodeReadRepairCount), metricRiakVnodeIndexOperationCount: newMetricRiakVnodeIndexOperationCount(mbc.Metrics.RiakVnodeIndexOperationCount), metricRiakVnodeOperationCount: newMetricRiakVnodeOperationCount(mbc.Metrics.RiakVnodeOperationCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.RiakNodeName.Include != nil { + mb.resourceAttributeIncludeFilter["riak.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.RiakNodeName.Include) + } + if mbc.ResourceAttributes.RiakNodeName.Exclude != nil { + mb.resourceAttributeExcludeFilter["riak.node.name"] = filter.CreateFilter(mbc.ResourceAttributes.RiakNodeName.Exclude) + } + for _, op := range options { op(mb) } @@ -488,6 +500,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/riakreceiver/internal/metadata/generated_metrics_test.go b/receiver/riakreceiver/internal/metadata/generated_metrics_test.go index e2d27e3accb9..0f0c96972cb9 100644 --- a/receiver/riakreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/riakreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -84,7 +97,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -94,10 +107,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/riakreceiver/internal/metadata/testdata/config.yaml b/receiver/riakreceiver/internal/metadata/testdata/config.yaml index ab0d2eeb29dc..bd67510be16a 100644 --- a/receiver/riakreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/riakreceiver/internal/metadata/testdata/config.yaml @@ -33,3 +33,15 @@ none_set: resource_attributes: riak.node.name: enabled: false +filter_set_include: + resource_attributes: + riak.node.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + riak.node.name: + enabled: true + exclude: + - strict: "riak.node.name-val" diff --git a/receiver/saphanareceiver/generated_component_test.go b/receiver/saphanareceiver/generated_component_test.go index 6b19379f6d9f..fd2d73b51e5c 100644 --- a/receiver/saphanareceiver/generated_component_test.go +++ b/receiver/saphanareceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "saphana", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/saphanareceiver/go.mod b/receiver/saphanareceiver/go.mod index 50af942d6f22..2aa102e8944f 100644 --- a/receiver/saphanareceiver/go.mod +++ b/receiver/saphanareceiver/go.mod @@ -8,14 +8,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -48,8 +49,8 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.13.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/saphanareceiver/go.sum b/receiver/saphanareceiver/go.sum index 6fc2bce62eef..c2fe821c57f2 100644 --- a/receiver/saphanareceiver/go.sum +++ b/receiver/saphanareceiver/go.sum @@ -66,28 +66,30 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/saphanareceiver/internal/metadata/generated_config.go b/receiver/saphanareceiver/internal/metadata/generated_config.go index cf71bf032e0f..40e5172a58be 100644 --- a/receiver/saphanareceiver/internal/metadata/generated_config.go +++ b/receiver/saphanareceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -214,7 +217,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/saphanareceiver/internal/metadata/generated_metrics.go b/receiver/saphanareceiver/internal/metadata/generated_metrics.go index 77140479d74e..beebc69e2946 100644 --- a/receiver/saphanareceiver/internal/metadata/generated_metrics.go +++ b/receiver/saphanareceiver/internal/metadata/generated_metrics.go @@ -8,6 +8,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -2926,6 +2927,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricSaphanaAlertCount metricSaphanaAlertCount metricSaphanaBackupLatest metricSaphanaBackupLatest metricSaphanaColumnMemoryUsed metricSaphanaColumnMemoryUsed @@ -3034,7 +3037,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSaphanaVolumeOperationCount: newMetricSaphanaVolumeOperationCount(mbc.Metrics.SaphanaVolumeOperationCount), metricSaphanaVolumeOperationSize: newMetricSaphanaVolumeOperationSize(mbc.Metrics.SaphanaVolumeOperationSize), metricSaphanaVolumeOperationTime: newMetricSaphanaVolumeOperationTime(mbc.Metrics.SaphanaVolumeOperationTime), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.DbSystem.Include != nil { + mb.resourceAttributeIncludeFilter["db.system"] = filter.CreateFilter(mbc.ResourceAttributes.DbSystem.Include) + } + if mbc.ResourceAttributes.DbSystem.Exclude != nil { + mb.resourceAttributeExcludeFilter["db.system"] = filter.CreateFilter(mbc.ResourceAttributes.DbSystem.Exclude) + } + if mbc.ResourceAttributes.SaphanaHost.Include != nil { + mb.resourceAttributeIncludeFilter["saphana.host"] = filter.CreateFilter(mbc.ResourceAttributes.SaphanaHost.Include) + } + if mbc.ResourceAttributes.SaphanaHost.Exclude != nil { + mb.resourceAttributeExcludeFilter["saphana.host"] = filter.CreateFilter(mbc.ResourceAttributes.SaphanaHost.Exclude) + } + for _, op := range options { op(mb) } @@ -3144,6 +3162,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/saphanareceiver/internal/metadata/generated_metrics_test.go b/receiver/saphanareceiver/internal/metadata/generated_metrics_test.go index 1378331ce3d9..7a9d83cfb812 100644 --- a/receiver/saphanareceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/saphanareceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -241,7 +254,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -251,10 +264,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/saphanareceiver/internal/metadata/testdata/config.yaml b/receiver/saphanareceiver/internal/metadata/testdata/config.yaml index 7151659ba3a1..11188dd141b0 100644 --- a/receiver/saphanareceiver/internal/metadata/testdata/config.yaml +++ b/receiver/saphanareceiver/internal/metadata/testdata/config.yaml @@ -193,3 +193,23 @@ none_set: enabled: false saphana.host: enabled: false +filter_set_include: + resource_attributes: + db.system: + enabled: true + include: + - regexp: ".*" + saphana.host: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + db.system: + enabled: true + exclude: + - strict: "db.system-val" + saphana.host: + enabled: true + exclude: + - strict: "saphana.host-val" diff --git a/receiver/sapmreceiver/generated_component_test.go b/receiver/sapmreceiver/generated_component_test.go index ebbf6df2ab3b..7f35e80c7bb0 100644 --- a/receiver/sapmreceiver/generated_component_test.go +++ b/receiver/sapmreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sapm", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/sapmreceiver/go.mod b/receiver/sapmreceiver/go.mod index e1114849bfcf..f0339b54a0e5 100644 --- a/receiver/sapmreceiver/go.mod +++ b/receiver/sapmreceiver/go.mod @@ -11,14 +11,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.98.0 github.com/signalfx/sapm-proto v0.14.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -55,17 +55,17 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/sapmreceiver/go.sum b/receiver/sapmreceiver/go.sum index f3d7fd5c1b8e..ebe18b43c275 100644 --- a/receiver/sapmreceiver/go.sum +++ b/receiver/sapmreceiver/go.sum @@ -86,46 +86,46 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/signalfxreceiver/generated_component_test.go b/receiver/signalfxreceiver/generated_component_test.go index fcb1f6a8d892..315fa557bcdf 100644 --- a/receiver/signalfxreceiver/generated_component_test.go +++ b/receiver/signalfxreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "signalfx", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/signalfxreceiver/go.mod b/receiver/signalfxreceiver/go.mod index 2f4ad9936bc2..8dbe81ce414e 100644 --- a/receiver/signalfxreceiver/go.mod +++ b/receiver/signalfxreceiver/go.mod @@ -11,14 +11,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx v0.98.0 github.com/signalfx/com_signalfx_metrics_protobuf v0.0.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/zap v1.27.0 @@ -67,17 +67,17 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/signalfxreceiver/go.sum b/receiver/signalfxreceiver/go.sum index 74860e5f752b..a4bb7f97ac7f 100644 --- a/receiver/signalfxreceiver/go.sum +++ b/receiver/signalfxreceiver/go.sum @@ -118,46 +118,46 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/simpleprometheusreceiver/generated_component_test.go b/receiver/simpleprometheusreceiver/generated_component_test.go index 0c3da740d801..4806561d7d45 100644 --- a/receiver/simpleprometheusreceiver/generated_component_test.go +++ b/receiver/simpleprometheusreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "prometheus_simple", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/simpleprometheusreceiver/go.mod b/receiver/simpleprometheusreceiver/go.mod index 16b4ceba7427..8a3974e9cb50 100644 --- a/receiver/simpleprometheusreceiver/go.mod +++ b/receiver/simpleprometheusreceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/prometheus/common v0.52.3 github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -132,17 +132,17 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/vultr/govultr/v2 v2.17.2 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/simpleprometheusreceiver/go.sum b/receiver/simpleprometheusreceiver/go.sum index a74743f0b45b..3e887c708f54 100644 --- a/receiver/simpleprometheusreceiver/go.sum +++ b/receiver/simpleprometheusreceiver/go.sum @@ -563,68 +563,68 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/skywalkingreceiver/generated_component_test.go b/receiver/skywalkingreceiver/generated_component_test.go index 4f594dea8bd1..88865d7d1990 100644 --- a/receiver/skywalkingreceiver/generated_component_test.go +++ b/receiver/skywalkingreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "skywalking", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/skywalkingreceiver/go.mod b/receiver/skywalkingreceiver/go.mod index 5ee73833bc55..60526461850d 100644 --- a/receiver/skywalkingreceiver/go.mod +++ b/receiver/skywalkingreceiver/go.mod @@ -8,16 +8,16 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/skywalking v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -56,15 +56,15 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/receiver/skywalkingreceiver/go.sum b/receiver/skywalkingreceiver/go.sum index ee4c654948e9..0fe735c3310a 100644 --- a/receiver/skywalkingreceiver/go.sum +++ b/receiver/skywalkingreceiver/go.sum @@ -125,46 +125,46 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0/go.mod h1:BMn8NB1vsxTljvuorms2hyOs8IBuuBEq0pl7ltOfy30= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= diff --git a/receiver/snmpreceiver/generated_component_test.go b/receiver/snmpreceiver/generated_component_test.go index c3784c2e32c8..de43a391a1be 100644 --- a/receiver/snmpreceiver/generated_component_test.go +++ b/receiver/snmpreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "snmp", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/snmpreceiver/go.mod b/receiver/snmpreceiver/go.mod index 9e3641000f4d..69bc81e38501 100644 --- a/receiver/snmpreceiver/go.mod +++ b/receiver/snmpreceiver/go.mod @@ -8,13 +8,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -84,22 +84,22 @@ require ( github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.25.0 // indirect diff --git a/receiver/snmpreceiver/go.sum b/receiver/snmpreceiver/go.sum index bc02a0e86866..8686a7be1d6a 100644 --- a/receiver/snmpreceiver/go.sum +++ b/receiver/snmpreceiver/go.sum @@ -190,58 +190,58 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= go.opentelemetry.io/collector/config/confignet v0.98.0 h1:pXDBb2hFe10T/NMHlL/oMgk1aFfe4NmmJFdFoioyC9o= go.opentelemetry.io/collector/config/confignet v0.98.0/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= go.opentelemetry.io/collector/config/configretry v0.98.0 h1:gZRenX9oMLJmQ/CD8YwFNl9YYl68RtcD0RYSCJhrMAk= go.opentelemetry.io/collector/config/configretry v0.98.0/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0 h1:JfvsDpTwAhA9au8/4vmONRh0OBVU6n36seb41JD/mTQ= go.opentelemetry.io/collector/extension/zpagesextension v0.98.0/go.mod h1:t1zDwy6kYp4w1JgcGHMvdGbKYHqWpK00bB1AEQ0Oqlc= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= diff --git a/receiver/snowflakereceiver/generated_component_test.go b/receiver/snowflakereceiver/generated_component_test.go index 9a1e04fccfbf..7a63d041e281 100644 --- a/receiver/snowflakereceiver/generated_component_test.go +++ b/receiver/snowflakereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "snowflake", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/snowflakereceiver/go.mod b/receiver/snowflakereceiver/go.mod index f956516a638a..0fc9cea1fa2f 100644 --- a/receiver/snowflakereceiver/go.mod +++ b/receiver/snowflakereceiver/go.mod @@ -9,12 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/snowflakedb/gosnowflake v1.9.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -81,8 +82,8 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/sirupsen/logrus v1.9.0 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/snowflakereceiver/go.sum b/receiver/snowflakereceiver/go.sum index 286995beb98a..2379b3fb0719 100644 --- a/receiver/snowflakereceiver/go.sum +++ b/receiver/snowflakereceiver/go.sum @@ -182,24 +182,26 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/snowflakereceiver/internal/metadata/generated_config.go b/receiver/snowflakereceiver/internal/metadata/generated_config.go index de1339cc0001..cb06651d2fe5 100644 --- a/receiver/snowflakereceiver/internal/metadata/generated_config.go +++ b/receiver/snowflakereceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -174,7 +177,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/snowflakereceiver/internal/metadata/generated_metrics.go b/receiver/snowflakereceiver/internal/metadata/generated_metrics.go index 1cfcbb7362f1..470a93954115 100644 --- a/receiver/snowflakereceiver/internal/metadata/generated_metrics.go +++ b/receiver/snowflakereceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1914,6 +1915,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricSnowflakeBillingCloudServiceTotal metricSnowflakeBillingCloudServiceTotal metricSnowflakeBillingTotalCreditTotal metricSnowflakeBillingTotalCreditTotal metricSnowflakeBillingVirtualWarehouseTotal metricSnowflakeBillingVirtualWarehouseTotal @@ -2002,7 +2005,16 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSnowflakeStorageStageBytesTotal: newMetricSnowflakeStorageStageBytesTotal(mbc.Metrics.SnowflakeStorageStageBytesTotal), metricSnowflakeStorageStorageBytesTotal: newMetricSnowflakeStorageStorageBytesTotal(mbc.Metrics.SnowflakeStorageStorageBytesTotal), metricSnowflakeTotalElapsedTimeAvg: newMetricSnowflakeTotalElapsedTimeAvg(mbc.Metrics.SnowflakeTotalElapsedTimeAvg), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.SnowflakeAccountName.Include != nil { + mb.resourceAttributeIncludeFilter["snowflake.account.name"] = filter.CreateFilter(mbc.ResourceAttributes.SnowflakeAccountName.Include) + } + if mbc.ResourceAttributes.SnowflakeAccountName.Exclude != nil { + mb.resourceAttributeExcludeFilter["snowflake.account.name"] = filter.CreateFilter(mbc.ResourceAttributes.SnowflakeAccountName.Exclude) + } + for _, op := range options { op(mb) } @@ -2102,6 +2114,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/snowflakereceiver/internal/metadata/generated_metrics_test.go b/receiver/snowflakereceiver/internal/metadata/generated_metrics_test.go index a50c1387a69f..b571cf8ee146 100644 --- a/receiver/snowflakereceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/snowflakereceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -181,7 +194,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -191,10 +204,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/snowflakereceiver/internal/metadata/testdata/config.yaml b/receiver/snowflakereceiver/internal/metadata/testdata/config.yaml index 2b5fb8f416df..139560784eac 100644 --- a/receiver/snowflakereceiver/internal/metadata/testdata/config.yaml +++ b/receiver/snowflakereceiver/internal/metadata/testdata/config.yaml @@ -149,3 +149,15 @@ none_set: resource_attributes: snowflake.account.name: enabled: false +filter_set_include: + resource_attributes: + snowflake.account.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + snowflake.account.name: + enabled: true + exclude: + - strict: "snowflake.account.name-val" diff --git a/receiver/solacereceiver/generated_component_test.go b/receiver/solacereceiver/generated_component_test.go index 97e623799dca..a0c7a05b5cf0 100644 --- a/receiver/solacereceiver/generated_component_test.go +++ b/receiver/solacereceiver/generated_component_test.go @@ -8,12 +8,21 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "solace", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/solacereceiver/go.mod b/receiver/solacereceiver/go.mod index 54da3cf7e428..49ec97e40273 100644 --- a/receiver/solacereceiver/go.mod +++ b/receiver/solacereceiver/go.mod @@ -9,13 +9,13 @@ require ( github.com/Azure/go-amqp v1.0.5 github.com/stretchr/testify v1.9.0 go.opencensus.io v0.24.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -48,7 +48,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect diff --git a/receiver/solacereceiver/go.sum b/receiver/solacereceiver/go.sum index f9588c06b257..15b9417d111e 100644 --- a/receiver/solacereceiver/go.sum +++ b/receiver/solacereceiver/go.sum @@ -105,24 +105,24 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/collector v0.98.0 h1:O7bpARGWzNfFQEYevLl4iigDrpGTJY3vV/kKqNZzMOk= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/splunkenterprisereceiver/generated_component_test.go b/receiver/splunkenterprisereceiver/generated_component_test.go index 8c27f93f0a17..1e888853827a 100644 --- a/receiver/splunkenterprisereceiver/generated_component_test.go +++ b/receiver/splunkenterprisereceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "splunkenterprise", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/splunkenterprisereceiver/go.mod b/receiver/splunkenterprisereceiver/go.mod index 34b6f0e03330..973264012104 100644 --- a/receiver/splunkenterprisereceiver/go.mod +++ b/receiver/splunkenterprisereceiver/go.mod @@ -7,15 +7,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -52,13 +52,13 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/splunkenterprisereceiver/go.sum b/receiver/splunkenterprisereceiver/go.sum index 68ef922de1e4..e2be0b34a1b9 100644 --- a/receiver/splunkenterprisereceiver/go.sum +++ b/receiver/splunkenterprisereceiver/go.sum @@ -72,40 +72,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/splunkenterprisereceiver/internal/metadata/generated_config.go b/receiver/splunkenterprisereceiver/internal/metadata/generated_config.go index 5b80b4fb6dcc..797f6b806c35 100644 --- a/receiver/splunkenterprisereceiver/internal/metadata/generated_config.go +++ b/receiver/splunkenterprisereceiver/internal/metadata/generated_config.go @@ -2,7 +2,9 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { diff --git a/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics.go b/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics.go index a5992d7110a1..64328f50dcaf 100644 --- a/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics.go +++ b/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics.go @@ -1579,6 +1579,7 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSplunkServerIntrospectionQueuesCurrentBytes: newMetricSplunkServerIntrospectionQueuesCurrentBytes(mbc.Metrics.SplunkServerIntrospectionQueuesCurrentBytes), metricSplunkTypingQueueRatio: newMetricSplunkTypingQueueRatio(mbc.Metrics.SplunkTypingQueueRatio), } + for _, op := range options { op(mb) } @@ -1667,6 +1668,7 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics_test.go b/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics_test.go index 1ac5c9950090..bec09430fd31 100644 --- a/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/splunkenterprisereceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,34 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, }, } for _, test := range tests { @@ -164,7 +168,7 @@ func TestMetricsBuilder(t *testing.T) { res := pcommon.NewResource() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -174,10 +178,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/splunkhecreceiver/generated_component_test.go b/receiver/splunkhecreceiver/generated_component_test.go index cde400895bf0..801cfc886e45 100644 --- a/receiver/splunkhecreceiver/generated_component_test.go +++ b/receiver/splunkhecreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "splunk_hec", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/splunkhecreceiver/go.mod b/receiver/splunkhecreceiver/go.mod index afd957d75e34..49c8e1195645 100644 --- a/receiver/splunkhecreceiver/go.mod +++ b/receiver/splunkhecreceiver/go.mod @@ -11,15 +11,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -58,16 +58,16 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/splunkhecreceiver/go.sum b/receiver/splunkhecreceiver/go.sum index 16d06c8f415a..28d0a41b2acc 100644 --- a/receiver/splunkhecreceiver/go.sum +++ b/receiver/splunkhecreceiver/go.sum @@ -173,46 +173,46 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/sqlqueryreceiver/generated_component_test.go b/receiver/sqlqueryreceiver/generated_component_test.go index 0b2ab7e685bb..e6527ea3d193 100644 --- a/receiver/sqlqueryreceiver/generated_component_test.go +++ b/receiver/sqlqueryreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sqlquery", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/sqlqueryreceiver/go.mod b/receiver/sqlqueryreceiver/go.mod index 5e8cd15a78f4..d353aee2f826 100644 --- a/receiver/sqlqueryreceiver/go.mod +++ b/receiver/sqlqueryreceiver/go.mod @@ -11,12 +11,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -133,9 +133,9 @@ require ( github.com/valyala/fastjson v1.6.4 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/sqlqueryreceiver/go.sum b/receiver/sqlqueryreceiver/go.sum index 3e79983ba08e..0fff220f4d95 100644 --- a/receiver/sqlqueryreceiver/go.sum +++ b/receiver/sqlqueryreceiver/go.sum @@ -310,26 +310,26 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/sqlserverreceiver/generated_component_test.go b/receiver/sqlserverreceiver/generated_component_test.go index 3cdf4b1bfb84..c1e58bac9f95 100644 --- a/receiver/sqlserverreceiver/generated_component_test.go +++ b/receiver/sqlserverreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sqlserver", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/sqlserverreceiver/go.mod b/receiver/sqlserverreceiver/go.mod index 1fa1f4d86afa..4444adfbd8a4 100644 --- a/receiver/sqlserverreceiver/go.mod +++ b/receiver/sqlserverreceiver/go.mod @@ -8,12 +8,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/winperfcounters v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -45,8 +46,8 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/sqlserverreceiver/go.sum b/receiver/sqlserverreceiver/go.sum index c3ecf4739071..abd859453919 100644 --- a/receiver/sqlserverreceiver/go.sum +++ b/receiver/sqlserverreceiver/go.sum @@ -62,24 +62,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/sqlserverreceiver/internal/metadata/generated_config.go b/receiver/sqlserverreceiver/internal/metadata/generated_config.go index 36a25fef9c42..69c4c1b21f8b 100644 --- a/receiver/sqlserverreceiver/internal/metadata/generated_config.go +++ b/receiver/sqlserverreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -114,7 +117,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/sqlserverreceiver/internal/metadata/generated_metrics.go b/receiver/sqlserverreceiver/internal/metadata/generated_metrics.go index 8764f1adf52b..630f2baa721b 100644 --- a/receiver/sqlserverreceiver/internal/metadata/generated_metrics.go +++ b/receiver/sqlserverreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -1031,6 +1032,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricSqlserverBatchRequestRate metricSqlserverBatchRequestRate metricSqlserverBatchSQLCompilationRate metricSqlserverBatchSQLCompilationRate metricSqlserverBatchSQLRecompilationRate metricSqlserverBatchSQLRecompilationRate @@ -1089,7 +1092,28 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricSqlserverTransactionLogShrinkCount: newMetricSqlserverTransactionLogShrinkCount(mbc.Metrics.SqlserverTransactionLogShrinkCount), metricSqlserverTransactionLogUsage: newMetricSqlserverTransactionLogUsage(mbc.Metrics.SqlserverTransactionLogUsage), metricSqlserverUserConnectionCount: newMetricSqlserverUserConnectionCount(mbc.Metrics.SqlserverUserConnectionCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.SqlserverComputerName.Include != nil { + mb.resourceAttributeIncludeFilter["sqlserver.computer.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverComputerName.Include) + } + if mbc.ResourceAttributes.SqlserverComputerName.Exclude != nil { + mb.resourceAttributeExcludeFilter["sqlserver.computer.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverComputerName.Exclude) + } + if mbc.ResourceAttributes.SqlserverDatabaseName.Include != nil { + mb.resourceAttributeIncludeFilter["sqlserver.database.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverDatabaseName.Include) + } + if mbc.ResourceAttributes.SqlserverDatabaseName.Exclude != nil { + mb.resourceAttributeExcludeFilter["sqlserver.database.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverDatabaseName.Exclude) + } + if mbc.ResourceAttributes.SqlserverInstanceName.Include != nil { + mb.resourceAttributeIncludeFilter["sqlserver.instance.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverInstanceName.Include) + } + if mbc.ResourceAttributes.SqlserverInstanceName.Exclude != nil { + mb.resourceAttributeExcludeFilter["sqlserver.instance.name"] = filter.CreateFilter(mbc.ResourceAttributes.SqlserverInstanceName.Exclude) + } + for _, op := range options { op(mb) } @@ -1174,6 +1198,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/sqlserverreceiver/internal/metadata/generated_metrics_test.go b/receiver/sqlserverreceiver/internal/metadata/generated_metrics_test.go index 86e67d77fb7b..0dff925763bb 100644 --- a/receiver/sqlserverreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/sqlserverreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -142,7 +155,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -152,10 +165,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/sqlserverreceiver/internal/metadata/testdata/config.yaml b/receiver/sqlserverreceiver/internal/metadata/testdata/config.yaml index f86b713304d2..105050b11b42 100644 --- a/receiver/sqlserverreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/sqlserverreceiver/internal/metadata/testdata/config.yaml @@ -97,3 +97,31 @@ none_set: enabled: false sqlserver.instance.name: enabled: false +filter_set_include: + resource_attributes: + sqlserver.computer.name: + enabled: true + include: + - regexp: ".*" + sqlserver.database.name: + enabled: true + include: + - regexp: ".*" + sqlserver.instance.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + sqlserver.computer.name: + enabled: true + exclude: + - strict: "sqlserver.computer.name-val" + sqlserver.database.name: + enabled: true + exclude: + - strict: "sqlserver.database.name-val" + sqlserver.instance.name: + enabled: true + exclude: + - strict: "sqlserver.instance.name-val" diff --git a/receiver/sshcheckreceiver/generated_component_test.go b/receiver/sshcheckreceiver/generated_component_test.go index a5304d1ebc3e..feb95e51a4f8 100644 --- a/receiver/sshcheckreceiver/generated_component_test.go +++ b/receiver/sshcheckreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "sshcheck", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/sshcheckreceiver/go.mod b/receiver/sshcheckreceiver/go.mod index 9f538272f986..0ed718ec048d 100644 --- a/receiver/sshcheckreceiver/go.mod +++ b/receiver/sshcheckreceiver/go.mod @@ -8,13 +8,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/pkg/sftp v1.13.6 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 golang.org/x/crypto v0.22.0 @@ -25,8 +26,8 @@ require ( github.com/knadh/koanf/providers/confmap v0.1.0 // indirect github.com/knadh/koanf/v2 v2.1.1 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.98.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect ) diff --git a/receiver/sshcheckreceiver/go.sum b/receiver/sshcheckreceiver/go.sum index 15d97332daf4..288799171004 100644 --- a/receiver/sshcheckreceiver/go.sum +++ b/receiver/sshcheckreceiver/go.sum @@ -68,26 +68,28 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/sshcheckreceiver/internal/metadata/generated_config.go b/receiver/sshcheckreceiver/internal/metadata/generated_config.go index f3bb58b494fe..24ebc3153e2e 100644 --- a/receiver/sshcheckreceiver/internal/metadata/generated_config.go +++ b/receiver/sshcheckreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -58,7 +61,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/sshcheckreceiver/internal/metadata/generated_metrics.go b/receiver/sshcheckreceiver/internal/metadata/generated_metrics.go index 4fb3728ff450..b3b83a168f66 100644 --- a/receiver/sshcheckreceiver/internal/metadata/generated_metrics.go +++ b/receiver/sshcheckreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -320,17 +321,19 @@ func newMetricSshcheckStatus(cfg MetricConfig) metricSshcheckStatus { // MetricsBuilder provides an interface for scrapers to report metrics while taking care of all the transformations // required to produce metric representation defined in metadata and user config. type MetricsBuilder struct { - config MetricsBuilderConfig // config of the metrics builder. - startTime pcommon.Timestamp // start time that will be applied to all recorded data points. - metricsCapacity int // maximum observed number of metrics per resource. - metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. - buildInfo component.BuildInfo // contains version information. - metricSshcheckDuration metricSshcheckDuration - metricSshcheckError metricSshcheckError - metricSshcheckSftpDuration metricSshcheckSftpDuration - metricSshcheckSftpError metricSshcheckSftpError - metricSshcheckSftpStatus metricSshcheckSftpStatus - metricSshcheckStatus metricSshcheckStatus + config MetricsBuilderConfig // config of the metrics builder. + startTime pcommon.Timestamp // start time that will be applied to all recorded data points. + metricsCapacity int // maximum observed number of metrics per resource. + metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. + buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter + metricSshcheckDuration metricSshcheckDuration + metricSshcheckError metricSshcheckError + metricSshcheckSftpDuration metricSshcheckSftpDuration + metricSshcheckSftpError metricSshcheckSftpError + metricSshcheckSftpStatus metricSshcheckSftpStatus + metricSshcheckStatus metricSshcheckStatus } // metricBuilderOption applies changes to default metrics builder. @@ -345,17 +348,26 @@ func WithStartTime(startTime pcommon.Timestamp) metricBuilderOption { func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSettings, options ...metricBuilderOption) *MetricsBuilder { mb := &MetricsBuilder{ - config: mbc, - startTime: pcommon.NewTimestampFromTime(time.Now()), - metricsBuffer: pmetric.NewMetrics(), - buildInfo: settings.BuildInfo, - metricSshcheckDuration: newMetricSshcheckDuration(mbc.Metrics.SshcheckDuration), - metricSshcheckError: newMetricSshcheckError(mbc.Metrics.SshcheckError), - metricSshcheckSftpDuration: newMetricSshcheckSftpDuration(mbc.Metrics.SshcheckSftpDuration), - metricSshcheckSftpError: newMetricSshcheckSftpError(mbc.Metrics.SshcheckSftpError), - metricSshcheckSftpStatus: newMetricSshcheckSftpStatus(mbc.Metrics.SshcheckSftpStatus), - metricSshcheckStatus: newMetricSshcheckStatus(mbc.Metrics.SshcheckStatus), + config: mbc, + startTime: pcommon.NewTimestampFromTime(time.Now()), + metricsBuffer: pmetric.NewMetrics(), + buildInfo: settings.BuildInfo, + metricSshcheckDuration: newMetricSshcheckDuration(mbc.Metrics.SshcheckDuration), + metricSshcheckError: newMetricSshcheckError(mbc.Metrics.SshcheckError), + metricSshcheckSftpDuration: newMetricSshcheckSftpDuration(mbc.Metrics.SshcheckSftpDuration), + metricSshcheckSftpError: newMetricSshcheckSftpError(mbc.Metrics.SshcheckSftpError), + metricSshcheckSftpStatus: newMetricSshcheckSftpStatus(mbc.Metrics.SshcheckSftpStatus), + metricSshcheckStatus: newMetricSshcheckStatus(mbc.Metrics.SshcheckStatus), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), + } + if mbc.ResourceAttributes.SSHEndpoint.Include != nil { + mb.resourceAttributeIncludeFilter["ssh.endpoint"] = filter.CreateFilter(mbc.ResourceAttributes.SSHEndpoint.Include) + } + if mbc.ResourceAttributes.SSHEndpoint.Exclude != nil { + mb.resourceAttributeExcludeFilter["ssh.endpoint"] = filter.CreateFilter(mbc.ResourceAttributes.SSHEndpoint.Exclude) } + for _, op := range options { op(mb) } @@ -426,6 +438,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/sshcheckreceiver/internal/metadata/generated_metrics_test.go b/receiver/sshcheckreceiver/internal/metadata/generated_metrics_test.go index 3f05d09c26cd..297e974c76e6 100644 --- a/receiver/sshcheckreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/sshcheckreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -81,7 +94,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -91,10 +104,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/sshcheckreceiver/internal/metadata/testdata/config.yaml b/receiver/sshcheckreceiver/internal/metadata/testdata/config.yaml index 1af2911433f6..2c3f99626855 100644 --- a/receiver/sshcheckreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/sshcheckreceiver/internal/metadata/testdata/config.yaml @@ -33,3 +33,15 @@ none_set: resource_attributes: ssh.endpoint: enabled: false +filter_set_include: + resource_attributes: + ssh.endpoint: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + ssh.endpoint: + enabled: true + exclude: + - strict: "ssh.endpoint-val" diff --git a/receiver/statsdreceiver/generated_component_test.go b/receiver/statsdreceiver/generated_component_test.go index a1e58e5504e2..41d97f76ebf8 100644 --- a/receiver/statsdreceiver/generated_component_test.go +++ b/receiver/statsdreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "statsd", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/statsdreceiver/go.mod b/receiver/statsdreceiver/go.mod index 735d91b1c535..444c48e34e7b 100644 --- a/receiver/statsdreceiver/go.mod +++ b/receiver/statsdreceiver/go.mod @@ -7,14 +7,14 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel v1.25.0 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 @@ -47,8 +47,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.25.0 // indirect diff --git a/receiver/statsdreceiver/go.sum b/receiver/statsdreceiver/go.sum index 164832be4ed7..91009ba4cd46 100644 --- a/receiver/statsdreceiver/go.sum +++ b/receiver/statsdreceiver/go.sum @@ -64,28 +64,28 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/syslogreceiver/generated_component_test.go b/receiver/syslogreceiver/generated_component_test.go index 0d7b3f75ad5d..ed5763eb3774 100644 --- a/receiver/syslogreceiver/generated_component_test.go +++ b/receiver/syslogreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "syslog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/syslogreceiver/go.mod b/receiver/syslogreceiver/go.mod index fedcfb17917d..e7781b2e67db 100644 --- a/receiver/syslogreceiver/go.mod +++ b/receiver/syslogreceiver/go.mod @@ -6,11 +6,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -46,12 +46,12 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/syslogreceiver/go.sum b/receiver/syslogreceiver/go.sum index 737215dae90e..39a04a4a779c 100644 --- a/receiver/syslogreceiver/go.sum +++ b/receiver/syslogreceiver/go.sum @@ -81,30 +81,30 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/tcplogreceiver/generated_component_test.go b/receiver/tcplogreceiver/generated_component_test.go index 269bac37a152..f30b434f73cc 100644 --- a/receiver/tcplogreceiver/generated_component_test.go +++ b/receiver/tcplogreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "tcplog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/tcplogreceiver/go.mod b/receiver/tcplogreceiver/go.mod index 11a8baab1b23..9f3cad6b0333 100644 --- a/receiver/tcplogreceiver/go.mod +++ b/receiver/tcplogreceiver/go.mod @@ -5,10 +5,10 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -45,13 +45,13 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/tcplogreceiver/go.sum b/receiver/tcplogreceiver/go.sum index 737215dae90e..39a04a4a779c 100644 --- a/receiver/tcplogreceiver/go.sum +++ b/receiver/tcplogreceiver/go.sum @@ -81,30 +81,30 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/udplogreceiver/generated_component_test.go b/receiver/udplogreceiver/generated_component_test.go index ac60549b2d55..74d57d76a216 100644 --- a/receiver/udplogreceiver/generated_component_test.go +++ b/receiver/udplogreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "udplog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/udplogreceiver/go.mod b/receiver/udplogreceiver/go.mod index f7e09e63aa91..222c4e41b3ac 100644 --- a/receiver/udplogreceiver/go.mod +++ b/receiver/udplogreceiver/go.mod @@ -5,10 +5,10 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -43,11 +43,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/udplogreceiver/go.sum b/receiver/udplogreceiver/go.sum index 33e043063a67..aa6a0811111a 100644 --- a/receiver/udplogreceiver/go.sum +++ b/receiver/udplogreceiver/go.sum @@ -77,26 +77,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/vcenterreceiver/generated_component_test.go b/receiver/vcenterreceiver/generated_component_test.go index fec61aef1064..19ab3da1a880 100644 --- a/receiver/vcenterreceiver/generated_component_test.go +++ b/receiver/vcenterreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "vcenter", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/vcenterreceiver/go.mod b/receiver/vcenterreceiver/go.mod index 392265355978..7d96d9800bdf 100644 --- a/receiver/vcenterreceiver/go.mod +++ b/receiver/vcenterreceiver/go.mod @@ -10,14 +10,15 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/vmware/govmomi v0.36.3 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -84,8 +85,8 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/vcenterreceiver/go.sum b/receiver/vcenterreceiver/go.sum index a0ad4ff40258..e9e9aeb045f4 100644 --- a/receiver/vcenterreceiver/go.sum +++ b/receiver/vcenterreceiver/go.sum @@ -153,28 +153,30 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/vcenterreceiver/internal/metadata/generated_config.go b/receiver/vcenterreceiver/internal/metadata/generated_config.go index 8b8eb3667f70..85ba0bfd78a7 100644 --- a/receiver/vcenterreceiver/internal/metadata/generated_config.go +++ b/receiver/vcenterreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -190,7 +193,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/vcenterreceiver/internal/metadata/generated_metrics.go b/receiver/vcenterreceiver/internal/metadata/generated_metrics.go index 31bf0343cf4c..463cd9ccf7ec 100644 --- a/receiver/vcenterreceiver/internal/metadata/generated_metrics.go +++ b/receiver/vcenterreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -2161,6 +2162,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricVcenterClusterCPUEffective metricVcenterClusterCPUEffective metricVcenterClusterCPULimit metricVcenterClusterCPULimit metricVcenterClusterHostCount metricVcenterClusterHostCount @@ -2257,7 +2260,52 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricVcenterVMNetworkPacketCount: newMetricVcenterVMNetworkPacketCount(mbc.Metrics.VcenterVMNetworkPacketCount), metricVcenterVMNetworkThroughput: newMetricVcenterVMNetworkThroughput(mbc.Metrics.VcenterVMNetworkThroughput), metricVcenterVMNetworkUsage: newMetricVcenterVMNetworkUsage(mbc.Metrics.VcenterVMNetworkUsage), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.VcenterClusterName.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterClusterName.Include) + } + if mbc.ResourceAttributes.VcenterClusterName.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.cluster.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterClusterName.Exclude) + } + if mbc.ResourceAttributes.VcenterDatastoreName.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.datastore.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterDatastoreName.Include) + } + if mbc.ResourceAttributes.VcenterDatastoreName.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.datastore.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterDatastoreName.Exclude) + } + if mbc.ResourceAttributes.VcenterHostName.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.host.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterHostName.Include) + } + if mbc.ResourceAttributes.VcenterHostName.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.host.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterHostName.Exclude) + } + if mbc.ResourceAttributes.VcenterResourcePoolInventoryPath.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.resource_pool.inventory_path"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterResourcePoolInventoryPath.Include) + } + if mbc.ResourceAttributes.VcenterResourcePoolInventoryPath.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.resource_pool.inventory_path"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterResourcePoolInventoryPath.Exclude) + } + if mbc.ResourceAttributes.VcenterResourcePoolName.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.resource_pool.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterResourcePoolName.Include) + } + if mbc.ResourceAttributes.VcenterResourcePoolName.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.resource_pool.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterResourcePoolName.Exclude) + } + if mbc.ResourceAttributes.VcenterVMID.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.vm.id"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterVMID.Include) + } + if mbc.ResourceAttributes.VcenterVMID.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.vm.id"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterVMID.Exclude) + } + if mbc.ResourceAttributes.VcenterVMName.Include != nil { + mb.resourceAttributeIncludeFilter["vcenter.vm.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterVMName.Include) + } + if mbc.ResourceAttributes.VcenterVMName.Exclude != nil { + mb.resourceAttributeExcludeFilter["vcenter.vm.name"] = filter.CreateFilter(mbc.ResourceAttributes.VcenterVMName.Exclude) + } + for _, op := range options { op(mb) } @@ -2361,6 +2409,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/vcenterreceiver/internal/metadata/generated_metrics_test.go b/receiver/vcenterreceiver/internal/metadata/generated_metrics_test.go index 6d1864a11a0b..75db4c3f0dfa 100644 --- a/receiver/vcenterreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/vcenterreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -221,7 +234,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -231,10 +244,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/vcenterreceiver/internal/metadata/testdata/config.yaml b/receiver/vcenterreceiver/internal/metadata/testdata/config.yaml index 7e40268a8ac1..f59d1ce7f7c3 100644 --- a/receiver/vcenterreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/vcenterreceiver/internal/metadata/testdata/config.yaml @@ -189,3 +189,63 @@ none_set: enabled: false vcenter.vm.name: enabled: false +filter_set_include: + resource_attributes: + vcenter.cluster.name: + enabled: true + include: + - regexp: ".*" + vcenter.datastore.name: + enabled: true + include: + - regexp: ".*" + vcenter.host.name: + enabled: true + include: + - regexp: ".*" + vcenter.resource_pool.inventory_path: + enabled: true + include: + - regexp: ".*" + vcenter.resource_pool.name: + enabled: true + include: + - regexp: ".*" + vcenter.vm.id: + enabled: true + include: + - regexp: ".*" + vcenter.vm.name: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + vcenter.cluster.name: + enabled: true + exclude: + - strict: "vcenter.cluster.name-val" + vcenter.datastore.name: + enabled: true + exclude: + - strict: "vcenter.datastore.name-val" + vcenter.host.name: + enabled: true + exclude: + - strict: "vcenter.host.name-val" + vcenter.resource_pool.inventory_path: + enabled: true + exclude: + - strict: "vcenter.resource_pool.inventory_path-val" + vcenter.resource_pool.name: + enabled: true + exclude: + - strict: "vcenter.resource_pool.name-val" + vcenter.vm.id: + enabled: true + exclude: + - strict: "vcenter.vm.id-val" + vcenter.vm.name: + enabled: true + exclude: + - strict: "vcenter.vm.name-val" diff --git a/receiver/wavefrontreceiver/generated_component_test.go b/receiver/wavefrontreceiver/generated_component_test.go index ad146e776755..0090bfbd912c 100644 --- a/receiver/wavefrontreceiver/generated_component_test.go +++ b/receiver/wavefrontreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "wavefront", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/wavefrontreceiver/go.mod b/receiver/wavefrontreceiver/go.mod index e514ec496fd7..c093e17ca59c 100644 --- a/receiver/wavefrontreceiver/go.mod +++ b/receiver/wavefrontreceiver/go.mod @@ -7,12 +7,12 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -41,9 +41,9 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/wavefrontreceiver/go.sum b/receiver/wavefrontreceiver/go.sum index 132124c25b0f..c70796e06601 100644 --- a/receiver/wavefrontreceiver/go.sum +++ b/receiver/wavefrontreceiver/go.sum @@ -62,26 +62,26 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/webhookeventreceiver/generated_component_test.go b/receiver/webhookeventreceiver/generated_component_test.go index 24fb011d6c0a..1c18809a0703 100644 --- a/receiver/webhookeventreceiver/generated_component_test.go +++ b/receiver/webhookeventreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "webhookevent", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/webhookeventreceiver/go.mod b/receiver/webhookeventreceiver/go.mod index ae7305b58c0f..2ef6df8c47c2 100644 --- a/receiver/webhookeventreceiver/go.mod +++ b/receiver/webhookeventreceiver/go.mod @@ -6,12 +6,12 @@ require ( github.com/json-iterator/go v1.1.12 github.com/julienschmidt/httprouter v1.3.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -46,16 +46,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/webhookeventreceiver/go.sum b/receiver/webhookeventreceiver/go.sum index 5a2351b5146f..22b09d1f7d01 100644 --- a/receiver/webhookeventreceiver/go.sum +++ b/receiver/webhookeventreceiver/go.sum @@ -74,40 +74,40 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/windowseventlogreceiver/generated_component_test.go b/receiver/windowseventlogreceiver/generated_component_test.go index 5f007a661ca7..5f9208d0987d 100644 --- a/receiver/windowseventlogreceiver/generated_component_test.go +++ b/receiver/windowseventlogreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "windowseventlog", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/windowseventlogreceiver/go.mod b/receiver/windowseventlogreceiver/go.mod index 3d71cf3c9c26..b39eefbfec95 100644 --- a/receiver/windowseventlogreceiver/go.mod +++ b/receiver/windowseventlogreceiver/go.mod @@ -6,10 +6,10 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -44,11 +44,11 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/valyala/fastjson v1.6.4 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/windowseventlogreceiver/go.sum b/receiver/windowseventlogreceiver/go.sum index 33e043063a67..aa6a0811111a 100644 --- a/receiver/windowseventlogreceiver/go.sum +++ b/receiver/windowseventlogreceiver/go.sum @@ -77,26 +77,26 @@ github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLr 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= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/windowsperfcountersreceiver/generated_component_test.go b/receiver/windowsperfcountersreceiver/generated_component_test.go index 347f5b63d2fd..eb7feda03508 100644 --- a/receiver/windowsperfcountersreceiver/generated_component_test.go +++ b/receiver/windowsperfcountersreceiver/generated_component_test.go @@ -16,6 +16,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "windowsperfcounters", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/windowsperfcountersreceiver/go.mod b/receiver/windowsperfcountersreceiver/go.mod index 25189a0d14d4..ddbb7f5bc952 100644 --- a/receiver/windowsperfcountersreceiver/go.mod +++ b/receiver/windowsperfcountersreceiver/go.mod @@ -7,11 +7,11 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/winperfcounters v0.98.0 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -42,8 +42,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect go.opentelemetry.io/otel/sdk v1.25.0 // indirect diff --git a/receiver/windowsperfcountersreceiver/go.sum b/receiver/windowsperfcountersreceiver/go.sum index b32a373bf395..544072fb1aa3 100644 --- a/receiver/windowsperfcountersreceiver/go.sum +++ b/receiver/windowsperfcountersreceiver/go.sum @@ -60,22 +60,22 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= go.opentelemetry.io/otel v1.25.0/go.mod h1:Wa2ds5NOXEMkCmUou1WA7ZBfLTHWIsp034OVD7AO+Vg= go.opentelemetry.io/otel/exporters/prometheus v0.47.0 h1:OL6yk1Z/pEGdDnrBbxSsH+t4FY1zXfBRGd7bjwhlMLU= diff --git a/receiver/zipkinreceiver/generated_component_test.go b/receiver/zipkinreceiver/generated_component_test.go index c7ea198e355c..9b3ccd6bb494 100644 --- a/receiver/zipkinreceiver/generated_component_test.go +++ b/receiver/zipkinreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "zipkin", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/zipkinreceiver/go.mod b/receiver/zipkinreceiver/go.mod index 270c244cc819..9b55ee02d24c 100644 --- a/receiver/zipkinreceiver/go.mod +++ b/receiver/zipkinreceiver/go.mod @@ -9,13 +9,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.98.0 github.com/openzipkin/zipkin-go v0.4.2 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -51,16 +51,16 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/zipkinreceiver/go.sum b/receiver/zipkinreceiver/go.sum index 795e57fff09d..9905a129c219 100644 --- a/receiver/zipkinreceiver/go.sum +++ b/receiver/zipkinreceiver/go.sum @@ -80,42 +80,42 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 h1:cEPbyTSEHlQR89XVlyo78gqluF8Y3oMeBkXGWzQsfXY= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0/go.mod h1:DKdbWcT4GH1D0Y3Sqt/PFXt2naRKDWtU+eE6oLdFNA8= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/zookeeperreceiver/generated_component_test.go b/receiver/zookeeperreceiver/generated_component_test.go index ebc3a3e52748..8801cd2a3ed5 100644 --- a/receiver/zookeeperreceiver/generated_component_test.go +++ b/receiver/zookeeperreceiver/generated_component_test.go @@ -15,6 +15,14 @@ import ( "go.opentelemetry.io/collector/receiver/receivertest" ) +func TestComponentFactoryType(t *testing.T) { + require.Equal(t, "zookeeper", NewFactory().Type().String()) +} + +func TestComponentConfigStruct(t *testing.T) { + require.NoError(t, componenttest.CheckConfigStruct(NewFactory().CreateDefaultConfig())) +} + func TestComponentLifecycle(t *testing.T) { factory := NewFactory() diff --git a/receiver/zookeeperreceiver/go.mod b/receiver/zookeeperreceiver/go.mod index 7c5f5db82847..9cae32b980b9 100644 --- a/receiver/zookeeperreceiver/go.mod +++ b/receiver/zookeeperreceiver/go.mod @@ -10,12 +10,13 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 github.com/testcontainers/testcontainers-go v0.30.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/otel/metric v1.25.0 go.opentelemetry.io/otel/trace v1.25.0 go.uber.org/goleak v1.3.0 @@ -78,9 +79,9 @@ require ( 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 - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/receiver/zookeeperreceiver/go.sum b/receiver/zookeeperreceiver/go.sum index 1904697620d3..1eef8cb8b145 100644 --- a/receiver/zookeeperreceiver/go.sum +++ b/receiver/zookeeperreceiver/go.sum @@ -145,26 +145,28 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8 h1:KE/NuJACz82mbsmbATn9m4NS4i/NZtuUC8gJInjwpnA= +go.opentelemetry.io/collector/filter v0.0.0-20240416174005-d0f15e2463f8/go.mod h1:5YCXx+OQH2Wyc60cElEdb+w2Jckz7Zsv4dGrrce4zGg= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.25.0 h1:gldB5FfhRl7OJQbUHt/8s0a7cE8fbsPAtdpRaApKy4k= diff --git a/receiver/zookeeperreceiver/internal/metadata/generated_config.go b/receiver/zookeeperreceiver/internal/metadata/generated_config.go index 19575a42faca..eb3ee345fc9a 100644 --- a/receiver/zookeeperreceiver/internal/metadata/generated_config.go +++ b/receiver/zookeeperreceiver/internal/metadata/generated_config.go @@ -2,7 +2,10 @@ package metadata -import "go.opentelemetry.io/collector/confmap" +import ( + "go.opentelemetry.io/collector/confmap" + "go.opentelemetry.io/collector/filter" +) // MetricConfig provides common config for a particular metric. type MetricConfig struct { @@ -98,7 +101,9 @@ func DefaultMetricsConfig() MetricsConfig { // ResourceAttributeConfig provides common config for a particular resource attribute. type ResourceAttributeConfig struct { - Enabled bool `mapstructure:"enabled"` + Enabled bool `mapstructure:"enabled"` + Include []filter.Config `mapstructure:"include"` + Exclude []filter.Config `mapstructure:"exclude"` enabledSetByUser bool } diff --git a/receiver/zookeeperreceiver/internal/metadata/generated_metrics.go b/receiver/zookeeperreceiver/internal/metadata/generated_metrics.go index 913cf23ac2de..3bfa1ba9449d 100644 --- a/receiver/zookeeperreceiver/internal/metadata/generated_metrics.go +++ b/receiver/zookeeperreceiver/internal/metadata/generated_metrics.go @@ -6,6 +6,7 @@ import ( "time" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/filter" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" @@ -881,6 +882,8 @@ type MetricsBuilder struct { metricsCapacity int // maximum observed number of metrics per resource. metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. buildInfo component.BuildInfo // contains version information. + resourceAttributeIncludeFilter map[string]filter.Filter + resourceAttributeExcludeFilter map[string]filter.Filter metricZookeeperConnectionActive metricZookeeperConnectionActive metricZookeeperDataTreeEphemeralNodeCount metricZookeeperDataTreeEphemeralNodeCount metricZookeeperDataTreeSize metricZookeeperDataTreeSize @@ -931,7 +934,22 @@ func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.CreateSetting metricZookeeperSyncPending: newMetricZookeeperSyncPending(mbc.Metrics.ZookeeperSyncPending), metricZookeeperWatchCount: newMetricZookeeperWatchCount(mbc.Metrics.ZookeeperWatchCount), metricZookeeperZnodeCount: newMetricZookeeperZnodeCount(mbc.Metrics.ZookeeperZnodeCount), + resourceAttributeIncludeFilter: make(map[string]filter.Filter), + resourceAttributeExcludeFilter: make(map[string]filter.Filter), } + if mbc.ResourceAttributes.ServerState.Include != nil { + mb.resourceAttributeIncludeFilter["server.state"] = filter.CreateFilter(mbc.ResourceAttributes.ServerState.Include) + } + if mbc.ResourceAttributes.ServerState.Exclude != nil { + mb.resourceAttributeExcludeFilter["server.state"] = filter.CreateFilter(mbc.ResourceAttributes.ServerState.Exclude) + } + if mbc.ResourceAttributes.ZkVersion.Include != nil { + mb.resourceAttributeIncludeFilter["zk.version"] = filter.CreateFilter(mbc.ResourceAttributes.ZkVersion.Include) + } + if mbc.ResourceAttributes.ZkVersion.Exclude != nil { + mb.resourceAttributeExcludeFilter["zk.version"] = filter.CreateFilter(mbc.ResourceAttributes.ZkVersion.Exclude) + } + for _, op := range options { op(mb) } @@ -1012,6 +1030,17 @@ func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { for _, op := range rmo { op(rm) } + for attr, filter := range mb.resourceAttributeIncludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { + return + } + } + for attr, filter := range mb.resourceAttributeExcludeFilter { + if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { + return + } + } + if ils.Metrics().Len() > 0 { mb.updateCapacity(rm) rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) diff --git a/receiver/zookeeperreceiver/internal/metadata/generated_metrics_test.go b/receiver/zookeeperreceiver/internal/metadata/generated_metrics_test.go index 186d5380a277..962b88438cdb 100644 --- a/receiver/zookeeperreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/zookeeperreceiver/internal/metadata/generated_metrics_test.go @@ -13,30 +13,43 @@ import ( "go.uber.org/zap/zaptest/observer" ) -type testConfigCollection int +type testDataSet int const ( - testSetDefault testConfigCollection = iota - testSetAll - testSetNone + testDataSetDefault testDataSet = iota + testDataSetAll + testDataSetNone ) func TestMetricsBuilder(t *testing.T) { tests := []struct { - name string - configSet testConfigCollection + name string + metricsSet testDataSet + resAttrsSet testDataSet + expectEmpty bool }{ { - name: "default", - configSet: testSetDefault, + name: "default", }, { - name: "all_set", - configSet: testSetAll, + name: "all_set", + metricsSet: testDataSetAll, + resAttrsSet: testDataSetAll, }, { - name: "none_set", - configSet: testSetNone, + name: "none_set", + metricsSet: testDataSetNone, + resAttrsSet: testDataSetNone, + expectEmpty: true, + }, + { + name: "filter_set_include", + resAttrsSet: testDataSetAll, + }, + { + name: "filter_set_exclude", + resAttrsSet: testDataSetAll, + expectEmpty: true, }, } for _, test := range tests { @@ -125,7 +138,7 @@ func TestMetricsBuilder(t *testing.T) { res := rb.Emit() metrics := mb.Emit(WithResource(res)) - if test.configSet == testSetNone { + if test.expectEmpty { assert.Equal(t, 0, metrics.ResourceMetrics().Len()) return } @@ -135,10 +148,10 @@ func TestMetricsBuilder(t *testing.T) { assert.Equal(t, res, rm.Resource()) assert.Equal(t, 1, rm.ScopeMetrics().Len()) ms := rm.ScopeMetrics().At(0).Metrics() - if test.configSet == testSetDefault { + if test.metricsSet == testDataSetDefault { assert.Equal(t, defaultMetricsCount, ms.Len()) } - if test.configSet == testSetAll { + if test.metricsSet == testDataSetAll { assert.Equal(t, allMetricsCount, ms.Len()) } validatedMetrics := make(map[string]bool) diff --git a/receiver/zookeeperreceiver/internal/metadata/testdata/config.yaml b/receiver/zookeeperreceiver/internal/metadata/testdata/config.yaml index feccb696418e..5a232174c8b7 100644 --- a/receiver/zookeeperreceiver/internal/metadata/testdata/config.yaml +++ b/receiver/zookeeperreceiver/internal/metadata/testdata/config.yaml @@ -77,3 +77,23 @@ none_set: enabled: false zk.version: enabled: false +filter_set_include: + resource_attributes: + server.state: + enabled: true + include: + - regexp: ".*" + zk.version: + enabled: true + include: + - regexp: ".*" +filter_set_exclude: + resource_attributes: + server.state: + enabled: true + exclude: + - strict: "server.state-val" + zk.version: + enabled: true + exclude: + - strict: "zk.version-val" diff --git a/testbed/go.mod b/testbed/go.mod index 5b43edfbda11..d2fb26b8efc9 100644 --- a/testbed/go.mod +++ b/testbed/go.mod @@ -33,31 +33,31 @@ require ( github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e github.com/shirou/gopsutil/v3 v3.24.3 github.com/stretchr/testify v1.9.0 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 @@ -215,20 +215,20 @@ require ( github.com/vultr/govultr/v2 v2.17.2 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/config v0.5.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect diff --git a/testbed/go.sum b/testbed/go.sum index 8de4d39c1474..8173d304be28 100644 --- a/testbed/go.sum +++ b/testbed/go.sum @@ -666,86 +666,86 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qK2eIzsR3LdisV6PuI3zEwLlTKIdkINVSBlKXyHjKh0= -go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9 h1:RmPuJSkHPXo8qmT3WeeCOoonytMKeKduHToPug/m9mU= -go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:1+tjgekzCKwexNINVFPiqHS2Ycp9oOXy7JlStJeSOOE= -go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:jWr25FARXUqNYo/wBhv0ZVj4AdCfQVrm89gy+x/eIdU= -go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:puHDdGmv+RJrT87ZJnD5ZRHFKuHGMCjYC3y2xFgGQQE= -go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hNSnXKd0POfvTwv/JeV2ZF8I5XwAsq/wQWBRwlGAM4s= -go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:p1blFoHzxwgGfRxsB1wb3Of/8wQc84GRjnqXo32kdYc= -go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9 h1:5DLVqsCyVJbUD4DgThWOU5M26mAzECVCHQaYl+OciUA= -go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9 h1:AMdY0GYPt/qaiVx18rtNtC3qbySay4UUoDtgCtRWb90= -go.opentelemetry.io/collector/connector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:TRjR9DxaMSjVBcpKnx/qRcbVloipWyw5xD4MHkt8KZA= -go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:9Fqy6apdx8QHpv4dRUlWJnUvG8cwPN5++tnd3hLzdmo= -go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:doXpibyLS65HRBHbq6zIx5KtNZL2tOMKNy+vwZhp6Gs= -go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:HAAyg6ggd7nHDEalLxcMZqk0beL9nixlkOO9n7ITXYc= -go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:qkGfKQUcwGf5arxtmz7rGE95Yq3lgmxJmbnPxjWdTkw= -go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9 h1:XZq/ue6Ypgec94PB1Z5knkzaB+sWoZtkATZUUUMbTso= -go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9 h1:GpBNzf3Vhbd/XO6cFdc5Sjwh2xVKf4kaG8NBY/Xwa0E= -go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:0d4kfJjM4FlfkUvM7zPvEX/ppxKRmanw54ETDs8EKII= -go.opentelemetry.io/collector/processor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:fsuxkVoqDmj9W2Bksad9x9Hs22dL+j7xFG13SldhmeY= -go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9 h1:kKPqu8CFIzJ67/fjN+RU6y4VZ1139CeNtUy0/uEd2PY= -go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:DH4HUfyzt18bFDCYqFNnX1uLN9hT8+2wQtjdrdAS0AY= -go.opentelemetry.io/collector/receiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9 h1:lb1FtE72btVsU8PFv67rTdCF1XSh8eOe2fTPJr7+BHw= -go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9 h1:OjVEW7tcSMOWXzd/NfTUHZBFI3P8JtboV3+7cx4RXgo= -go.opentelemetry.io/collector/semconv v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9 h1:3OeNdQgw7E5MK8lMnx/O+PRF3bpKpmuPoTGjb0E/UKQ= -go.opentelemetry.io/collector/service v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:o7Ebs+0LlTcxuUx4dQQSRXEUz7gzZ41YeHjGjxdW4Jk= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 h1:qJPmHdIhIFIv5fmKskiaxi6JICUjRSVNpSm7VZwhZ00= +go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:t3dxHAzJg5Hk3gd2ViXDte/k+AzR17fe8Qz8j9ZPb9E= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 h1:V6geUJE5lzz9G8w5HYMii4cVWqPkkdvaZnFa+DYLuVE= +go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:3naWoPss70RhDHhYjGACi7xh4NcVRvs9itzIRVWyu1k= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8 h1:GtixkYD9Wh519PAtt3KNj5KH0COoXI4g3qXGUM8G/mo= +go.opentelemetry.io/collector/confmap/converter/expandconverter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:vNMFTWe4dF05LsodUOc84OfxdlYVp1kCMuZzb41WfAk= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:bsq5tzjqP48YL/eaqyeWYl3RGls7Ew3i7mpSfRC/uk8= +go.opentelemetry.io/collector/confmap/provider/envprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BapTGXu7CYrQGNohbapPwTSt2Ty/k/c6Oemx9mSSiK4= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:lg2mQM1Ceuo2f6Jtm9umHXyQfgaWJ3uB9EnW9jj+Hgw= +go.opentelemetry.io/collector/confmap/provider/fileprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DEoB0d0k1iGt4KEABntL8AW9xYQ6E7fmgkM2/s8aXvM= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:UFCWNGNPVqTCeWIHkvvUHItQumKe2TfWGiDbZShMYZ4= +go.opentelemetry.io/collector/confmap/provider/httpprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:dzZKtykJio3Rm+G+Cmr15VV3xKp0PmFuh9Q9b3c1K7A= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:Zll88UqgWIJubBc5j/sYbCIekchqmP4sSb59pcHTrts= +go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:+UrRiugWaQPssz4mgEgQQo640f2bDUCFlo2Xr0/5ulc= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8 h1:RPOsYqoim1BtGSznXtkEcR91htBRAklFPogfbh6D5rg= +go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xrXL804nBum1PgbvmJQ4I+hyW+DU4xBGO3MKMiYFX6E= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8 h1:IoEbaIPO/WwRElJhiJcrpZylj+FtKpZRTvZW2qJ/m6A= +go.opentelemetry.io/collector/connector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:tUEBocvq/27PfFisICD2/PQIe/XwnHLRX2hg/3etXGI= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:3MsO4npa7IDU3qA6v5HO018k4lgCXBG+w6orD0+aHiA= +go.opentelemetry.io/collector/exporter/debugexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:fv0rDNln/ZCmoGed0+3LUd8wxVEhFB0PniGqdBm3/Sg= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:LC/xncZcVlrXT53v4Zjn/loDAPv4ZZo0BcdEiXPaRUY= +go.opentelemetry.io/collector/exporter/otlpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:OklgQTyIK2JMYXFUYX2eGG6otkqN/T1XbpjrvdNk6eQ= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:jf98P0eCiW+L7BmeD4gvYnQwLtAX55kWoZix6P5p7Ko= +go.opentelemetry.io/collector/exporter/otlphttpexporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:0Ihwp/T7nCF8rc3djPFE9bODjwLbp+7mYZnuRx/Y26w= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:lN7cI0B5gkPPbkdwNQQQ3MnatiAUfwU0QCaQVaJDTIY= +go.opentelemetry.io/collector/extension/ballastextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:AKWBGQQrLjbXNOyFItVV+ATeRTSyDpWQ3UEH5thCi2g= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8 h1:ah5mwL8OgC+Ys7DjM45e5EwiFpU70zqOpidFC3GZMjU= +go.opentelemetry.io/collector/extension/zpagesextension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:M+RYsuPvVtbC4FZSOluoQxXHYiNu4z/15LIQR8OXIx8= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8 h1:BJR1qxHdIM9GaHElKK4jxqakxuWzy5LZhVGVA6AfcuQ= +go.opentelemetry.io/collector/otelcol v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:UpNJAH/ODrt87eY42Lll9pad7qrailk5oWkv8thNd0s= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8 h1:FqY91IM5ZKvQxHGMtkKgNPRcB6g5g8cqDIEp/FUUaMM= +go.opentelemetry.io/collector/pdata/testdata v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:HsCqWx+/Nvc6oZzu17rupFQK7ezEXwnd0tkDVASP56U= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8 h1:IkbnZup9EWb2wlVf9MlDcqROJ2FVLRJtGVRQRpRSf5g= +go.opentelemetry.io/collector/processor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:WP4H3qLtrSfH7060X5Jc0cNKEg7hM3OdtsFjyfoqy3c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:wrYPGW1sQW/owI2Sf1z04zDnDOpseqRQ6bpLPV/Gn8c= +go.opentelemetry.io/collector/processor/batchprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Zn1kWcetFnsw5b8Wu9C6aNsOUIAgIjvtmhjpKWBzr0Q= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8 h1:N18zlxxbx0yrDr+p1pwP3nfSZaMvlDHo9s9nlt3tp78= +go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DbKJfm824awQuYBxvsXGkq7YFTHNq0cbM3VH4FJFidM= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:Q0jAc3GO8T786i5duKxKj1Ejzvpf/A72pkgixbjnmqo= +go.opentelemetry.io/collector/receiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Pg23AYct9rfjV1j1EBjTlpKxi5NL9UfAs7VMAQFniGs= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8 h1:rnKqWxo5Sz9izKySK9kVcu3OPwn09HSgShV8vyZqO1s= +go.opentelemetry.io/collector/receiver/otlpreceiver v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:MfM+fFqNht/NTefLb2S4faCjnjS82ePGAIkVkFgBTOk= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8 h1:7zEKnQqXCascqjgjrN/Pzdi1EYulP7kTirfc41dDB5o= +go.opentelemetry.io/collector/semconv v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8 h1:uM0x4qOMcAuEuZfrKuMSRC4VREzjh4vfrmyJxJXQ60k= +go.opentelemetry.io/collector/service v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:PPAwz5q8XzPX5S3fvHzWTqsrCuY4aCEyfGFvBifHLGc= go.opentelemetry.io/contrib/config v0.5.0 h1:7jLbj1losnHOq1rarCVMEDrmkHWixEIJ11pDtT4KrGM= go.opentelemetry.io/contrib/config v0.5.0/go.mod h1:MY6YLx0DzoiCu0ZjnbNiCk+19yN2P0Zj5SkAdEo3Nz8= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 h1:zvpPXY7RfYAGSdYQLjp6zxdJNSYD/+FFoCTQN9IPxBs= diff --git a/testbed/mockdatasenders/mockdatadogagentexporter/go.mod b/testbed/mockdatasenders/mockdatadogagentexporter/go.mod index 64733c024e10..0cdea3ca7b4b 100644 --- a/testbed/mockdatasenders/mockdatadogagentexporter/go.mod +++ b/testbed/mockdatasenders/mockdatadogagentexporter/go.mod @@ -5,11 +5,11 @@ go 1.21 require ( github.com/DataDog/datadog-agent/pkg/trace/exportable v0.0.0-20201016145401-4646cf596b02 github.com/tinylib/msgp v1.1.9 - go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 - go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 + go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 + go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 ) require ( @@ -39,18 +39,18 @@ require ( github.com/prometheus/common v0.52.3 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/rs/cors v1.10.1 // indirect - go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 // indirect - go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 // indirect + go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 // indirect + go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect go.opentelemetry.io/otel/exporters/prometheus v0.47.0 // indirect diff --git a/testbed/mockdatasenders/mockdatadogagentexporter/go.sum b/testbed/mockdatasenders/mockdatadogagentexporter/go.sum index a3ebacbc951a..67402ba8b056 100644 --- a/testbed/mockdatasenders/mockdatadogagentexporter/go.sum +++ b/testbed/mockdatasenders/mockdatadogagentexporter/go.sum @@ -104,40 +104,40 @@ github.com/vmihailenco/tagparser v0.1.1 h1:quXMXlA39OCbd2wAdTsGDlK9RkOk6Wuw+x37w github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= 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 v0.98.1-0.20240416135553-49cc9e05e3a9 h1:8GzxPKG5ps5SDhb+EpMmvbCYn/SaA9immrfkDF8TFUI= -go.opentelemetry.io/collector v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9 h1:BM+XWBVPBjzfsttLw7+CT8M4cIRrGLT37zuOQDoKHxM= -go.opentelemetry.io/collector/component v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:31okhFjpWmb/ddY489FKzEHSNydzoI+DKsgvqn4Pw4g= -go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9 h1:mX2CAbL9KsSeci8y1w0JkpSDxNhFNBejaHuoMrKS5/Y= -go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9 h1:hccrFe9HUoJZkSlvkNoW1lZggxG2aUko96T4gsDZ6ec= -go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9 h1:8Q1y7587J/Ntitu/QTJGxolgaXei2DncH8FfXIPaLOw= -go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:wMa9bXGoPnO+N3JBUZuoKn2OUVQsOLmrWTPMOPOcI4I= -go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9 h1:B+rYoFHOtYsJbH0S+tA+Qz2cTfkeLQCFVl7vOHD4/Tw= -go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9 h1:oUcuE/b45C/DYSZz8TwzSA415/fjZqFdWFZzNXXS7xA= -go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9 h1:c7I0BWI1eyec+c2+1bVZUCoIDz4AL6uTY0doXN1axlU= -go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9 h1:aHKFR+ImqIW4ZV4t74TLjGEUaAYmRd6eQ4YgOo2ybVA= -go.opentelemetry.io/collector/confmap v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9 h1:xsfp1WAIaVOs9uGgpIT5rgxaG7pA/dTxBfGp5VTiXxI= -go.opentelemetry.io/collector/consumer v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9 h1:QC5f1fHle/kMr8UA5+l94urZQLlZOmL0QU5dlRDAqQ0= -go.opentelemetry.io/collector/exporter v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9 h1:LEmgeNhaNJX6BzitknwhgefUlTXDRADPeNuyOvkVEh8= -go.opentelemetry.io/collector/extension v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9 h1:6RCBj7ripmsnZvhBwphTlm4IK+ootqr3cbKx8R9G4Ew= -go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416135553-49cc9e05e3a9/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9 h1:WeQeFkEb9cNboIOJK+0ZEejS7vsLVF91bNXG4XeRyqw= -go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9 h1:jDLhh4acv1/gqYlgSZ6mWiVbKcSp7JcdlFoA1xikuL0= -go.opentelemetry.io/collector/pdata v1.5.1-0.20240416135553-49cc9e05e3a9/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8 h1:yb2vz4uw9P5ZmF04yY1p7sHI+J3IPcbpslu8TlIpyRs= +go.opentelemetry.io/collector v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:1C8p9Ut+hr/W6VWq9340TaLm2QAzwJ78X36ZfiEM69c= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 h1:i2zDUQdn0OGXyN2OozGK4VbX3c3zjA+dCPhykln69No= +go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:Izg+KusBT3lft3t7mvaM5aw7DVusFu/Wxu3edIP7WIA= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 h1:oYH8gmR446jqu85n9s6BXzroBcdBxcGPTwPeod6ht58= +go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:DQZuYx8kSXKtMd8+25AKg2tGvGB+zsFrKIK0gFV+ukU= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 h1:F18LWXvnepXBu0s+JltBOIr36E76bAOBiRJEAdlkEgk= +go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:O0fOPCADyGwGLLIf5lf7N3960NsnIfxsm6dr/mIpL+M= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8 h1:lbUFwRSJW1HoGEU4GQ40zZz+qrBp1Dw5ykSq72MoPIw= +go.opentelemetry.io/collector/config/confighttp v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:mp0VeYMFNcb1i41MPtuHlMK3SBAXwXHiKGy8ms+IIvU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8 h1:DutQpU+mKZBhFZlNm31ilqrnw/R9uRifkAaWQG9r0zU= +go.opentelemetry.io/collector/config/configopaque v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:/otnfj2E8r5EfaAdNV4qHkTclmiBCZXaahV5EcLwT7k= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8 h1:SdqVNuUvI0UP9DdO8h7lbuOkbFD40kRsrO2JQ8kXIxc= +go.opentelemetry.io/collector/config/configretry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:uRdmPeCkrW9Zsadh2WEbQ1AGXGYJ02vCfmmT+0g69nY= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8 h1:BBxMXrsJiODBzCS1lNTIicpDcPY8AuzFcPcZ883lrJo= +go.opentelemetry.io/collector/config/configtelemetry v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:YV5PaOdtnU1xRomPcYqoHmyCr48tnaAREeGO96EZw8o= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 h1:NqEUO1m2Ch6KTNuDWLMwGUtpjdT3g+bF/5Q3Dg4UqrA= +go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:9RHArziz0mNEEkti0kz5LIdvbQGT7/Unu/0whKKazHQ= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8 h1:DZQENcPyZ54vEGotCPHpZzNNVr/JAAkjBAssh0kOyMk= +go.opentelemetry.io/collector/config/internal v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:xPnEE6QaTSXr+ctYMSTBxI2qwTntTUM4cYk7OTm6Ugc= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8 h1:yunI+U/xO4eKSByAeLOqCvsRtyetv97UCT7J4ne9F/I= +go.opentelemetry.io/collector/confmap v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:BWKPIpYeUzSG6ZgCJMjF7xsLvyrvJCfYURl57E5vhiQ= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8 h1:o9L6VnTJh+L2I5RxN9Ha+Cw1TQD9cWgKvSNsZY7bzgk= +go.opentelemetry.io/collector/consumer v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:g2PAf/N0ranGamO6+MzcKRdCXlO+VD4r4Rv8MuecB7o= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8 h1:va+Jg9VDxGyiVdZ9NGBA20/XEUAp9UbRz7H1/nBjzVs= +go.opentelemetry.io/collector/exporter v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:O68zpH06WEPi80cNi6YY5WxRfHL6hunLWM9gbYJNFdg= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8 h1:F2eT29jzCRwESbQpjP9fAyCWoRSAEdm8QF1ysIxP6TI= +go.opentelemetry.io/collector/extension v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:eNflh3V/YJS7MDsn2lALuhYZdhezZnindm7VQnwzAgY= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8 h1:qfA/PMdVEW4NjtSsf71Vf6P0GpPrQoi9GqpFK/bTBv4= +go.opentelemetry.io/collector/extension/auth v0.98.1-0.20240416174005-d0f15e2463f8/go.mod h1:oRCWodXRU3K+BGQ+1Hk2fNi278/DPC+J268OxNipbcw= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8 h1:mzTuFVc1CUQgpGTPmAGSr6pjQ/kq0dSr1ARYNB2qUlo= +go.opentelemetry.io/collector/featuregate v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:w7nUODKxEi3FLf1HslCiE6YWtMtOOrMnSwsDam8Mg9w= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8 h1:HZ6TE3RrqRIfgbr7jEyvaIWsLT3NF1ITAZdw26k/wmo= +go.opentelemetry.io/collector/pdata v1.5.1-0.20240416174005-d0f15e2463f8/go.mod h1:pQv6AJO6wDUDxrPxhNaj3JdSzaOIo5glTGL1b4h4KTg= go.opentelemetry.io/collector/pdata/testdata v0.98.0 h1:8gohV+LFXqMzuDwfOOQy9GcZBOX0C9xGoQkoeXFTzmI= go.opentelemetry.io/collector/pdata/testdata v0.98.0/go.mod h1:B/IaHcf6+RtxI292CZu9TjfYQdi1n4+v6b8rHEonpKs= go.opentelemetry.io/collector/receiver v0.98.0 h1:qw6JYwm+sHcZvM1DByo3QlGe6yGHuwd0yW4hEPVqYKU= From c5d1d595d5285a8b020bacf6a24557bafb7b689d Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Tue, 16 Apr 2024 13:20:39 -0700 Subject: [PATCH 2/8] [chore][receiver/awscontainerinsight] Enable goleak check (#32462) **Description:** Enable `goleak` checks to help ensure no goroutines are being leaked. This is a test only change. **Link to tracking Issue:** #30438 **Testing:** All existing tests are passing, as well as added `goleak` check. --- .../awscontainerinsightreceiver/package_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 receiver/awscontainerinsightreceiver/package_test.go diff --git a/receiver/awscontainerinsightreceiver/package_test.go b/receiver/awscontainerinsightreceiver/package_test.go new file mode 100644 index 000000000000..3f1ba4c569dd --- /dev/null +++ b/receiver/awscontainerinsightreceiver/package_test.go @@ -0,0 +1,14 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package awscontainerinsightreceiver + +import ( + "testing" + + "go.uber.org/goleak" +) + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m) +} From 39bdda737e60cbaa69de3dc63f77db733904c77f Mon Sep 17 00:00:00 2001 From: Steven Swartz Date: Tue, 16 Apr 2024 16:29:49 -0400 Subject: [PATCH 3/8] [connector/spanmetrics] Discard counter span metric exemplars after flushing (#32210) **Description:** Discard counter span metric exemplars after flushing to avoid unbounded memory growth when exemplars are enabled. This is needed because #28671 added exemplars to counter span metrics, but they are not removed after each flush interval like they are for histogram span metrics. Note: this may change behaviour if using the undocumented `exemplars.max_per_data_point` configuration option, since exemplars would no longer be accumulated up until that count. However, i'm unclear on the value of that feature since there's no mechanism to replace old exemplars with newer ones once the maximum is reached. Maybe a follow-up enhancement is only discarding exemplars once the maximum is reached, or using a circular buffer to replace them. That could be useful for pull-based exporters like `prometheusexporter`, as retaining exemplars for longer would decrease the chance of them getting discarded before being scraped. **Link to tracking Issue:** Closes #31683 **Testing:** - Unit tests - Running the collector and setting a breakpoint to verify the exemplars are being cleared in-between flushes. Before the change I could see the exemplar count continually growing **Documentation:** Updated the documentation to mention that exemplars are added to all span metrics. Also mentioned when they are discarded --- .../span-metric-exemplar-memory-leak.yaml | 27 +++++ connector/spanmetricsconnector/README.md | 4 +- connector/spanmetricsconnector/connector.go | 12 +- .../spanmetricsconnector/connector_test.go | 114 ++++++++++++++++-- .../internal/metrics/metrics.go | 30 ++--- 5 files changed, 151 insertions(+), 36 deletions(-) create mode 100644 .chloggen/span-metric-exemplar-memory-leak.yaml diff --git a/.chloggen/span-metric-exemplar-memory-leak.yaml b/.chloggen/span-metric-exemplar-memory-leak.yaml new file mode 100644 index 000000000000..4137ace3f2c9 --- /dev/null +++ b/.chloggen/span-metric-exemplar-memory-leak.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: bug_fix + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: spanmetrics + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Discard counter span metric exemplars after each flush interval to avoid unbounded memory growth + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [31683] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: This aligns exemplar discarding for counter span metrics with the existing logic for histogram span metrics + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/connector/spanmetricsconnector/README.md b/connector/spanmetricsconnector/README.md index 51ac04d98c89..4f431dfcf139 100644 --- a/connector/spanmetricsconnector/README.md +++ b/connector/spanmetricsconnector/README.md @@ -114,8 +114,8 @@ The following settings can be optionally configured: - `namespace`: Defines the namespace of the generated metrics. If `namespace` provided, generated metric name will be added `namespace.` prefix. - `metrics_flush_interval` (default: `60s`): Defines the flush interval of the generated metrics. - `metrics_expiration` (default: `0`): Defines the expiration time as `time.Duration`, after which, if no new spans are received, metrics will no longer be exported. Setting to `0` means the metrics will never expire (default behavior). -- `exemplars`: Use to configure how to attach exemplars to histograms - - `enabled` (default: `false`): enabling will add spans as Exemplars. +- `exemplars`: Use to configure how to attach exemplars to metrics. + - `enabled` (default: `false`): enabling will add spans as Exemplars to all metrics. Exemplars are only kept for one flush interval. - `events`: Use to configure the events metric. - `enabled`: (default: `false`): enabling will add the events metric. - `dimensions`: (mandatory if `enabled`) the list of the span's event attributes to add as dimensions to the events metric, which will be included _on top of_ the common and configured `dimensions` for span and resource attributes. diff --git a/connector/spanmetricsconnector/connector.go b/connector/spanmetricsconnector/connector.go index 702c1f7319b4..3fab7d119452 100644 --- a/connector/spanmetricsconnector/connector.go +++ b/connector/spanmetricsconnector/connector.go @@ -291,17 +291,21 @@ func (p *connectorImp) resetState() { p.resourceMetrics.RemoveEvictedItems() p.metricKeyToDimensions.RemoveEvictedItems() - // If no histogram and no metrics expiration is configured, we can skip the remaining operations. + // If none of these features are enabled then we can skip the remaining operations. // Enabling either of these features requires to go over resource metrics and do operation on each. - if p.config.Histogram.Disable && p.config.MetricsExpiration == 0 { + if p.config.Histogram.Disable && p.config.MetricsExpiration == 0 && !p.config.Exemplars.Enabled { return } now := time.Now() p.resourceMetrics.ForEach(func(k resourceKey, m *resourceMetrics) { // Exemplars are only relevant to this batch of traces, so must be cleared within the lock - if !p.config.Histogram.Disable { - m.histograms.Reset(true) + if p.config.Exemplars.Enabled { + m.sums.ClearExemplars() + m.events.ClearExemplars() + if !p.config.Histogram.Disable { + m.histograms.ClearExemplars() + } } // If metrics expiration is configured, remove metrics that haven't been seen for longer than the expiration period. diff --git a/connector/spanmetricsconnector/connector_test.go b/connector/spanmetricsconnector/connector_test.go index 669e14be02b2..eae39cda1e0a 100644 --- a/connector/spanmetricsconnector/connector_test.go +++ b/connector/spanmetricsconnector/connector_test.go @@ -1519,18 +1519,89 @@ func TestSpanMetrics_Events(t *testing.T) { }) } } -func TestExemplarsForSumMetrics(t *testing.T) { - p, _, err := newConnectorImp(stringp("defaultNullValue"), explicitHistogramsConfig, enabledExemplarsConfig, enabledEventsConfig, cumulative, 0, []string{}) - require.NoError(t, err) - traces := buildSampleTrace() +func TestExemplarsAreDiscardedAfterFlushing(t *testing.T) { + tests := []struct { + name string + temporality string + histogramConfig func() HistogramConfig + }{ + { + name: "cumulative explicit histogram", + temporality: cumulative, + histogramConfig: explicitHistogramsConfig, + }, + { + name: "cumulative exponential histogram", + temporality: cumulative, + histogramConfig: exponentialHistogramsConfig, + }, + { + name: "delta explicit histogram", + temporality: delta, + histogramConfig: explicitHistogramsConfig, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + p, _, err := newConnectorImp(stringp("defaultNullValue"), tt.histogramConfig, enabledExemplarsConfig, enabledEventsConfig, tt.temporality, 0, []string{}) + p.metricsConsumer = &consumertest.MetricsSink{} + require.NoError(t, err) - // Test - ctx := metadata.NewIncomingContext(context.Background(), nil) + traces := ptrace.NewTraces() + trace1ID := [16]byte{0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x10} + initServiceSpans( + serviceSpans{ + serviceName: "service-b", + spans: []span{ + { + name: "/ping", + kind: ptrace.SpanKindServer, + statusCode: ptrace.StatusCodeError, + traceID: trace1ID, + spanID: [8]byte{0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}, + }, + }, + }, traces.ResourceSpans().AppendEmpty()) - err = p.ConsumeTraces(ctx, traces) - require.NoError(t, err) - metrics := p.buildMetrics() + // Test + ctx := metadata.NewIncomingContext(context.Background(), nil) + + // Verify exactly 1 exemplar is added to all data points when flushing + err = p.ConsumeTraces(ctx, traces) + require.NoError(t, err) + + p.exportMetrics(ctx) + m := p.metricsConsumer.(*consumertest.MetricsSink).AllMetrics()[0] + assertDataPointsHaveExactlyOneExemplarForTrace(t, m, trace1ID) + + // Verify exemplars from previous batch's trace are replaced with exemplars for the new batch's trace + traces = ptrace.NewTraces() + trace2ID := [16]byte{0x00, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x10} + initServiceSpans( + serviceSpans{ + serviceName: "service-b", + spans: []span{ + { + name: "/ping", + kind: ptrace.SpanKindServer, + statusCode: ptrace.StatusCodeError, + traceID: trace2ID, + spanID: [8]byte{0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}, + }, + }, + }, traces.ResourceSpans().AppendEmpty()) + + err = p.ConsumeTraces(ctx, traces) + require.NoError(t, err) + + p.exportMetrics(ctx) + m = p.metricsConsumer.(*consumertest.MetricsSink).AllMetrics()[1] + assertDataPointsHaveExactlyOneExemplarForTrace(t, m, trace2ID) + }) + } +} +func assertDataPointsHaveExactlyOneExemplarForTrace(t *testing.T, metrics pmetric.Metrics, traceID pcommon.TraceID) { for i := 0; i < metrics.ResourceMetrics().Len(); i++ { rm := metrics.ResourceMetrics().At(i) ism := rm.ScopeMetrics() @@ -1539,12 +1610,33 @@ func TestExemplarsForSumMetrics(t *testing.T) { m := ism.At(ilmC).Metrics() for mC := 0; mC < m.Len(); mC++ { metric := m.At(mC) - if metric.Type() == pmetric.MetricTypeSum { + switch metric.Type() { + case pmetric.MetricTypeSum: dps := metric.Sum().DataPoints() + assert.Greater(t, dps.Len(), 0) + for dpi := 0; dpi < dps.Len(); dpi++ { + dp := dps.At(dpi) + assert.Equal(t, dp.Exemplars().Len(), 1) + assert.Equal(t, dp.Exemplars().At(0).TraceID(), traceID) + } + case pmetric.MetricTypeHistogram: + dps := metric.Histogram().DataPoints() + assert.Greater(t, dps.Len(), 0) + for dpi := 0; dpi < dps.Len(); dpi++ { + dp := dps.At(dpi) + assert.Equal(t, dp.Exemplars().Len(), 1) + assert.Equal(t, dp.Exemplars().At(0).TraceID(), traceID) + } + case pmetric.MetricTypeExponentialHistogram: + dps := metric.ExponentialHistogram().DataPoints() + assert.Greater(t, dps.Len(), 0) for dpi := 0; dpi < dps.Len(); dpi++ { dp := dps.At(dpi) - assert.Greater(t, dp.Exemplars().Len(), 0) + assert.Equal(t, dp.Exemplars().Len(), 1) + assert.Equal(t, dp.Exemplars().At(0).TraceID(), traceID) } + default: + t.Fatalf("Unexpected metric type %s", metric.Type()) } } } diff --git a/connector/spanmetricsconnector/internal/metrics/metrics.go b/connector/spanmetricsconnector/internal/metrics/metrics.go index 456c0bed5d04..b9ec433c6e13 100644 --- a/connector/spanmetricsconnector/internal/metrics/metrics.go +++ b/connector/spanmetricsconnector/internal/metrics/metrics.go @@ -17,7 +17,7 @@ type Key string type HistogramMetrics interface { GetOrCreate(key Key, attributes pcommon.Map) Histogram BuildMetrics(pmetric.Metric, pcommon.Timestamp, pmetric.AggregationTemporality) - Reset(onlyExemplars bool) + ClearExemplars() } type Histogram interface { @@ -116,15 +116,10 @@ func (m *explicitHistogramMetrics) BuildMetrics( } } -func (m *explicitHistogramMetrics) Reset(onlyExemplars bool) { - if onlyExemplars { - for _, h := range m.metrics { - h.exemplars = pmetric.NewExemplarSlice() - } - return +func (m *explicitHistogramMetrics) ClearExemplars() { + for _, h := range m.metrics { + h.exemplars = pmetric.NewExemplarSlice() } - - m.metrics = make(map[Key]*explicitHistogram) } func (m *exponentialHistogramMetrics) GetOrCreate(key Key, attributes pcommon.Map) Histogram { @@ -202,15 +197,10 @@ func expoHistToExponentialDataPoint(agg *structure.Histogram[float64], dp pmetri } } -func (m *exponentialHistogramMetrics) Reset(onlyExemplars bool) { - if onlyExemplars { - for _, m := range m.metrics { - m.exemplars = pmetric.NewExemplarSlice() - } - return +func (m *exponentialHistogramMetrics) ClearExemplars() { + for _, m := range m.metrics { + m.exemplars = pmetric.NewExemplarSlice() } - - m.metrics = make(map[Key]*exponentialHistogram) } func (h *explicitHistogram) Observe(value float64) { @@ -316,6 +306,8 @@ func (m *SumMetrics) BuildMetrics( } } -func (m *SumMetrics) Reset() { - m.metrics = make(map[Key]*Sum) +func (m *SumMetrics) ClearExemplars() { + for _, sum := range m.metrics { + sum.exemplars = pmetric.NewExemplarSlice() + } } From 42857424f0cfba4dce72d1811611bd2fce6d7b5a Mon Sep 17 00:00:00 2001 From: Joshua MacDonald Date: Tue, 16 Apr 2024 13:30:04 -0700 Subject: [PATCH 4/8] Add jmacd@ as owner of probabilisticsamplerprocessor (#32461) **Description:** This component has only one maintainer, and I have become very familiar with the component's code. https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32360 https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/31946 https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/31894 **Documentation:** n/a --- .github/CODEOWNERS | 2 +- processor/probabilisticsamplerprocessor/README.md | 2 +- processor/probabilisticsamplerprocessor/metadata.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e0db1c3d7417..e701e0b68514 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -167,7 +167,7 @@ processor/k8sattributesprocessor/ @open-telemetry/collect processor/logstransformprocessor/ @open-telemetry/collector-contrib-approvers @djaglowski @dehaansa processor/metricsgenerationprocessor/ @open-telemetry/collector-contrib-approvers @Aneurysm9 processor/metricstransformprocessor/ @open-telemetry/collector-contrib-approvers @dmitryax -processor/probabilisticsamplerprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling +processor/probabilisticsamplerprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling @jmacd processor/redactionprocessor/ @open-telemetry/collector-contrib-approvers @dmitryax @mx-psi @TylerHelmuth processor/remotetapprocessor/ @open-telemetry/collector-contrib-approvers @atoulme processor/resourcedetectionprocessor/ @open-telemetry/collector-contrib-approvers @Aneurysm9 @dashpole diff --git a/processor/probabilisticsamplerprocessor/README.md b/processor/probabilisticsamplerprocessor/README.md index 324408561f03..ae015aae08b1 100644 --- a/processor/probabilisticsamplerprocessor/README.md +++ b/processor/probabilisticsamplerprocessor/README.md @@ -7,7 +7,7 @@ | | [beta]: traces | | Distributions | [core], [contrib] | | Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Aprocessor%2Fprobabilisticsampler%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aprocessor%2Fprobabilisticsampler) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Aprocessor%2Fprobabilisticsampler%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aprocessor%2Fprobabilisticsampler) | -| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@jpkrohling](https://www.github.com/jpkrohling) | +| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@jpkrohling](https://www.github.com/jpkrohling), [@jmacd](https://www.github.com/jmacd) | [alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha [beta]: https://github.com/open-telemetry/opentelemetry-collector#beta diff --git a/processor/probabilisticsamplerprocessor/metadata.yaml b/processor/probabilisticsamplerprocessor/metadata.yaml index a0dbfbe29b9d..9dd9eb3a8760 100644 --- a/processor/probabilisticsamplerprocessor/metadata.yaml +++ b/processor/probabilisticsamplerprocessor/metadata.yaml @@ -8,7 +8,7 @@ status: alpha: [logs] distributions: [core, contrib] codeowners: - active: [jpkrohling] + active: [jpkrohling, jmacd] tests: config: From 291dc04991c14696c81df88675e569c04a8a2323 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 13:30:34 -0700 Subject: [PATCH 5/8] Update module github.com/open-telemetry/otel-arrow/collector to v0.21.0 (#32432) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/open-telemetry/otel-arrow/collector](https://togithub.com/open-telemetry/otel-arrow) | `v0.20.0` -> `v0.21.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-telemetry%2fotel-arrow%2fcollector/v0.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-telemetry%2fotel-arrow%2fcollector/v0.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-telemetry%2fotel-arrow%2fcollector/v0.20.0/v0.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-telemetry%2fotel-arrow%2fcollector/v0.20.0/v0.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
open-telemetry/otel-arrow (github.com/open-telemetry/otel-arrow/collector) ### [`v0.21.0`](https://togithub.com/open-telemetry/otel-arrow/releases/tag/v0.21.0) [Compare Source](https://togithub.com/open-telemetry/otel-arrow/compare/v0.20.0...v0.21.0) See the [CHANGELOG](https://togithub.com/open-telemetry/otel-arrow/blob/main/CHANGELOG.md).
--- ### Configuration πŸ“… **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> --- exporter/otelarrowexporter/go.mod | 2 +- exporter/otelarrowexporter/go.sum | 4 ++-- receiver/otelarrowreceiver/go.mod | 2 +- receiver/otelarrowreceiver/go.sum | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exporter/otelarrowexporter/go.mod b/exporter/otelarrowexporter/go.mod index bc98044c5c98..cec129af3222 100644 --- a/exporter/otelarrowexporter/go.mod +++ b/exporter/otelarrowexporter/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/open-telemetry/otel-arrow v0.18.0 - github.com/open-telemetry/otel-arrow/collector v0.20.0 + github.com/open-telemetry/otel-arrow/collector v0.21.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/collector/config/configauth v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/exporter/otelarrowexporter/go.sum b/exporter/otelarrowexporter/go.sum index f3303523b3e4..cf4794e10ded 100644 --- a/exporter/otelarrowexporter/go.sum +++ b/exporter/otelarrowexporter/go.sum @@ -64,8 +64,8 @@ github.com/mostynb/go-grpc-compression v1.2.2 h1:XaDbnRvt2+1vgr0b/l0qh4mJAfIxE0b github.com/mostynb/go-grpc-compression v1.2.2/go.mod h1:GOCr2KBxXcblCuczg3YdLQlcin1/NfyDA348ckuCH6w= github.com/open-telemetry/otel-arrow v0.18.0 h1:v3KH1HIpdXRy+V5awAmn2M+uthbE52Qi7svBYSweASI= github.com/open-telemetry/otel-arrow v0.18.0/go.mod h1:054cuTUlLVHH6Y//65bEPeMiHjYRs7DiX/el+yQbgYg= -github.com/open-telemetry/otel-arrow/collector v0.20.0 h1:DWo3OK2kvmGXcgoTc7dRBrADuwu0PKX31KcG/q7fElk= -github.com/open-telemetry/otel-arrow/collector v0.20.0/go.mod h1:MDDGj7VCOA6ya0d+xbPneynT5gC7TCHV3vVeXDEo41g= +github.com/open-telemetry/otel-arrow/collector v0.21.0 h1:Zenyy3trGpwgpCrNG+SOOY4rFcDdAWntURMRLe30jz0= +github.com/open-telemetry/otel-arrow/collector v0.21.0/go.mod h1:7C68tM7TET9pBAKEvIR5wT+rTMv8ns7+0YOgHw73qtQ= github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= github.com/pierrec/lz4/v4 v4.1.18 h1:xaKrnTkyoqfh1YItXl56+6KJNVYWlEEPuAQW9xsplYQ= github.com/pierrec/lz4/v4 v4.1.18/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= diff --git a/receiver/otelarrowreceiver/go.mod b/receiver/otelarrowreceiver/go.mod index eafe5ba52806..e46c330798b3 100644 --- a/receiver/otelarrowreceiver/go.mod +++ b/receiver/otelarrowreceiver/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.98.0 github.com/open-telemetry/otel-arrow v0.18.0 - github.com/open-telemetry/otel-arrow/collector v0.20.0 + github.com/open-telemetry/otel-arrow/collector v0.21.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/collector/config/configgrpc v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/receiver/otelarrowreceiver/go.sum b/receiver/otelarrowreceiver/go.sum index a2dba1ddbd39..cd34249a9e84 100644 --- a/receiver/otelarrowreceiver/go.sum +++ b/receiver/otelarrowreceiver/go.sum @@ -84,8 +84,8 @@ github.com/mostynb/go-grpc-compression v1.2.2/go.mod h1:GOCr2KBxXcblCuczg3YdLQlc github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/open-telemetry/otel-arrow v0.18.0 h1:v3KH1HIpdXRy+V5awAmn2M+uthbE52Qi7svBYSweASI= github.com/open-telemetry/otel-arrow v0.18.0/go.mod h1:054cuTUlLVHH6Y//65bEPeMiHjYRs7DiX/el+yQbgYg= -github.com/open-telemetry/otel-arrow/collector v0.20.0 h1:DWo3OK2kvmGXcgoTc7dRBrADuwu0PKX31KcG/q7fElk= -github.com/open-telemetry/otel-arrow/collector v0.20.0/go.mod h1:MDDGj7VCOA6ya0d+xbPneynT5gC7TCHV3vVeXDEo41g= +github.com/open-telemetry/otel-arrow/collector v0.21.0 h1:Zenyy3trGpwgpCrNG+SOOY4rFcDdAWntURMRLe30jz0= +github.com/open-telemetry/otel-arrow/collector v0.21.0/go.mod h1:7C68tM7TET9pBAKEvIR5wT+rTMv8ns7+0YOgHw73qtQ= github.com/pierrec/lz4/v4 v4.1.18 h1:xaKrnTkyoqfh1YItXl56+6KJNVYWlEEPuAQW9xsplYQ= github.com/pierrec/lz4/v4 v4.1.18/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= From e07b7138c689407b4ba396922e9a844246186960 Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Tue, 16 Apr 2024 13:31:38 -0700 Subject: [PATCH 6/8] [chore][receiver/oracledb] Add required permissions to README (#32389) **Description:** An additional permission is now required in some cases of running the Oracle DB receiver, as a result of https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32028. We should document it in the README. I also upgraded this change to a breaking change to make it clear to users that new permissions are needed. **Link to tracking Issue:** Resolves https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/32373 --- CHANGELOG.md | 4 +++- receiver/oracledbreceiver/README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 513843813afa..55bcbc3978b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `receiver/dockerstats`: Remove stable receiver.dockerstats.useScraperV2 feature gate. (#31999) - `awsxrayexporter`: change x-ray exporter's translator to make "." split annotation pass as-is (#31732) In the past, X-Ray doesn’t support β€œ.”. So we have a translator in x-ray export to translates it to β€œ_” before sending traces to X-Ray Service. | To match otel naming style, x-ray service team decide to change their service to support both "." type and "" type of naming. In this case the translator that translate "." to "" is no-longer needed. This PR change the way this translator work | X-Ray PMs agree on rolling out this change by using feature-gate +- `oracledbreceiver`: Fix incorrect values being set for oracledb.tablespace_size.limit and oracledb.tablespace_size.usage (#31451) + Please grant the `DBA_TABLESPACE_USAGE_METRICS` permission to the user connecting to the Oracle DB instance to ensure all enabled + metrics are properly ingested. ### 🚩 Deprecations 🚩 @@ -85,7 +88,6 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `jmxreceiver`: Fix memory leak during component shutdown (#32289) - `k8sobjectsreceiver`: Fix memory leak caused by the pull mode's interval ticker (#31919) - `kafkareceiver`: fix kafka receiver panic on shutdown (#31926) -- `oracledbreceiver`: Fix incorrect values being set for oracledb.tablespace_size.limit and oracledb.tablespace_size.usage (#31451) - `prometheusreceiver`: Fix a bug where a new prometheus receiver with the same name cannot be created after the previous receiver is Shutdown (#32123) - `resourcedetectionprocessor`: Only attempt to detect Kubernetes node resource attributes when they're enabled. (#31941) - `syslogreceiver`: Fix issue where static resource and attributes were ignored (#31849) diff --git a/receiver/oracledbreceiver/README.md b/receiver/oracledbreceiver/README.md index 5ab7f4bf94f5..85b74945e072 100644 --- a/receiver/oracledbreceiver/README.md +++ b/receiver/oracledbreceiver/README.md @@ -63,6 +63,7 @@ GRANT SELECT ON V_$SYSSTAT TO ; GRANT SELECT ON V_$RESOURCE_LIMIT TO ; GRANT SELECT ON DBA_TABLESPACES TO ; GRANT SELECT ON DBA_DATA_FILES TO ; +GRANT SELECT ON DBA_TABLESPACE_USAGE_METRICS TO ; ``` ## Enabling metrics. From 138297292bf4532e7b0e15a2515d44625ca164e3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:07:07 -0700 Subject: [PATCH 7/8] Update module github.com/aws/aws-sdk-go to v1.51.22 (#32463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/aws/aws-sdk-go](https://togithub.com/aws/aws-sdk-go) | `v1.51.21` -> `v1.51.22` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2faws%2faws-sdk-go/v1.51.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2faws%2faws-sdk-go/v1.51.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2faws%2faws-sdk-go/v1.51.21/v1.51.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2faws%2faws-sdk-go/v1.51.21/v1.51.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
aws/aws-sdk-go (github.com/aws/aws-sdk-go) ### [`v1.51.22`](https://togithub.com/aws/aws-sdk-go/blob/HEAD/CHANGELOG.md#Release-v15122-2024-04-16) \=== ##### Service Client Updates - `service/bedrock-agent`: Updates service API and documentation - `service/emr-serverless`: Updates service API and documentation - `service/entityresolution`: Updates service API, documentation, and paginators - `service/iotwireless`: Updates service API and documentation - `service/lakeformation`: Updates service API and documentation - `service/m2`: Updates service API and documentation - `service/mediapackagev2`: Updates service API and documentation - `service/outposts`: Updates service API, documentation, and paginators - `service/wellarchitected`: Updates service API and documentation
--- ### Configuration πŸ“… **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> --- cmd/configschema/go.mod | 2 +- cmd/configschema/go.sum | 4 ++-- cmd/otelcontribcol/go.mod | 2 +- cmd/otelcontribcol/go.sum | 4 ++-- connector/datadogconnector/go.mod | 2 +- connector/datadogconnector/go.sum | 4 ++-- exporter/awscloudwatchlogsexporter/go.mod | 2 +- exporter/awscloudwatchlogsexporter/go.sum | 4 ++-- exporter/awsemfexporter/go.mod | 2 +- exporter/awsemfexporter/go.sum | 4 ++-- exporter/awss3exporter/go.mod | 2 +- exporter/awss3exporter/go.sum | 4 ++-- exporter/awsxrayexporter/go.mod | 2 +- exporter/awsxrayexporter/go.sum | 4 ++-- exporter/datadogexporter/go.mod | 2 +- exporter/datadogexporter/go.sum | 4 ++-- exporter/datadogexporter/integrationtest/go.mod | 2 +- exporter/datadogexporter/integrationtest/go.sum | 4 ++-- exporter/kafkaexporter/go.mod | 2 +- exporter/kafkaexporter/go.sum | 4 ++-- extension/awsproxy/go.mod | 2 +- extension/awsproxy/go.sum | 4 ++-- extension/observer/ecsobserver/go.mod | 2 +- extension/observer/ecsobserver/go.sum | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- internal/aws/awsutil/go.mod | 2 +- internal/aws/awsutil/go.sum | 4 ++-- internal/aws/cwlogs/go.mod | 2 +- internal/aws/cwlogs/go.sum | 4 ++-- internal/aws/k8s/go.mod | 2 +- internal/aws/k8s/go.sum | 4 ++-- internal/aws/proxy/go.mod | 2 +- internal/aws/proxy/go.sum | 4 ++-- internal/aws/xray/go.mod | 2 +- internal/aws/xray/go.sum | 4 ++-- internal/aws/xray/testdata/sampleapp/go.mod | 2 +- internal/aws/xray/testdata/sampleapp/go.sum | 4 ++-- internal/kafka/go.mod | 2 +- internal/kafka/go.sum | 4 ++-- internal/metadataproviders/go.mod | 2 +- internal/metadataproviders/go.sum | 4 ++-- processor/resourcedetectionprocessor/go.mod | 2 +- processor/resourcedetectionprocessor/go.sum | 4 ++-- receiver/awscloudwatchreceiver/go.mod | 2 +- receiver/awscloudwatchreceiver/go.sum | 4 ++-- receiver/awscontainerinsightreceiver/go.mod | 2 +- receiver/awscontainerinsightreceiver/go.sum | 4 ++-- receiver/awsecscontainermetricsreceiver/go.mod | 2 +- receiver/awsecscontainermetricsreceiver/go.sum | 4 ++-- receiver/awsxrayreceiver/go.mod | 2 +- receiver/awsxrayreceiver/go.sum | 4 ++-- receiver/kafkametricsreceiver/go.mod | 2 +- receiver/kafkametricsreceiver/go.sum | 4 ++-- receiver/kafkareceiver/go.mod | 2 +- receiver/kafkareceiver/go.sum | 4 ++-- 56 files changed, 84 insertions(+), 84 deletions(-) diff --git a/cmd/configschema/go.mod b/cmd/configschema/go.mod index 50f5ed70a646..045387197164 100644 --- a/cmd/configschema/go.mod +++ b/cmd/configschema/go.mod @@ -258,7 +258,7 @@ require ( github.com/apache/thrift v0.20.0 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect github.com/armon/go-metrics v0.4.1 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect diff --git a/cmd/configschema/go.sum b/cmd/configschema/go.sum index 3c704a928e77..8aa17f580ebe 100644 --- a/cmd/configschema/go.sum +++ b/cmd/configschema/go.sum @@ -328,8 +328,8 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.44.263/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.17.7/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= diff --git a/cmd/otelcontribcol/go.mod b/cmd/otelcontribcol/go.mod index 81f624be0f3e..87aa40cc39f5 100644 --- a/cmd/otelcontribcol/go.mod +++ b/cmd/otelcontribcol/go.mod @@ -312,7 +312,7 @@ require ( github.com/apache/thrift v0.20.0 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect github.com/armon/go-metrics v0.4.1 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect diff --git a/cmd/otelcontribcol/go.sum b/cmd/otelcontribcol/go.sum index e4418dc94b53..ebb19c65eb36 100644 --- a/cmd/otelcontribcol/go.sum +++ b/cmd/otelcontribcol/go.sum @@ -327,8 +327,8 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.44.263/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.17.7/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= diff --git a/connector/datadogconnector/go.mod b/connector/datadogconnector/go.mod index 38c69162e2b8..da2733f31ade 100644 --- a/connector/datadogconnector/go.mod +++ b/connector/datadogconnector/go.mod @@ -53,7 +53,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.22.0 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect github.com/alecthomas/participle/v2 v2.1.1 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cenkalti/backoff v2.2.1+incompatible // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect diff --git a/connector/datadogconnector/go.sum b/connector/datadogconnector/go.sum index d3468473b887..f1bee0a623c1 100644 --- a/connector/datadogconnector/go.sum +++ b/connector/datadogconnector/go.sum @@ -111,8 +111,8 @@ github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9/go.mod h1:OMCwj8V github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= diff --git a/exporter/awscloudwatchlogsexporter/go.mod b/exporter/awscloudwatchlogsexporter/go.mod index 0069bdb062b6..42ed4b86624a 100644 --- a/exporter/awscloudwatchlogsexporter/go.mod +++ b/exporter/awscloudwatchlogsexporter/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsclo go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/cenkalti/backoff/v4 v4.3.0 github.com/google/uuid v1.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 diff --git a/exporter/awscloudwatchlogsexporter/go.sum b/exporter/awscloudwatchlogsexporter/go.sum index e5f94a50e9ca..d4dfe5e31a5a 100644 --- a/exporter/awscloudwatchlogsexporter/go.sum +++ b/exporter/awscloudwatchlogsexporter/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/exporter/awsemfexporter/go.mod b/exporter/awsemfexporter/go.mod index 33eacbd704f9..6e9746829308 100644 --- a/exporter/awsemfexporter/go.mod +++ b/exporter/awsemfexporter/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemf go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/google/uuid v1.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/cwlogs v0.98.0 diff --git a/exporter/awsemfexporter/go.sum b/exporter/awsemfexporter/go.sum index d33a137c4dbe..1a562b13131f 100644 --- a/exporter/awsemfexporter/go.sum +++ b/exporter/awsemfexporter/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/exporter/awss3exporter/go.mod b/exporter/awss3exporter/go.mod index 77199e3449e5..550506c18d73 100644 --- a/exporter/awss3exporter/go.mod +++ b/exporter/awss3exporter/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awss3e go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.opentelemetry.io/collector/config/configcompression v1.5.1-0.20240416174005-d0f15e2463f8 diff --git a/exporter/awss3exporter/go.sum b/exporter/awss3exporter/go.sum index 6ee9374ba985..cd082059065f 100644 --- a/exporter/awss3exporter/go.sum +++ b/exporter/awss3exporter/go.sum @@ -1,7 +1,7 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/exporter/awsxrayexporter/go.mod b/exporter/awsxrayexporter/go.mod index 308d5267a200..4a7efed3e255 100644 --- a/exporter/awsxrayexporter/go.mod +++ b/exporter/awsxrayexporter/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxra go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/xray v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0 diff --git a/exporter/awsxrayexporter/go.sum b/exporter/awsxrayexporter/go.sum index 8e15a1679ba4..63cd78dbcf7d 100644 --- a/exporter/awsxrayexporter/go.sum +++ b/exporter/awsxrayexporter/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/exporter/datadogexporter/go.mod b/exporter/datadogexporter/go.mod index df4c1d3c4421..bd14bccf086b 100644 --- a/exporter/datadogexporter/go.mod +++ b/exporter/datadogexporter/go.mod @@ -16,7 +16,7 @@ require ( github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.13.4 github.com/DataDog/sketches-go v1.4.4 github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.22.0 - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/cenkalti/backoff/v4 v4.3.0 github.com/google/go-cmp v0.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/connector/datadogconnector v0.98.0 diff --git a/exporter/datadogexporter/go.sum b/exporter/datadogexporter/go.sum index ce67a4d031e9..f7e3b3f2355e 100644 --- a/exporter/datadogexporter/go.sum +++ b/exporter/datadogexporter/go.sum @@ -142,8 +142,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 h1:6df1vn4bBlDDo4tARvBm7l6KA9iVMnE3NWizDeWSrps= github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3/go.mod h1:CIWtjkly68+yqLPbvwwR/fjNJA/idrtULjZWh2v1ys0= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/exporter/datadogexporter/integrationtest/go.mod b/exporter/datadogexporter/integrationtest/go.mod index a85cc0c89cf1..571208306ee9 100644 --- a/exporter/datadogexporter/integrationtest/go.mod +++ b/exporter/datadogexporter/integrationtest/go.mod @@ -52,7 +52,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.22.0 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect github.com/alecthomas/participle/v2 v2.1.1 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cenkalti/backoff v2.2.1+incompatible // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect diff --git a/exporter/datadogexporter/integrationtest/go.sum b/exporter/datadogexporter/integrationtest/go.sum index d3468473b887..f1bee0a623c1 100644 --- a/exporter/datadogexporter/integrationtest/go.sum +++ b/exporter/datadogexporter/integrationtest/go.sum @@ -111,8 +111,8 @@ github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9/go.mod h1:OMCwj8V github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= diff --git a/exporter/kafkaexporter/go.mod b/exporter/kafkaexporter/go.mod index a16445efabef..8e10dd54cb53 100644 --- a/exporter/kafkaexporter/go.mod +++ b/exporter/kafkaexporter/go.mod @@ -32,7 +32,7 @@ require ( require ( github.com/apache/thrift v0.19.0 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect diff --git a/exporter/kafkaexporter/go.sum b/exporter/kafkaexporter/go.sum index 4fadeb5b54bc..40468cb35388 100644 --- a/exporter/kafkaexporter/go.sum +++ b/exporter/kafkaexporter/go.sum @@ -2,8 +2,8 @@ github.com/IBM/sarama v1.43.1 h1:Z5uz65Px7f4DhI/jQqEm/tV9t8aU+JUdTyW/K/fCXpA= github.com/IBM/sarama v1.43.1/go.mod h1:GG5q1RURtDNPz8xxJs3mgX6Ytak8Z9eLhAkJPObe2xE= github.com/apache/thrift v0.19.0 h1:sOqkWPzMj7w6XaYbJQG7m4sGqVolaW/0D28Ln7yPzMk= github.com/apache/thrift v0.19.0/go.mod h1:SUALL216IiaOw2Oy+5Vs9lboJ/t9g40C+G07Dc0QC1I= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/extension/awsproxy/go.mod b/extension/awsproxy/go.mod index 456fbe9d4483..49c7bcefe040 100644 --- a/extension/awsproxy/go.mod +++ b/extension/awsproxy/go.mod @@ -17,7 +17,7 @@ require ( ) require ( - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/extension/awsproxy/go.sum b/extension/awsproxy/go.sum index b2ab8b23da61..cdf0d8dda2b3 100644 --- a/extension/awsproxy/go.sum +++ b/extension/awsproxy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= diff --git a/extension/observer/ecsobserver/go.mod b/extension/observer/ecsobserver/go.mod index c2eabde5a986..a5819a41b1a9 100644 --- a/extension/observer/ecsobserver/go.mod +++ b/extension/observer/ecsobserver/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/extension/obser go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/hashicorp/golang-lru v1.0.2 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/extension/observer/ecsobserver/go.sum b/extension/observer/ecsobserver/go.sum index b79c9fac3b80..d1ed132ed3d8 100644 --- a/extension/observer/ecsobserver/go.sum +++ b/extension/observer/ecsobserver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= diff --git a/go.mod b/go.mod index bed1673a6f1c..f36ccab56327 100644 --- a/go.mod +++ b/go.mod @@ -276,7 +276,7 @@ require ( github.com/apache/thrift v0.20.0 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect github.com/armon/go-metrics v0.4.1 // indirect - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect diff --git a/go.sum b/go.sum index ad10f39bbd5e..d7ff3a33c78e 100644 --- a/go.sum +++ b/go.sum @@ -330,8 +330,8 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.44.263/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.17.7/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= diff --git a/internal/aws/awsutil/go.mod b/internal/aws/awsutil/go.mod index 27b2183aa176..870786c6505b 100644 --- a/internal/aws/awsutil/go.mod +++ b/internal/aws/awsutil/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/aw go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/stretchr/testify v1.9.0 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 diff --git a/internal/aws/awsutil/go.sum b/internal/aws/awsutil/go.sum index 78f48f3cef97..b99cba3e90e2 100644 --- a/internal/aws/awsutil/go.sum +++ b/internal/aws/awsutil/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= 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= diff --git a/internal/aws/cwlogs/go.mod b/internal/aws/cwlogs/go.mod index a4de65b0c34a..237c94d728c4 100644 --- a/internal/aws/cwlogs/go.mod +++ b/internal/aws/cwlogs/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/cw go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 go.uber.org/goleak v1.3.0 diff --git a/internal/aws/cwlogs/go.sum b/internal/aws/cwlogs/go.sum index a026bd00ed0b..9959f4d0389f 100644 --- a/internal/aws/cwlogs/go.sum +++ b/internal/aws/cwlogs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= 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= diff --git a/internal/aws/k8s/go.mod b/internal/aws/k8s/go.mod index d2171d17e8aa..6b7b1a13b031 100644 --- a/internal/aws/k8s/go.mod +++ b/internal/aws/k8s/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/k8 go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/stretchr/testify v1.9.0 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 diff --git a/internal/aws/k8s/go.sum b/internal/aws/k8s/go.sum index f38f1dcfff6c..d71694f60fd4 100644 --- a/internal/aws/k8s/go.sum +++ b/internal/aws/k8s/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 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= diff --git a/internal/aws/proxy/go.mod b/internal/aws/proxy/go.mod index 12d89efe5367..d24b8d20d9b7 100644 --- a/internal/aws/proxy/go.mod +++ b/internal/aws/proxy/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/pr go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/config/confignet v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/internal/aws/proxy/go.sum b/internal/aws/proxy/go.sum index 06dcaf3aa45b..fd7d5f1e9708 100644 --- a/internal/aws/proxy/go.sum +++ b/internal/aws/proxy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= 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= diff --git a/internal/aws/xray/go.mod b/internal/aws/xray/go.mod index 2a0f438840fe..b1147cf21b83 100644 --- a/internal/aws/xray/go.mod +++ b/internal/aws/xray/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/xr go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/stretchr/testify v1.9.0 go.opentelemetry.io/collector/component v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/internal/aws/xray/go.sum b/internal/aws/xray/go.sum index fe3f1715269e..d37035c19958 100644 --- a/internal/aws/xray/go.sum +++ b/internal/aws/xray/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= 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= diff --git a/internal/aws/xray/testdata/sampleapp/go.mod b/internal/aws/xray/testdata/sampleapp/go.mod index 0c834bd7f07d..3563d9e9ce73 100644 --- a/internal/aws/xray/testdata/sampleapp/go.mod +++ b/internal/aws/xray/testdata/sampleapp/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/xr go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/aws/aws-xray-sdk-go v1.8.3 ) diff --git a/internal/aws/xray/testdata/sampleapp/go.sum b/internal/aws/xray/testdata/sampleapp/go.sum index 33f0495eed1e..a248d1fc117b 100644 --- a/internal/aws/xray/testdata/sampleapp/go.sum +++ b/internal/aws/xray/testdata/sampleapp/go.sum @@ -2,8 +2,8 @@ github.com/DATA-DOG/go-sqlmock v1.4.1 h1:ThlnYciV1iM/V0OSF/dtkqWb6xo5qITT1TJBG1M github.com/DATA-DOG/go-sqlmock v1.4.1/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/andybalholm/brotli v1.0.6 h1:Yf9fFpf49Zrxb9NlQaluyE92/+X7UVHlhMNJN2sxfOI= github.com/andybalholm/brotli v1.0.6/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-xray-sdk-go v1.8.3 h1:S8GdgVncBRhzbNnNUgTPwhEqhwt2alES/9rLASyhxjU= github.com/aws/aws-xray-sdk-go v1.8.3/go.mod h1:tv8uLMOSCABolrIF8YCcp3ghyswArsan8dfLCA1ZATk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/internal/kafka/go.mod b/internal/kafka/go.mod index 576923d7f886..76fbab47d09e 100644 --- a/internal/kafka/go.mod +++ b/internal/kafka/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/IBM/sarama v1.43.1 - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/stretchr/testify v1.9.0 github.com/xdg-go/scram v1.1.2 go.opentelemetry.io/collector/config/configtls v0.98.1-0.20240416174005-d0f15e2463f8 diff --git a/internal/kafka/go.sum b/internal/kafka/go.sum index acc4b4d6c219..385bbfef35ef 100644 --- a/internal/kafka/go.sum +++ b/internal/kafka/go.sum @@ -1,7 +1,7 @@ github.com/IBM/sarama v1.43.1 h1:Z5uz65Px7f4DhI/jQqEm/tV9t8aU+JUdTyW/K/fCXpA= github.com/IBM/sarama v1.43.1/go.mod h1:GG5q1RURtDNPz8xxJs3mgX6Ytak8Z9eLhAkJPObe2xE= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= diff --git a/internal/metadataproviders/go.mod b/internal/metadataproviders/go.mod index e0ebcada13d0..70054abd3944 100644 --- a/internal/metadataproviders/go.mod +++ b/internal/metadataproviders/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/Showmax/go-fqdn v1.0.0 - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/docker/docker v25.0.5+incompatible github.com/hashicorp/consul/api v1.28.2 github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.98.0 diff --git a/internal/metadataproviders/go.sum b/internal/metadataproviders/go.sum index a0c9b9005e9b..4722b1b68d79 100644 --- a/internal/metadataproviders/go.sum +++ b/internal/metadataproviders/go.sum @@ -51,8 +51,8 @@ github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= diff --git a/processor/resourcedetectionprocessor/go.mod b/processor/resourcedetectionprocessor/go.mod index 4e4b29c0125e..a10d9d159515 100644 --- a/processor/resourcedetectionprocessor/go.mod +++ b/processor/resourcedetectionprocessor/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( cloud.google.com/go/compute/metadata v0.3.0 github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.22.0 - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/google/go-cmp v0.6.0 github.com/hashicorp/consul/api v1.28.2 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.98.0 diff --git a/processor/resourcedetectionprocessor/go.sum b/processor/resourcedetectionprocessor/go.sum index b60f673132ea..6196586293e0 100644 --- a/processor/resourcedetectionprocessor/go.sum +++ b/processor/resourcedetectionprocessor/go.sum @@ -55,8 +55,8 @@ github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= diff --git a/receiver/awscloudwatchreceiver/go.mod b/receiver/awscloudwatchreceiver/go.mod index b77b577a6094..2367a797643f 100644 --- a/receiver/awscloudwatchreceiver/go.mod +++ b/receiver/awscloudwatchreceiver/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsclo go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.98.0 github.com/stretchr/testify v1.9.0 diff --git a/receiver/awscloudwatchreceiver/go.sum b/receiver/awscloudwatchreceiver/go.sum index 204a11cdcf51..a3e1da5a18b3 100644 --- a/receiver/awscloudwatchreceiver/go.sum +++ b/receiver/awscloudwatchreceiver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= diff --git a/receiver/awscontainerinsightreceiver/go.mod b/receiver/awscontainerinsightreceiver/go.mod index a1e142116645..cb1ae3824328 100644 --- a/receiver/awscontainerinsightreceiver/go.mod +++ b/receiver/awscontainerinsightreceiver/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscon go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/google/cadvisor v0.49.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/containerinsight v0.98.0 diff --git a/receiver/awscontainerinsightreceiver/go.sum b/receiver/awscontainerinsightreceiver/go.sum index 1b1737253e1b..2633af129be5 100644 --- a/receiver/awscontainerinsightreceiver/go.sum +++ b/receiver/awscontainerinsightreceiver/go.sum @@ -38,8 +38,8 @@ github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb0 github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= diff --git a/receiver/awsecscontainermetricsreceiver/go.mod b/receiver/awsecscontainermetricsreceiver/go.mod index 24cfb4e0e8b4..df097038e966 100644 --- a/receiver/awsecscontainermetricsreceiver/go.mod +++ b/receiver/awsecscontainermetricsreceiver/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecs go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.98.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.98.0 github.com/stretchr/testify v1.9.0 diff --git a/receiver/awsecscontainermetricsreceiver/go.sum b/receiver/awsecscontainermetricsreceiver/go.sum index 1929f767bc7a..374ab164a8d2 100644 --- a/receiver/awsecscontainermetricsreceiver/go.sum +++ b/receiver/awsecscontainermetricsreceiver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= diff --git a/receiver/awsxrayreceiver/go.mod b/receiver/awsxrayreceiver/go.mod index d66cdd1462df..76a59c4e8c50 100644 --- a/receiver/awsxrayreceiver/go.mod +++ b/receiver/awsxrayreceiver/go.mod @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsxra go 1.21 require ( - github.com/aws/aws-sdk-go v1.51.21 + github.com/aws/aws-sdk-go v1.51.22 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/proxy v0.98.0 diff --git a/receiver/awsxrayreceiver/go.sum b/receiver/awsxrayreceiver/go.sum index 99c8e02fadad..0beeb5a50e99 100644 --- a/receiver/awsxrayreceiver/go.sum +++ b/receiver/awsxrayreceiver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= diff --git a/receiver/kafkametricsreceiver/go.mod b/receiver/kafkametricsreceiver/go.mod index 25d18fa3676b..d896f76b51b4 100644 --- a/receiver/kafkametricsreceiver/go.mod +++ b/receiver/kafkametricsreceiver/go.mod @@ -21,7 +21,7 @@ require ( ) require ( - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect diff --git a/receiver/kafkametricsreceiver/go.sum b/receiver/kafkametricsreceiver/go.sum index c91d0abbf311..958a081b2d1e 100644 --- a/receiver/kafkametricsreceiver/go.sum +++ b/receiver/kafkametricsreceiver/go.sum @@ -1,7 +1,7 @@ github.com/IBM/sarama v1.43.1 h1:Z5uz65Px7f4DhI/jQqEm/tV9t8aU+JUdTyW/K/fCXpA= github.com/IBM/sarama v1.43.1/go.mod h1:GG5q1RURtDNPz8xxJs3mgX6Ytak8Z9eLhAkJPObe2xE= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= diff --git a/receiver/kafkareceiver/go.mod b/receiver/kafkareceiver/go.mod index b4e52ba489f0..d6a19eb8fbc9 100644 --- a/receiver/kafkareceiver/go.mod +++ b/receiver/kafkareceiver/go.mod @@ -32,7 +32,7 @@ require ( ) require ( - github.com/aws/aws-sdk-go v1.51.21 // indirect + github.com/aws/aws-sdk-go v1.51.22 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect diff --git a/receiver/kafkareceiver/go.sum b/receiver/kafkareceiver/go.sum index 75a2f2e0a2c6..701447549a79 100644 --- a/receiver/kafkareceiver/go.sum +++ b/receiver/kafkareceiver/go.sum @@ -4,8 +4,8 @@ github.com/IBM/sarama v1.43.1 h1:Z5uz65Px7f4DhI/jQqEm/tV9t8aU+JUdTyW/K/fCXpA= github.com/IBM/sarama v1.43.1/go.mod h1:GG5q1RURtDNPz8xxJs3mgX6Ytak8Z9eLhAkJPObe2xE= github.com/apache/thrift v0.20.0 h1:631+KvYbsBZxmuJjYwhezVsrfc/TbqtZV4QcxOX1fOI= github.com/apache/thrift v0.20.0/go.mod h1:hOk1BQqcp2OLzGsyVXdfMk7YFlMxK3aoEVhjD06QhB8= -github.com/aws/aws-sdk-go v1.51.21 h1:UrT6JC9R9PkYYXDZBV0qDKTualMr+bfK2eboTknMgbs= -github.com/aws/aws-sdk-go v1.51.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.51.22 h1:VL2p2JgC32myt7DMEcbe1devdtgGSgMNvZpkcdvlxq4= +github.com/aws/aws-sdk-go v1.51.22/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= From f8525daa5f308179c66738673acd36f601201c7a Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:00:11 -0600 Subject: [PATCH 8/8] [chore] Remove path ignore from windows tests (#32469) Windows tests aren't passing for README-only changes: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32465 --- .github/workflows/build-and-test-windows.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yml b/.github/workflows/build-and-test-windows.yml index 1866f7ba4c48..c049aa5159ab 100644 --- a/.github/workflows/build-and-test-windows.yml +++ b/.github/workflows/build-and-test-windows.yml @@ -6,15 +6,11 @@ on: - 'releases/**' tags: - 'v[0-9]+.[0-9]+.[0-9]+*' - paths-ignore: - - '**/README.md' merge_group: pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] branches: - main - paths-ignore: - - '**/README.md' env: TEST_RESULTS: testbed/tests/results/junit/results.xml # Make sure to exit early if cache segment download times out after 2 minutes.