Skip to content

Promote receiver.prometheusreceiver.RemoveLegacyResourceAttributes feature gate to stable#40572

Merged
songy23 merged 1 commit into
open-telemetry:mainfrom
dashpole:stable_legacy_resource_attrs
Jun 10, 2025
Merged

Promote receiver.prometheusreceiver.RemoveLegacyResourceAttributes feature gate to stable#40572
songy23 merged 1 commit into
open-telemetry:mainfrom
dashpole:stable_legacy_resource_attrs

Conversation

@dashpole
Copy link
Copy Markdown
Contributor

@dashpole dashpole commented Jun 9, 2025

Description

This feature gate removes legacy resource attributes that were removed from the semconv a long time ago.

Users can easily rename the new attributes using the transform processor.

It has been in beta since v0.126.0

cc @ArthurSens

@dashpole dashpole requested review from a team and ArthurSens as code owners June 9, 2025 21:05
@dashpole dashpole force-pushed the stable_legacy_resource_attrs branch from cf74ae2 to 126036b Compare June 9, 2025 21:05
@github-actions github-actions Bot added the receiver/prometheus Prometheus receiver label Jun 9, 2025
@dashpole dashpole force-pushed the stable_legacy_resource_attrs branch from 126036b to 1cbc4d6 Compare June 9, 2025 21:06
{
name: "missing port with duplicates",
job: "job", instance: "myinstance", sdLabels: labels.New(labels.Label{Name: "__scheme__", Value: "https"}),
want: makeResourceWithJobInstanceSchemeDuplicate(&jobInstanceDefinition{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makeResourceWithJobInstanceSchemeDuplicate can be removed too

@dashpole dashpole force-pushed the stable_legacy_resource_attrs branch from 1cbc4d6 to c6ea7f8 Compare June 10, 2025 15:00
@songy23 songy23 merged commit 5accecf into open-telemetry:main Jun 10, 2025
177 checks passed
@github-actions github-actions Bot added this to the next release milestone Jun 10, 2025
dd-jasminesun pushed a commit to DataDog/opentelemetry-collector-contrib that referenced this pull request Jun 23, 2025
…ature gate to stable (open-telemetry#40572)

#### Description

This feature gate removes legacy resource attributes that were removed
from the semconv a long time ago.

Users can easily rename the new attributes using the transform
processor.

It has been in beta since v0.126.0

cc @ArthurSens
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…ature gate to stable (open-telemetry#40572)

#### Description

This feature gate removes legacy resource attributes that were removed
from the semconv a long time ago.

Users can easily rename the new attributes using the transform
processor.

It has been in beta since v0.126.0

cc @ArthurSens
gracewehner added a commit to Azure/prometheus-collector that referenced this pull request Aug 13, 2025
This PR upgrades the otelcollector to the latest version available for
the opentelemetry-collector and opentelemetry-operator.

It was automatically generated by the GitHub Actions workflow.

The summary of the OSS changelog is below:
# Prometheusreceiver Changes
## v0.127.0 to v0.131.0

Generated on: 2025-08-04 17:36:24

---

### v0.131.0
- [**FEATURE**] `prometheusreceiver`: Add retry logic for connection
refused errors so the collector doesn't crash at startup.
([#40982](open-telemetry/opentelemetry-collector-contrib#40982))
This change adds retry logic for connection refused errors. The target
allocator could be busy starting up the receiver and the first
connection attempt may fail.
- [**FEATURE**] `receiver/prometheus`: Add support for
otel_scope_schema_url label mapping to OpenTelemetry ScopeMetrics schema
URL field
([#41488](open-telemetry/opentelemetry-collector-contrib#41488))
- [**FEATURE**] `receiver/prometheusremotewrite`: Add support for Native
Histogram Custom Buckets (NHCB).
([#41043](open-telemetry/opentelemetry-collector-contrib#41043))
- [**BUG FIX**] `receiver/prometheus`: Fix otel_scope_name and
otel_scope_version labels not being dropped from metric attributes
([#41456](open-telemetry/opentelemetry-collector-contrib#41456))
### v0.130.0
- [**BUG FIX**] `receiver/prometheusreceiver`: Fixes masking of
authentication credentials in Prometheus receiver, when reloading the
Prometheus config.
([#40520](open-telemetry/opentelemetry-collector-contrib#40520),
[#40916](open-telemetry/opentelemetry-collector-contrib#40916))
- [**BUG FIX**] `receiver/prometheusremotewrite`: Handle metrics with
unspecified types without panicking.
([#41005](open-telemetry/opentelemetry-collector-contrib#41005))
### v0.129.0
- [**FEATURE**] `prometheusreceiver`: Promote the
receiver.prometheusreceiver.RemoveLegacyResourceAttributes featuregate
to stable
([#40572](open-telemetry/opentelemetry-collector-contrib#40572))
It has been beta since v0.126.0
- [**BUG FIX**] `prometheusreceiver`: Fix invalid metric name validation
error in scrape start from target allocator.
([#35459](open-telemetry/opentelemetry-collector-contrib#35459),
[#40788](open-telemetry/opentelemetry-collector-contrib#40788))
Prometheus made setting metric_name_validation_scheme,
metric_name_escaping_scheme mandatory mandatory, use sane defaults.

## Summary

| Category | Count |
|----------|-------|
| Breaking Changes | 0 |
| Features | 4 |
| Bug Fixes | 4 |
| Other Changes | 0 |
| **Total** | **8** |

# Target-allocator Changes
## v0.127.0 to v0.131.0

Generated on: 2025-08-04 17:36:38

---

### 0.131.0
- [**FEATURE**] `manager, target-allocator, opamp-bridge, must-gather`:
add -trimpath when building binaries
([#4078](open-telemetry/opentelemetry-operator#4078))
- [**FEATURE**] `collector, targer allocator, opamp`: Require Go 1.24+
to build the collector, target allocator, and opamp.
([#4173](open-telemetry/opentelemetry-operator#4173))
- [**BUG FIX**] `target allocator`: check CRD availability before
registering informers
([#3987](open-telemetry/opentelemetry-operator#3987))
- [**BUG FIX**] `target allocator`: Allow collector to use TLS Config
from Target Allocator with ScrapeConfig
([#3724](open-telemetry/opentelemetry-operator#3724))
This change allows the target allocator to configure TLS Config for a
collector using the ScrapeConfig.
### 0.129.1
- [**BREAKING**] `targetallocator, collector`: Remove stable feature
gate PrometheusOperatorIsAvailable
([#4141](open-telemetry/opentelemetry-operator#4141))
- [**FEATURE**] `target allocator`: Adds support for HTML output in the
target allocator.
([#3622](open-telemetry/opentelemetry-operator#3622))
- [**BUG FIX**] `target allocator`: ensure stable iteration order of
target labels when generating hash
([#4082](open-telemetry/opentelemetry-operator#4082))
- [**BUG FIX**] `target allocator`: Fix OpenShift must-gather for Target
Allocator
([#4084](open-telemetry/opentelemetry-operator#4084))

## Summary

| Category | Count |
|----------|-------|
| Breaking Changes | 1 |
| Features | 3 |
| Bug Fixes | 4 |
| Other Changes | 0 |
| **Total** | **8** |

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.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.

2 participants