From 0c9633e34984fc2e7dc1e927900b124a2399ce78 Mon Sep 17 00:00:00 2001 From: Tommy Li Date: Fri, 26 Jul 2024 08:41:18 -0700 Subject: [PATCH] rename component type and regenerate metadata (#324) --- processor/loghouseprocessor/factory.go | 2 +- processor/loghouseprocessor/generated_component_test.go | 2 +- .../loghouseprocessor/internal/metadata/generated_status.go | 2 +- processor/loghouseprocessor/metadata.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/processor/loghouseprocessor/factory.go b/processor/loghouseprocessor/factory.go index 5440656c90c8..3a339525b3c5 100644 --- a/processor/loghouseprocessor/factory.go +++ b/processor/loghouseprocessor/factory.go @@ -21,7 +21,7 @@ var ( // NewFactory creates a factory for the routing processor. func NewFactory() processor.Factory { return processor.NewFactory( - component.MustNewType("loghouse"), + metadata.Type, createDefaultConfig, processor.WithLogs(createLogsProcessor, metadata.LogsStability), ) diff --git a/processor/loghouseprocessor/generated_component_test.go b/processor/loghouseprocessor/generated_component_test.go index 24c77a6c85fa..cfe9526470ef 100644 --- a/processor/loghouseprocessor/generated_component_test.go +++ b/processor/loghouseprocessor/generated_component_test.go @@ -21,7 +21,7 @@ import ( ) func TestComponentFactoryType(t *testing.T) { - require.Equal(t, "processor", NewFactory().Type().String()) + require.Equal(t, "loghouse", NewFactory().Type().String()) } func TestComponentConfigStruct(t *testing.T) { diff --git a/processor/loghouseprocessor/internal/metadata/generated_status.go b/processor/loghouseprocessor/internal/metadata/generated_status.go index 6ebeaebe4c31..be741cb9ccdb 100644 --- a/processor/loghouseprocessor/internal/metadata/generated_status.go +++ b/processor/loghouseprocessor/internal/metadata/generated_status.go @@ -7,7 +7,7 @@ import ( ) var ( - Type = component.MustNewType("processor") + Type = component.MustNewType("loghouse") ) const ( diff --git a/processor/loghouseprocessor/metadata.yaml b/processor/loghouseprocessor/metadata.yaml index 7b578e5ca346..93cf3571e4c6 100644 --- a/processor/loghouseprocessor/metadata.yaml +++ b/processor/loghouseprocessor/metadata.yaml @@ -1,4 +1,4 @@ -type: processor +type: loghouse scope_name: otelcol/loghouse status: