From 88b0c0a42a701bc5de250a3b5d600e3fb53f1648 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:39:32 -0700 Subject: [PATCH] Fix lint --- .../internal/scraper/cpuscraper/factory.go | 4 ---- .../internal/scraper/diskscraper/factory.go | 4 ---- .../internal/scraper/filesystemscraper/factory.go | 4 ---- .../internal/scraper/loadscraper/factory.go | 4 ---- .../internal/scraper/memoryscraper/factory.go | 4 ---- .../internal/scraper/networkscraper/factory.go | 4 ---- .../internal/scraper/pagingscraper/factory.go | 4 ---- .../internal/scraper/processesscraper/factory.go | 4 ---- .../internal/scraper/processscraper/factory.go | 4 ---- .../internal/scraper/systemscraper/factory.go | 4 ---- 10 files changed, 40 deletions(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/factory.go index a9680057fc10..bab24b125b55 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/factory.go @@ -6,7 +6,6 @@ package cpuscraper // import "github.com/open-telemetry/opentelemetry-collector- import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "cpu" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/factory.go index e69f5b220779..bc6185c5ec0d 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/factory.go @@ -6,7 +6,6 @@ package diskscraper // import "github.com/open-telemetry/opentelemetry-collector import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "disk" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/factory.go index ee266b51d815..a752fcb2ad71 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/factory.go @@ -7,7 +7,6 @@ import ( "context" "os" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -22,9 +21,6 @@ const ( TypeStr = "filesystem" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/factory.go index f1f4e5e4839c..1d1aa9dc5ac7 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/factory.go @@ -6,7 +6,6 @@ package loadscraper // import "github.com/open-telemetry/opentelemetry-collector import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "load" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/factory.go index 34c97fadbe34..919214e1aa4d 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/factory.go @@ -6,7 +6,6 @@ package memoryscraper // import "github.com/open-telemetry/opentelemetry-collect import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "memory" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/factory.go index a96db4a72afe..a72b54abbd1e 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/networkscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/networkscraper/factory.go @@ -6,7 +6,6 @@ package networkscraper // import "github.com/open-telemetry/opentelemetry-collec import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "network" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/factory.go index f854b53b4346..91962b687d03 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/factory.go @@ -6,7 +6,6 @@ package pagingscraper // import "github.com/open-telemetry/opentelemetry-collect import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "paging" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/factory.go index 4c3e2847d164..9c89f9264529 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processesscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processesscraper/factory.go @@ -6,7 +6,6 @@ package processesscraper // import "github.com/open-telemetry/opentelemetry-coll import ( "context" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -21,9 +20,6 @@ const ( TypeStr = "processes" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{} diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go index 6cfe883b0cb6..0bccf33cd30b 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go @@ -8,7 +8,6 @@ import ( "errors" "runtime" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/featuregate" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -24,9 +23,6 @@ const ( TypeStr = "process" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - var ( bootTimeCacheFeaturegateID = "hostmetrics.process.bootTimeCache" bootTimeCacheFeaturegate = featuregate.GlobalRegistry().MustRegister( diff --git a/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go index 3d35748b2617..660c4d9335a9 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go @@ -8,7 +8,6 @@ import ( "errors" "runtime" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/scraperhelper" @@ -23,9 +22,6 @@ const ( TypeStr = "system" ) -// scraperType is the component type used for the built scraper. -var scraperType component.Type = component.MustNewType(TypeStr) - // Factory is the Factory for scraper. type Factory struct{}