From 14c27fd1b14df0f7c35077260338617cd443a4a9 Mon Sep 17 00:00:00 2001 From: Mike Goldsmth Date: Fri, 9 Aug 2024 15:59:11 +0100 Subject: [PATCH 1/3] [processor/logdedup] Make processor name consistent --- .chloggen/logdedup-make-name-consistent.yaml | 27 +++++++++++++++++++ .github/CODEOWNERS | 2 +- .../Makefile | 0 .../README.md | 0 .../config.go | 4 +-- .../config_test.go | 2 +- .../counter.go | 2 +- .../counter_test.go | 2 +- .../factory.go | 4 +-- .../factory_test.go | 4 +-- .../field_remover.go | 2 +- .../field_remover_test.go | 2 +- .../generated_component_test.go | 2 +- .../generated_package_test.go | 2 +- .../go.mod | 2 +- .../go.sum | 0 .../internal/metadata/generated_status.go | 0 .../metadata.yaml | 0 .../processor.go | 2 +- .../processor_test.go | 2 +- .../timezone.md | 0 versions.yaml | 2 +- 22 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 .chloggen/logdedup-make-name-consistent.yaml rename processor/{logdeduplicationprocessor => logdedupprocessor}/Makefile (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/README.md (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/config.go (92%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/config_test.go (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/counter.go (97%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/counter_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/factory.go (82%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/factory_test.go (93%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/field_remover.go (95%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/field_remover_test.go (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/generated_component_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/generated_package_test.go (81%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/go.mod (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/go.sum (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/internal/metadata/generated_status.go (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/metadata.yaml (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/processor.go (95%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/processor_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/timezone.md (100%) diff --git a/.chloggen/logdedup-make-name-consistent.yaml b/.chloggen/logdedup-make-name-consistent.yaml new file mode 100644 index 000000000000..e13bd297efa1 --- /dev/null +++ b/.chloggen/logdedup-make-name-consistent.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: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: logdedup + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Make the name of the log deduplication component consistent + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [34571] + +# (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: + +# 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: [] diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f8d0eeaa53c5..cda2bc45426d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -175,7 +175,7 @@ processor/groupbyattrsprocessor/ @open-teleme processor/groupbytraceprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling processor/intervalprocessor/ @open-telemetry/collector-contrib-approvers @RichieSams @sh0rez @djaglowski processor/k8sattributesprocessor/ @open-telemetry/collector-contrib-approvers @dmitryax @rmfitzpatrick @fatsheep9146 @TylerHelmuth -processor/logdeduplicationprocessor/ @open-telemetry/collector-contrib-approvers @BinaryFissionGames @MikeGoldsmith @djaglowski +processor/logdedupprocessor/ @open-telemetry/collector-contrib-approvers @BinaryFissionGames @MikeGoldsmith @djaglowski 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 diff --git a/processor/logdeduplicationprocessor/Makefile b/processor/logdedupprocessor/Makefile similarity index 100% rename from processor/logdeduplicationprocessor/Makefile rename to processor/logdedupprocessor/Makefile diff --git a/processor/logdeduplicationprocessor/README.md b/processor/logdedupprocessor/README.md similarity index 100% rename from processor/logdeduplicationprocessor/README.md rename to processor/logdedupprocessor/README.md diff --git a/processor/logdeduplicationprocessor/config.go b/processor/logdedupprocessor/config.go similarity index 92% rename from processor/logdeduplicationprocessor/config.go rename to processor/logdedupprocessor/config.go index af9bfa9ead70..eb99fcadd98d 100644 --- a/processor/logdeduplicationprocessor/config.go +++ b/processor/logdedupprocessor/config.go @@ -1,8 +1,8 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -// Package logdeduplicationprocessor provides a processor that counts logs as metrics. -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +// Package logdedupprocessor provides a processor that counts logs as metrics. +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "errors" diff --git a/processor/logdeduplicationprocessor/config_test.go b/processor/logdedupprocessor/config_test.go similarity index 98% rename from processor/logdeduplicationprocessor/config_test.go rename to processor/logdedupprocessor/config_test.go index fab69dde82f1..94e3bc771922 100644 --- a/processor/logdeduplicationprocessor/config_test.go +++ b/processor/logdedupprocessor/config_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "errors" diff --git a/processor/logdeduplicationprocessor/counter.go b/processor/logdedupprocessor/counter.go similarity index 97% rename from processor/logdeduplicationprocessor/counter.go rename to processor/logdedupprocessor/counter.go index 7bfc264793d9..c3a26baa789e 100644 --- a/processor/logdeduplicationprocessor/counter.go +++ b/processor/logdedupprocessor/counter.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "hash/fnv" diff --git a/processor/logdeduplicationprocessor/counter_test.go b/processor/logdedupprocessor/counter_test.go similarity index 99% rename from processor/logdeduplicationprocessor/counter_test.go rename to processor/logdedupprocessor/counter_test.go index 1d8778b1f7ee..9e59fb50849f 100644 --- a/processor/logdeduplicationprocessor/counter_test.go +++ b/processor/logdedupprocessor/counter_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "testing" diff --git a/processor/logdeduplicationprocessor/factory.go b/processor/logdedupprocessor/factory.go similarity index 82% rename from processor/logdeduplicationprocessor/factory.go rename to processor/logdedupprocessor/factory.go index b3f0a49426f4..b4917dc0668f 100644 --- a/processor/logdeduplicationprocessor/factory.go +++ b/processor/logdedupprocessor/factory.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "context" @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/processor" - "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor/internal/metadata" + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor/internal/metadata" ) // NewFactory creates a new factory for the processor. diff --git a/processor/logdeduplicationprocessor/factory_test.go b/processor/logdedupprocessor/factory_test.go similarity index 93% rename from processor/logdeduplicationprocessor/factory_test.go rename to processor/logdedupprocessor/factory_test.go index 9775818c280e..bbfbf2705b5a 100644 --- a/processor/logdeduplicationprocessor/factory_test.go +++ b/processor/logdedupprocessor/factory_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "context" @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/processor" - "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor/internal/metadata" + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor/internal/metadata" ) func TestNewProcessorFactory(t *testing.T) { diff --git a/processor/logdeduplicationprocessor/field_remover.go b/processor/logdedupprocessor/field_remover.go similarity index 95% rename from processor/logdeduplicationprocessor/field_remover.go rename to processor/logdedupprocessor/field_remover.go index 7fa5af761c9c..bd82a7715214 100644 --- a/processor/logdeduplicationprocessor/field_remover.go +++ b/processor/logdedupprocessor/field_remover.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "fmt" diff --git a/processor/logdeduplicationprocessor/field_remover_test.go b/processor/logdedupprocessor/field_remover_test.go similarity index 98% rename from processor/logdeduplicationprocessor/field_remover_test.go rename to processor/logdedupprocessor/field_remover_test.go index 8b584e94be2a..173bee6b2e9e 100644 --- a/processor/logdeduplicationprocessor/field_remover_test.go +++ b/processor/logdedupprocessor/field_remover_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "fmt" diff --git a/processor/logdeduplicationprocessor/generated_component_test.go b/processor/logdedupprocessor/generated_component_test.go similarity index 99% rename from processor/logdeduplicationprocessor/generated_component_test.go rename to processor/logdedupprocessor/generated_component_test.go index ad8c0ffbb770..ccfce9f63f83 100644 --- a/processor/logdeduplicationprocessor/generated_component_test.go +++ b/processor/logdedupprocessor/generated_component_test.go @@ -1,6 +1,6 @@ // Code generated by mdatagen. DO NOT EDIT. -package logdeduplicationprocessor +package logdedupprocessor import ( "context" diff --git a/processor/logdeduplicationprocessor/generated_package_test.go b/processor/logdedupprocessor/generated_package_test.go similarity index 81% rename from processor/logdeduplicationprocessor/generated_package_test.go rename to processor/logdedupprocessor/generated_package_test.go index 810bd7465961..bb93eddab91e 100644 --- a/processor/logdeduplicationprocessor/generated_package_test.go +++ b/processor/logdedupprocessor/generated_package_test.go @@ -1,6 +1,6 @@ // Code generated by mdatagen. DO NOT EDIT. -package logdeduplicationprocessor +package logdedupprocessor import ( "testing" diff --git a/processor/logdeduplicationprocessor/go.mod b/processor/logdedupprocessor/go.mod similarity index 98% rename from processor/logdeduplicationprocessor/go.mod rename to processor/logdedupprocessor/go.mod index df0c6fb4366c..8dad53114c50 100644 --- a/processor/logdeduplicationprocessor/go.mod +++ b/processor/logdedupprocessor/go.mod @@ -1,4 +1,4 @@ -module github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor +module github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor go 1.21.0 diff --git a/processor/logdeduplicationprocessor/go.sum b/processor/logdedupprocessor/go.sum similarity index 100% rename from processor/logdeduplicationprocessor/go.sum rename to processor/logdedupprocessor/go.sum diff --git a/processor/logdeduplicationprocessor/internal/metadata/generated_status.go b/processor/logdedupprocessor/internal/metadata/generated_status.go similarity index 100% rename from processor/logdeduplicationprocessor/internal/metadata/generated_status.go rename to processor/logdedupprocessor/internal/metadata/generated_status.go diff --git a/processor/logdeduplicationprocessor/metadata.yaml b/processor/logdedupprocessor/metadata.yaml similarity index 100% rename from processor/logdeduplicationprocessor/metadata.yaml rename to processor/logdedupprocessor/metadata.yaml diff --git a/processor/logdeduplicationprocessor/processor.go b/processor/logdedupprocessor/processor.go similarity index 95% rename from processor/logdeduplicationprocessor/processor.go rename to processor/logdedupprocessor/processor.go index 18f47c37962e..804f0ab63289 100644 --- a/processor/logdeduplicationprocessor/processor.go +++ b/processor/logdedupprocessor/processor.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "context" diff --git a/processor/logdeduplicationprocessor/processor_test.go b/processor/logdedupprocessor/processor_test.go similarity index 99% rename from processor/logdeduplicationprocessor/processor_test.go rename to processor/logdedupprocessor/processor_test.go index fde7f889bfbc..7d79ca8d709a 100644 --- a/processor/logdeduplicationprocessor/processor_test.go +++ b/processor/logdedupprocessor/processor_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "context" diff --git a/processor/logdeduplicationprocessor/timezone.md b/processor/logdedupprocessor/timezone.md similarity index 100% rename from processor/logdeduplicationprocessor/timezone.md rename to processor/logdedupprocessor/timezone.md diff --git a/versions.yaml b/versions.yaml index 11e32e59c0f4..912ece946935 100644 --- a/versions.yaml +++ b/versions.yaml @@ -167,7 +167,7 @@ module-sets: - github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/intervalprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor - - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor + - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logstransformprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricsgenerationprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor From 88d80268b792962173ebc8a056729ab9d4d7d52e Mon Sep 17 00:00:00 2001 From: Mike Goldsmth Date: Fri, 9 Aug 2024 15:59:11 +0100 Subject: [PATCH 2/3] [processor/logdedup] Make processor name consistent --- .chloggen/logdedup-make-name-consistent.yaml | 27 +++++++++++++++++++ .github/CODEOWNERS | 2 +- .../Makefile | 0 .../README.md | 0 .../config.go | 4 +-- .../config_test.go | 2 +- .../counter.go | 2 +- .../counter_test.go | 2 +- .../factory.go | 4 +-- .../factory_test.go | 4 +-- .../field_remover.go | 2 +- .../field_remover_test.go | 2 +- .../generated_component_test.go | 2 +- .../generated_package_test.go | 2 +- .../go.mod | 2 +- .../go.sum | 0 .../internal/metadata/generated_status.go | 0 .../metadata.yaml | 0 .../processor.go | 2 +- .../processor_test.go | 2 +- .../timezone.md | 0 versions.yaml | 2 +- 22 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 .chloggen/logdedup-make-name-consistent.yaml rename processor/{logdeduplicationprocessor => logdedupprocessor}/Makefile (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/README.md (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/config.go (92%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/config_test.go (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/counter.go (97%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/counter_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/factory.go (82%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/factory_test.go (93%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/field_remover.go (95%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/field_remover_test.go (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/generated_component_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/generated_package_test.go (81%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/go.mod (98%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/go.sum (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/internal/metadata/generated_status.go (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/metadata.yaml (100%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/processor.go (95%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/processor_test.go (99%) rename processor/{logdeduplicationprocessor => logdedupprocessor}/timezone.md (100%) diff --git a/.chloggen/logdedup-make-name-consistent.yaml b/.chloggen/logdedup-make-name-consistent.yaml new file mode 100644 index 000000000000..e13bd297efa1 --- /dev/null +++ b/.chloggen/logdedup-make-name-consistent.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: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: logdedup + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Make the name of the log deduplication component consistent + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [34571] + +# (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: + +# 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: [] diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f8d0eeaa53c5..cda2bc45426d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -175,7 +175,7 @@ processor/groupbyattrsprocessor/ @open-teleme processor/groupbytraceprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling processor/intervalprocessor/ @open-telemetry/collector-contrib-approvers @RichieSams @sh0rez @djaglowski processor/k8sattributesprocessor/ @open-telemetry/collector-contrib-approvers @dmitryax @rmfitzpatrick @fatsheep9146 @TylerHelmuth -processor/logdeduplicationprocessor/ @open-telemetry/collector-contrib-approvers @BinaryFissionGames @MikeGoldsmith @djaglowski +processor/logdedupprocessor/ @open-telemetry/collector-contrib-approvers @BinaryFissionGames @MikeGoldsmith @djaglowski 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 diff --git a/processor/logdeduplicationprocessor/Makefile b/processor/logdedupprocessor/Makefile similarity index 100% rename from processor/logdeduplicationprocessor/Makefile rename to processor/logdedupprocessor/Makefile diff --git a/processor/logdeduplicationprocessor/README.md b/processor/logdedupprocessor/README.md similarity index 100% rename from processor/logdeduplicationprocessor/README.md rename to processor/logdedupprocessor/README.md diff --git a/processor/logdeduplicationprocessor/config.go b/processor/logdedupprocessor/config.go similarity index 92% rename from processor/logdeduplicationprocessor/config.go rename to processor/logdedupprocessor/config.go index af9bfa9ead70..eb99fcadd98d 100644 --- a/processor/logdeduplicationprocessor/config.go +++ b/processor/logdedupprocessor/config.go @@ -1,8 +1,8 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -// Package logdeduplicationprocessor provides a processor that counts logs as metrics. -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +// Package logdedupprocessor provides a processor that counts logs as metrics. +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "errors" diff --git a/processor/logdeduplicationprocessor/config_test.go b/processor/logdedupprocessor/config_test.go similarity index 98% rename from processor/logdeduplicationprocessor/config_test.go rename to processor/logdedupprocessor/config_test.go index fab69dde82f1..94e3bc771922 100644 --- a/processor/logdeduplicationprocessor/config_test.go +++ b/processor/logdedupprocessor/config_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "errors" diff --git a/processor/logdeduplicationprocessor/counter.go b/processor/logdedupprocessor/counter.go similarity index 97% rename from processor/logdeduplicationprocessor/counter.go rename to processor/logdedupprocessor/counter.go index 7bfc264793d9..c3a26baa789e 100644 --- a/processor/logdeduplicationprocessor/counter.go +++ b/processor/logdedupprocessor/counter.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "hash/fnv" diff --git a/processor/logdeduplicationprocessor/counter_test.go b/processor/logdedupprocessor/counter_test.go similarity index 99% rename from processor/logdeduplicationprocessor/counter_test.go rename to processor/logdedupprocessor/counter_test.go index 1d8778b1f7ee..9e59fb50849f 100644 --- a/processor/logdeduplicationprocessor/counter_test.go +++ b/processor/logdedupprocessor/counter_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "testing" diff --git a/processor/logdeduplicationprocessor/factory.go b/processor/logdedupprocessor/factory.go similarity index 82% rename from processor/logdeduplicationprocessor/factory.go rename to processor/logdedupprocessor/factory.go index b3f0a49426f4..b4917dc0668f 100644 --- a/processor/logdeduplicationprocessor/factory.go +++ b/processor/logdedupprocessor/factory.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "context" @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/processor" - "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor/internal/metadata" + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor/internal/metadata" ) // NewFactory creates a new factory for the processor. diff --git a/processor/logdeduplicationprocessor/factory_test.go b/processor/logdedupprocessor/factory_test.go similarity index 93% rename from processor/logdeduplicationprocessor/factory_test.go rename to processor/logdedupprocessor/factory_test.go index 9775818c280e..bbfbf2705b5a 100644 --- a/processor/logdeduplicationprocessor/factory_test.go +++ b/processor/logdedupprocessor/factory_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "context" @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/processor" - "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor/internal/metadata" + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor/internal/metadata" ) func TestNewProcessorFactory(t *testing.T) { diff --git a/processor/logdeduplicationprocessor/field_remover.go b/processor/logdedupprocessor/field_remover.go similarity index 95% rename from processor/logdeduplicationprocessor/field_remover.go rename to processor/logdedupprocessor/field_remover.go index 7fa5af761c9c..bd82a7715214 100644 --- a/processor/logdeduplicationprocessor/field_remover.go +++ b/processor/logdedupprocessor/field_remover.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "fmt" diff --git a/processor/logdeduplicationprocessor/field_remover_test.go b/processor/logdedupprocessor/field_remover_test.go similarity index 98% rename from processor/logdeduplicationprocessor/field_remover_test.go rename to processor/logdedupprocessor/field_remover_test.go index 8b584e94be2a..173bee6b2e9e 100644 --- a/processor/logdeduplicationprocessor/field_remover_test.go +++ b/processor/logdedupprocessor/field_remover_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "fmt" diff --git a/processor/logdeduplicationprocessor/generated_component_test.go b/processor/logdedupprocessor/generated_component_test.go similarity index 99% rename from processor/logdeduplicationprocessor/generated_component_test.go rename to processor/logdedupprocessor/generated_component_test.go index ad8c0ffbb770..ccfce9f63f83 100644 --- a/processor/logdeduplicationprocessor/generated_component_test.go +++ b/processor/logdedupprocessor/generated_component_test.go @@ -1,6 +1,6 @@ // Code generated by mdatagen. DO NOT EDIT. -package logdeduplicationprocessor +package logdedupprocessor import ( "context" diff --git a/processor/logdeduplicationprocessor/generated_package_test.go b/processor/logdedupprocessor/generated_package_test.go similarity index 81% rename from processor/logdeduplicationprocessor/generated_package_test.go rename to processor/logdedupprocessor/generated_package_test.go index 810bd7465961..bb93eddab91e 100644 --- a/processor/logdeduplicationprocessor/generated_package_test.go +++ b/processor/logdedupprocessor/generated_package_test.go @@ -1,6 +1,6 @@ // Code generated by mdatagen. DO NOT EDIT. -package logdeduplicationprocessor +package logdedupprocessor import ( "testing" diff --git a/processor/logdeduplicationprocessor/go.mod b/processor/logdedupprocessor/go.mod similarity index 98% rename from processor/logdeduplicationprocessor/go.mod rename to processor/logdedupprocessor/go.mod index df0c6fb4366c..8dad53114c50 100644 --- a/processor/logdeduplicationprocessor/go.mod +++ b/processor/logdedupprocessor/go.mod @@ -1,4 +1,4 @@ -module github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor +module github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor go 1.21.0 diff --git a/processor/logdeduplicationprocessor/go.sum b/processor/logdedupprocessor/go.sum similarity index 100% rename from processor/logdeduplicationprocessor/go.sum rename to processor/logdedupprocessor/go.sum diff --git a/processor/logdeduplicationprocessor/internal/metadata/generated_status.go b/processor/logdedupprocessor/internal/metadata/generated_status.go similarity index 100% rename from processor/logdeduplicationprocessor/internal/metadata/generated_status.go rename to processor/logdedupprocessor/internal/metadata/generated_status.go diff --git a/processor/logdeduplicationprocessor/metadata.yaml b/processor/logdedupprocessor/metadata.yaml similarity index 100% rename from processor/logdeduplicationprocessor/metadata.yaml rename to processor/logdedupprocessor/metadata.yaml diff --git a/processor/logdeduplicationprocessor/processor.go b/processor/logdedupprocessor/processor.go similarity index 95% rename from processor/logdeduplicationprocessor/processor.go rename to processor/logdedupprocessor/processor.go index 11e0a40a92c0..03bf94bd3e95 100644 --- a/processor/logdeduplicationprocessor/processor.go +++ b/processor/logdedupprocessor/processor.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor" +package logdedupprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor" import ( "context" diff --git a/processor/logdeduplicationprocessor/processor_test.go b/processor/logdedupprocessor/processor_test.go similarity index 99% rename from processor/logdeduplicationprocessor/processor_test.go rename to processor/logdedupprocessor/processor_test.go index 33b94049cbfa..fa4502d265ac 100644 --- a/processor/logdeduplicationprocessor/processor_test.go +++ b/processor/logdedupprocessor/processor_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package logdeduplicationprocessor +package logdedupprocessor import ( "context" diff --git a/processor/logdeduplicationprocessor/timezone.md b/processor/logdedupprocessor/timezone.md similarity index 100% rename from processor/logdeduplicationprocessor/timezone.md rename to processor/logdedupprocessor/timezone.md diff --git a/versions.yaml b/versions.yaml index 11e32e59c0f4..912ece946935 100644 --- a/versions.yaml +++ b/versions.yaml @@ -167,7 +167,7 @@ module-sets: - github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/intervalprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor - - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdeduplicationprocessor + - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/logstransformprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricsgenerationprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor From 130c3675cdf1232f0ff615588b61fcf4a6c1a132 Mon Sep 17 00:00:00 2001 From: Mike Goldsmth Date: Fri, 9 Aug 2024 16:25:42 +0100 Subject: [PATCH 3/3] update processor name in githib templates --- .github/ISSUE_TEMPLATE/bug_report.yaml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yaml | 2 +- .github/ISSUE_TEMPLATE/other.yaml | 2 +- .github/ISSUE_TEMPLATE/unmaintained.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 4e4255915d74..0b330f2fbae7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -170,7 +170,7 @@ body: - processor/groupbytrace - processor/interval - processor/k8sattributes - - processor/logdeduplication + - processor/logdedup - processor/logstransform - processor/metricsgeneration - processor/metricstransform diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 3f465bf67586..289645e9eeb8 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -164,7 +164,7 @@ body: - processor/groupbytrace - processor/interval - processor/k8sattributes - - processor/logdeduplication + - processor/logdedup - processor/logstransform - processor/metricsgeneration - processor/metricstransform diff --git a/.github/ISSUE_TEMPLATE/other.yaml b/.github/ISSUE_TEMPLATE/other.yaml index d61626396e69..58198b54296b 100644 --- a/.github/ISSUE_TEMPLATE/other.yaml +++ b/.github/ISSUE_TEMPLATE/other.yaml @@ -164,7 +164,7 @@ body: - processor/groupbytrace - processor/interval - processor/k8sattributes - - processor/logdeduplication + - processor/logdedup - processor/logstransform - processor/metricsgeneration - processor/metricstransform diff --git a/.github/ISSUE_TEMPLATE/unmaintained.yaml b/.github/ISSUE_TEMPLATE/unmaintained.yaml index 04e1f0498168..2d812b2c9f51 100644 --- a/.github/ISSUE_TEMPLATE/unmaintained.yaml +++ b/.github/ISSUE_TEMPLATE/unmaintained.yaml @@ -169,7 +169,7 @@ body: - processor/groupbytrace - processor/interval - processor/k8sattributes - - processor/logdeduplication + - processor/logdedup - processor/logstransform - processor/metricsgeneration - processor/metricstransform