Skip to content

Commit

Permalink
Update Dependencies for v0.41.x (#2851)
Browse files Browse the repository at this point in the history
* Update OTel Collector dependencies

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update remaining dependencies to latest patch version

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* update signalfx exporter patch

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

---------

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
  • Loading branch information
Aneurysm9 authored Sep 26, 2024
1 parent 1d37226 commit b9e0cec
Show file tree
Hide file tree
Showing 5,932 changed files with 278,739 additions and 87,769 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#IDE
.idea
*.code-workspace

#build folder
build/
Expand Down
602 changes: 317 additions & 285 deletions go.mod

Large diffs are not rendered by default.

1,313 changes: 691 additions & 622 deletions go.sum

Large diffs are not rendered by default.

33 changes: 14 additions & 19 deletions patches/signalfxexporter.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/config.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/config.go
index d7b27608..0fe50cfa 100644
index 808af0cf9..e1f0cc95d 100644
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/config.go
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/config.go
@@ -112,7 +112,7 @@ type Config struct {

// ExcludeMetrics defines dpfilter.MetricFilters that will determine metrics to be
// excluded from sending to SignalFx backend. If translations enabled with
- // TranslationRules options, the exclusion will be applied on translated metrics.
+ // TranslationRules options, the exclusion will be applie on translated metrics.
ExcludeMetrics []dpfilters.MetricFilter `mapstructure:"exclude_metrics"`

// IncludeMetrics defines dpfilter.MetricFilters to override exclusion any of metric.
@@ -134,10 +134,6 @@ type Config struct {
// Whether to drop histogram bucket metrics dispatched to Splunk Observability.
// Default value is set to false.
Expand All @@ -23,7 +14,7 @@ index d7b27608..0fe50cfa 100644

type DimensionClientConfig struct {
diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/dpclient.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/dpclient.go
index 82748947..350c9434 100644
index 82748947f..350c94345 100644
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/dpclient.go
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/dpclient.go
@@ -17,20 +17,12 @@ import (
Expand Down Expand Up @@ -233,27 +224,27 @@ index 82748947..350c9434 100644
- return s.getReader(body)
-}
diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/exporter.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/exporter.go
index c0d4cc3c..a37b95e2 100644
index 1a7ab7f60..e776156a0 100644
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/exporter.go
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/exporter.go
@@ -84,7 +84,6 @@ func newSignalFxExporter(
@@ -83,7 +83,6 @@ func newSignalFxExporter(
config.IncludeMetrics,
config.NonAlphanumericDimensionChars,
config.DropHistogramBuckets,
- !config.SendOTLPHistograms, // if SendOTLPHistograms is true, do not process histograms when converting to SFx
)
if err != nil {
return nil, fmt.Errorf("failed to create metric converter: %w", err)
@@ -122,7 +121,6 @@ func (se *signalfxExporter) start(ctx context.Context, host component.Host) (err
@@ -124,7 +123,6 @@ func (se *signalfxExporter) start(ctx context.Context, host component.Host) (err
logger: se.logger,
accessTokenPassthrough: se.config.AccessTokenPassthrough,
converter: se.converter,
- sendOTLPHistograms: se.config.SendOTLPHistograms,
}

apiTLSCfg, err := se.config.APITLSSettings.LoadTLSConfig()
apiTLSCfg, err := se.config.APITLSSettings.LoadTLSConfig(ctx)
diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/translation/converter.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/translation/converter.go
index 9a63c881..7f704d9f 100644
index ffc5e91e1..c54d672c4 100644
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/translation/converter.go
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/translation/converter.go
@@ -36,7 +36,6 @@ type MetricsConverter struct {
Expand All @@ -274,14 +265,18 @@ index 9a63c881..7f704d9f 100644
fs, err := dpfilters.NewFilterSet(excludes, includes)
if err != nil {
return nil, err
@@ -61,13 +59,11 @@ func NewMetricsConverter(
@@ -61,7 +59,6 @@ func NewMetricsConverter(
datapointValidator: newDatapointValidator(logger, nonAlphanumericDimChars),
translator: &signalfx.FromTranslator{},
dropHistogramBuckets: dropHistogramBuckets,
- processHistograms: processHistograms,
}, nil
}

@@ -71,9 +68,8 @@ func (c *MetricsConverter) Start() {
}
}

-// MetricsToSignalFxV2 converts the passed in MetricsData to SFx datapoints
-// and if processHistograms is set, histogram metrics are not converted to SFx format.
-// It returns those datapoints and the number of time series that had to be
Expand All @@ -290,7 +285,7 @@ index 9a63c881..7f704d9f 100644
// dropped because of errors or warnings.
func (c *MetricsConverter) MetricsToSignalFxV2(md pmetric.Metrics) []*sfxpb.DataPoint {
var sfxDataPoints []*sfxpb.DataPoint
@@ -81,7 +77,7 @@ func (c *MetricsConverter) MetricsToSignalFxV2(md pmetric.Metrics) []*sfxpb.Data
@@ -87,7 +83,7 @@ func (c *MetricsConverter) MetricsToSignalFxV2(md pmetric.Metrics) []*sfxpb.Data
var initialDps []*sfxpb.DataPoint
for k := 0; k < ilm.Metrics().Len(); k++ {
currentMetric := ilm.Metrics().At(k)
Expand All @@ -300,7 +295,7 @@ index 9a63c881..7f704d9f 100644
}

diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx/from_metrics.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx/from_metrics.go
index 0d316db4..8c0c7f89 100644
index 0d316db49..8c0c7f89e 100644
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx/from_metrics.go
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx/from_metrics.go
@@ -36,7 +36,7 @@ const (
Expand Down
7 changes: 3 additions & 4 deletions pkg/config/config_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

"github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/s3provider"
"go.opentelemetry.io/collector/confmap"
"go.opentelemetry.io/collector/confmap/converter/expandconverter"
"go.opentelemetry.io/collector/confmap/provider/envprovider"
"go.opentelemetry.io/collector/confmap/provider/fileprovider"
"go.opentelemetry.io/collector/confmap/provider/httpprovider"
Expand Down Expand Up @@ -55,9 +54,9 @@ func GetConfigProviderSettings(flags *flag.FlagSet) otelcol.ConfigProviderSettin
// create Config Provider Settings
configProviderSettings := otelcol.ConfigProviderSettings{
ResolverSettings: confmap.ResolverSettings{
URIs: loc,
ProviderFactories: providers,
ConverterFactories: []confmap.ConverterFactory{expandconverter.NewFactory()},
URIs: loc,
ProviderFactories: providers,
DefaultScheme: "env",
},
}

Expand Down
Loading

0 comments on commit b9e0cec

Please sign in to comment.