Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[exporter/prometheusremotewrite] change feature gate to stable #37399

Merged

Conversation

perebaj
Copy link
Contributor

@perebaj perebaj commented Jan 21, 2025

Description

  • Change exporter.prometheusremotewriteexporter.deprecateCreatedMetricfeature gate from Beta to Stable
  • Adapt some test cases that were considering this feature as disable

Link to tracking issue

#35003

@perebaj perebaj marked this pull request as ready for review January 22, 2025 10:53
@perebaj perebaj requested a review from a team as a code owner January 22, 2025 10:53
@perebaj perebaj requested a review from ChrsMark January 22, 2025 10:53
@@ -44,7 +44,7 @@ const (

var exportCreatedMetricGate = featuregate.GlobalRegistry().MustRegister(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

panic: no removal version set for Stable gate "exporter.prometheusremotewriteexporter.deprecateCreatedMetric"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Fixed b2dea51

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhmm.

build-and-test / integration-tests-matrix (pkg) (pull_request)Failing after 3m

"exporter.prometheusremotewriteexporter.deprecateCreatedMetric" is stable, can not be disabled

Taking a look...

…ebaj/opentelemetry-collector-contrib into deprecate-created-metric-beta2stable
@ArthurSens
Copy link
Member

There are some tests that need to be removed, since the featuregate can't be disabled now

@perebaj
Copy link
Contributor Author

perebaj commented Jan 22, 2025

There are some tests that need to be removed, since the featuregate can't be disabled now

I think that I removed the right ones a168f9e

# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: deprecation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed this is a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -704,7 +704,7 @@ func TestPrometheusConverter_AddSummaryDataPoints(t *testing.T) {
}{
{
name: "summary with start time",
isGateEnabled: false,
isGateEnabled: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isGateEnabled can simply be removed everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@songy23 songy23 merged commit 1d9f279 into open-telemetry:main Jan 24, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 24, 2025
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Jan 26, 2025
…telemetry#37399)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

* Change
`exporter.prometheusremotewriteexporter.deprecateCreatedMetric`feature
gate from Beta to Stable
* Adapt some test cases that were considering this feature as disable

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue


open-telemetry#35003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants