Skip to content

Commit d39302c

Browse files
committed
[receiver/elasticsearch] Remove feature gate
1 parent e140374 commit d39302c

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: receiver/elasticsearch
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Remove receiver.elasticsearch.emitNodeVersionAttr feature gate
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [31221]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

receiver/elasticsearchreceiver/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,3 @@ The following metric are available with versions:
6666
- `elasticsearch.cluster.state_update.time` >= [7.16.0](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/release-notes-7.16.0.html)
6767

6868
Details about the metrics produced by this receiver can be found in [metadata.yaml](./metadata.yaml)
69-
70-
## Feature gate configurations
71-
72-
See the [Collector feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#collector-feature-gates) for an overview of feature gates in the collector.
73-
74-
**BETA**: `receiver.elasticsearch.emitNodeVersionAttr`
75-
76-
The feature gate `receiver.elasticsearch.emitNodeVersionAttr` when enabled will enrich all node metrics with an
77-
resource attribute representing the node version.
78-
79-
This feature gate is enabled by default, and eventually the old implementation will be removed. It aims to give users time
80-
to migrate to the new implementation. The target release for this featuregate to be permanently enabled is 0.82.0.

receiver/elasticsearchreceiver/scraper.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111

1212
"github.com/hashicorp/go-version"
1313
"go.opentelemetry.io/collector/component"
14-
"go.opentelemetry.io/collector/featuregate"
1514
"go.opentelemetry.io/collector/pdata/pcommon"
1615
"go.opentelemetry.io/collector/pdata/pmetric"
1716
"go.opentelemetry.io/collector/receiver"
@@ -30,14 +29,6 @@ var (
3029
v, _ := version.NewVersion("7.13")
3130
return v
3231
}()
33-
34-
_ = featuregate.GlobalRegistry().MustRegister(
35-
"receiver.elasticsearch.emitNodeVersionAttr",
36-
featuregate.StageStable,
37-
featuregate.WithRegisterToVersion("0.82.0"),
38-
featuregate.WithRegisterDescription("All node metrics will be enriched with the node version resource attribute."),
39-
featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16847"),
40-
)
4132
)
4233

4334
var errUnknownClusterStatus = errors.New("unknown cluster status")

0 commit comments

Comments
 (0)