From 384584859cabec41d707bd0c461fb2cad4207053 Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Tue, 30 Jun 2026 15:58:17 +0100 Subject: [PATCH 1/2] [pkg/fileconsumer] Move feature gate filelog.protobufCheckpointEncoding to beta and keep it enabled by default Signed-off-by: Paulo Dias --- .chloggen/feat_fileconsumer_proto_beta.yaml | 27 +++++++++++++++++++ pkg/stanza/fileconsumer/documentation.md | 2 +- .../metadata/generated_feature_gates.go | 2 +- pkg/stanza/fileconsumer/metadata.yaml | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .chloggen/feat_fileconsumer_proto_beta.yaml diff --git a/.chloggen/feat_fileconsumer_proto_beta.yaml b/.chloggen/feat_fileconsumer_proto_beta.yaml new file mode 100644 index 0000000000000..b3b605360d5f2 --- /dev/null +++ b/.chloggen/feat_fileconsumer_proto_beta.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: "breaking" + +# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog) +component: "pkg/fileconsumer" + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Move feature gate filelog.protobufCheckpointEncoding to beta and keep it enabled by default + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [] + +# (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: [user] diff --git a/pkg/stanza/fileconsumer/documentation.md b/pkg/stanza/fileconsumer/documentation.md index 4741d5c8f1515..93817d86e3690 100644 --- a/pkg/stanza/fileconsumer/documentation.md +++ b/pkg/stanza/fileconsumer/documentation.md @@ -31,7 +31,7 @@ This component has the following feature gates: | `filelog.allowFileDeletion` | alpha | When enabled, allows usage of the `delete_after_read` setting. | v0.70.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16314) | | `filelog.allowHeaderMetadataParsing` | beta | When enabled, allows usage of the `header` setting. | v0.73.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/18198) | | `filelog.mtimeSortType` | alpha | When enabled, allows usage of `ordering_criteria.mode` = `mtime`. | v0.89.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/27812) | -| `filelog.protobufCheckpointEncoding` | alpha | Use protobuf encoding for checkpoint storage instead of JSON. | v0.148.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/43266) | +| `filelog.protobufCheckpointEncoding` | beta | Use protobuf encoding for checkpoint storage instead of JSON. | v0.148.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/43266) | | `filelog.windows.caseInsensitive` | alpha | On Windows, make matching patterns in include/exclude case insensitive. | v0.142.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/43777) | For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation. diff --git a/pkg/stanza/fileconsumer/internal/metadata/generated_feature_gates.go b/pkg/stanza/fileconsumer/internal/metadata/generated_feature_gates.go index 30c8454280c98..9cad743454d34 100644 --- a/pkg/stanza/fileconsumer/internal/metadata/generated_feature_gates.go +++ b/pkg/stanza/fileconsumer/internal/metadata/generated_feature_gates.go @@ -32,7 +32,7 @@ var FilelogMtimeSortTypeFeatureGate = featuregate.GlobalRegistry().MustRegister( var FilelogProtobufCheckpointEncodingFeatureGate = featuregate.GlobalRegistry().MustRegister( "filelog.protobufCheckpointEncoding", - featuregate.StageAlpha, + featuregate.StageBeta, featuregate.WithRegisterDescription("Use protobuf encoding for checkpoint storage instead of JSON."), featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/43266"), featuregate.WithRegisterFromVersion("v0.148.0"), diff --git a/pkg/stanza/fileconsumer/metadata.yaml b/pkg/stanza/fileconsumer/metadata.yaml index 9401a3b312a16..4c950a049d416 100644 --- a/pkg/stanza/fileconsumer/metadata.yaml +++ b/pkg/stanza/fileconsumer/metadata.yaml @@ -32,7 +32,7 @@ feature_gates: reference_url: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/27812 skip_strict_validation: true - id: filelog.protobufCheckpointEncoding - stage: alpha + stage: beta description: >- Use protobuf encoding for checkpoint storage instead of JSON. from_version: v0.148.0 From 81889877b69acd99e620c2eebdc74d38be5caad0 Mon Sep 17 00:00:00 2001 From: Paulo Dias <44772900+paulojmdias@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:59:44 +0100 Subject: [PATCH 2/2] Apply suggestion from @paulojmdias --- .chloggen/feat_fileconsumer_proto_beta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chloggen/feat_fileconsumer_proto_beta.yaml b/.chloggen/feat_fileconsumer_proto_beta.yaml index b3b605360d5f2..c33e6f34e7b5d 100644 --- a/.chloggen/feat_fileconsumer_proto_beta.yaml +++ b/.chloggen/feat_fileconsumer_proto_beta.yaml @@ -10,7 +10,7 @@ component: "pkg/fileconsumer" note: Move feature gate filelog.protobufCheckpointEncoding to beta and keep it enabled by default # Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [] +issues: [49387] # (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.