Skip to content

[chore][receiver/prometheus]: remove workaround for Prom issue 16217#41125

Merged
songy23 merged 1 commit into
open-telemetry:mainfrom
krajorama:krajo/remove-workaround-nh-exemplars
Jul 8, 2025
Merged

[chore][receiver/prometheus]: remove workaround for Prom issue 16217#41125
songy23 merged 1 commit into
open-telemetry:mainfrom
krajorama:krajo/remove-workaround-nh-exemplars

Conversation

@krajorama
Copy link
Copy Markdown
Member

@krajorama krajorama commented Jul 7, 2025

Description

Upstream has the fix for prometheus/prometheus#16217 , so time to remove the workaround.

I didn't remember if I had a test for this, so reverted to 929f5f9 before
Bump prometheus to 0.304.1 (#40397)

There tests fail without the fix in

TestNativeVsClassicHistogramScrapeViaProtobuf/feature_disabled_scrape_classic_on/target1/target1 (re-run 1) (0.00s)
    metrics_receiver_protobuf_test.go:312:
Error:      	Not equal:
            	expected: 1
              	actual  : 3

Now tests don't fail without the workaround anymore.

Link to tracking issue

N/A

Testing

Unit tests pass.

Documentation

N/A

Upstream has the fix for
prometheus/prometheus#16217

I didn't remember if I had a test for this, so reverted to
929f5f9 before
Bump prometheus to 0.304.1 (open-telemetry#40397)

There tests fail without the fix in
TestNativeVsClassicHistogramScrapeViaProtobuf/feature_disabled_scrape_classic_on/target1/target1 (re-run 1) (0.00s)
    metrics_receiver_protobuf_test.go:312:
Error:      	Not equal:
        	    	expected: 1
        	      	actual  : 3

Now tests don't fail without the workaround anymore.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama krajorama marked this pull request as ready for review July 7, 2025 08:35
@krajorama krajorama requested review from a team, ArthurSens and dashpole as code owners July 7, 2025 08:35
@github-actions github-actions Bot added the receiver/prometheus Prometheus receiver label Jul 7, 2025
@github-actions github-actions Bot requested a review from Aneurysm9 July 7, 2025 08:35
@songy23 songy23 merged commit c70ada3 into open-telemetry:main Jul 8, 2025
179 of 183 checks passed
@github-actions github-actions Bot added this to the next release milestone Jul 8, 2025
constanca-m pushed a commit to constanca-m/opentelemetry-collector-contrib that referenced this pull request Jul 21, 2025
…pen-telemetry#41125)

#### Description

Upstream has the fix for
prometheus/prometheus#16217 , so time to
remove the workaround.

I didn't remember if I had a test for this, so reverted to
929f5f9 before
Bump prometheus to 0.304.1 (open-telemetry#40397)

There tests fail without the fix in
```
TestNativeVsClassicHistogramScrapeViaProtobuf/feature_disabled_scrape_classic_on/target1/target1 (re-run 1) (0.00s)
    metrics_receiver_protobuf_test.go:312:
Error:      	Not equal:
            	expected: 1
              	actual  : 3
```

Now tests don't fail without the workaround anymore.

#### Link to tracking issue

N/A

#### Testing

Unit tests pass.

#### Documentation

N/A

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…pen-telemetry#41125)

#### Description

Upstream has the fix for
prometheus/prometheus#16217 , so time to
remove the workaround.

I didn't remember if I had a test for this, so reverted to
929f5f9 before
Bump prometheus to 0.304.1 (open-telemetry#40397)

There tests fail without the fix in
```
TestNativeVsClassicHistogramScrapeViaProtobuf/feature_disabled_scrape_classic_on/target1/target1 (re-run 1) (0.00s)
    metrics_receiver_protobuf_test.go:312:
Error:      	Not equal:
            	expected: 1
              	actual  : 3
```

Now tests don't fail without the workaround anymore.

#### Link to tracking issue

N/A

#### Testing

Unit tests pass.

#### Documentation

N/A

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

receiver/prometheus Prometheus receiver

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants