Skip to content

Commit

Permalink
update otel collector version (#935)
Browse files Browse the repository at this point in the history
* update go mod
  • Loading branch information
aphralG authored Nov 29, 2024
1 parent ca1c468 commit 53c3224
Show file tree
Hide file tree
Showing 22 changed files with 701 additions and 1,119 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following packages need to be installed:
```
git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
git checkout v0.108.1
git checkout v0.114.0
cd cmd/mdatagen
go install
```
Expand Down
352 changes: 162 additions & 190 deletions go.mod

Large diffs are not rendered by default.

1,100 changes: 345 additions & 755 deletions go.sum

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions internal/collector/factories.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,10 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension"
"github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatorateprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricsgenerationprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/remotetapprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
"go.opentelemetry.io/collector/component"
Expand Down Expand Up @@ -119,23 +107,11 @@ func createProcessorFactories() (map[component.Type]processor.Factory, error) {
processorList := []processor.Factory{
attributesprocessor.NewFactory(),
batchprocessor.NewFactory(),
cumulativetodeltaprocessor.NewFactory(),
deltatorateprocessor.NewFactory(),
filterprocessor.NewFactory(),
groupbyattrsprocessor.NewFactory(),
groupbytraceprocessor.NewFactory(),
k8sattributesprocessor.NewFactory(),
memorylimiterprocessor.NewFactory(),
metricsgenerationprocessor.NewFactory(),
metricstransformprocessor.NewFactory(),
probabilisticsamplerprocessor.NewFactory(),
redactionprocessor.NewFactory(),
remotetapprocessor.NewFactory(),
resourcedetectionprocessor.NewFactory(),
resourceprocessor.NewFactory(),
routingprocessor.NewFactory(),
spanprocessor.NewFactory(),
tailsamplingprocessor.NewFactory(),
transformprocessor.NewFactory(),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/collector/factories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestOTelComponentFactoriesDefault(t *testing.T) {
assert.NotNil(t, factories, "factories should not be nil")

assert.Len(t, factories.Receivers, 4)
assert.Len(t, factories.Processors, 20)
assert.Len(t, factories.Processors, 8)
assert.Len(t, factories.Exporters, 4)
assert.Len(t, factories.Extensions, 3)
assert.Empty(t, factories.Connectors)
Expand Down
4 changes: 2 additions & 2 deletions internal/collector/nginxossreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func createMetricsReceiver(

ns := stubstatus.NewScraper(params, cfg)
scraperOpts := []scraperhelper.ScraperControllerOption{
scraperhelper.AddScraper(ns),
scraperhelper.AddScraperWithType(metadata.Type, ns),
}

if len(cfg.AccessLogs) > 0 {
nals, err := accesslog.NewScraper(params, cfg)
if err != nil {
logger.Errorf("Failed to initialize NGINX Access Log scraper: %s", err.Error())
} else {
scraperOpts = append(scraperOpts, scraperhelper.AddScraper(nals))
scraperOpts = append(scraperOpts, scraperhelper.AddScraperWithType(metadata.Type, nals))
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/collector/nginxossreceiver/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestValidConfig(t *testing.T) {

func TestCreateMetricsReceiver(t *testing.T) {
factory := NewFactory()
metricsReceiver, err := factory.CreateMetricsReceiver(
metricsReceiver, err := factory.CreateMetrics(
context.Background(),
receivertest.NewNopSettings(),
&config.Config{
Expand Down
14 changes: 7 additions & 7 deletions internal/collector/nginxossreceiver/generated_component_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 53c3224

Please sign in to comment.