Skip to content

Disallow the usage of ToVersion for any stage other than stable or deprecated#15040

Merged
codeboten merged 3 commits intoopen-telemetry:mainfrom
dmathieu:no-to-version-other-stable-deprecated
Apr 1, 2026
Merged

Disallow the usage of ToVersion for any stage other than stable or deprecated#15040
codeboten merged 3 commits intoopen-telemetry:mainfrom
dmathieu:no-to-version-other-stable-deprecated

Conversation

@dmathieu
Copy link
Copy Markdown
Member

Looking at #11341, I see we're lacking validations to ensure ToVersion isn't set for stages other than stable or deprecated, which is what the doc asks for.

@dmathieu dmathieu changed the title [chore] disallow the usage of ToVersion for any stage other than stable or deprecated Disallow the usage of ToVersion for any stage other than stable or deprecated Mar 31, 2026
@dmathieu dmathieu marked this pull request as ready for review March 31, 2026 14:23
@dmathieu dmathieu requested review from a team and dmitryax as code owners March 31, 2026 14:23
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.22%. Comparing base (137fe8f) to head (122ff27).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15040      +/-   ##
==========================================
- Coverage   91.24%   91.22%   -0.03%     
==========================================
  Files         697      697              
  Lines       44627    44629       +2     
==========================================
- Hits        40721    40711      -10     
- Misses       2767     2775       +8     
- Partials     1139     1143       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codeboten codeboten enabled auto-merge April 1, 2026 14:38
@codeboten codeboten added this pull request to the merge queue Apr 1, 2026
Merged via the queue into open-telemetry:main with commit d754150 Apr 1, 2026
66 checks passed
@dmathieu dmathieu deleted the no-to-version-other-stable-deprecated branch April 1, 2026 15:39
TimoBehrendt pushed a commit to TimoBehrendt/tracebasedlogsampler that referenced this pull request Apr 22, 2026
…ocessortest to v0.150.0 (#57)

This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [go.opentelemetry.io/collector/processor/processortest](https://github.com/open-telemetry/opentelemetry-collector) | `v0.149.0` → `v0.150.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fprocessor%2fprocessortest/v0.150.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fprocessor%2fprocessortest/v0.149.0/v0.150.0?slim=true) |

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-collector (go.opentelemetry.io/collector/processor/processortest)</summary>

### [`v0.150.0`](https://github.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1560v01500)

[Compare Source](open-telemetry/opentelemetry-collector@v0.149.0...v0.150.0)

##### 💡 Enhancements 💡

- `all`: Update semconv package from 1.38.0 to 1.40.0 ([#&#8203;15095](open-telemetry/opentelemetry-collector#15095))
- `cmd/mdatagen`: Only allow the `ToVersion` feature flag attribute to be set for the `Stable` and `Deprecated` stages. ([#&#8203;15040](open-telemetry/opentelemetry-collector#15040))
  To better match the feature flag README
  (<https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#feature-lifecycle>).

##### 🧰 Bug fixes 🧰

- `exporter/debug`: Guard from out of bounds profiles dictionary indices ([#&#8203;14803](open-telemetry/opentelemetry-collector#14803))

- `pdata/pprofile`: create a copy when the input is marked as read-only ([#&#8203;15080](open-telemetry/opentelemetry-collector#15080))

- `pkg/otelcol`: Fix missing default values in unredacted print-config command by introducing confmap.WithUnredacted MarshalOption. ([#&#8203;14750](open-telemetry/opentelemetry-collector#14750))
  Resolves an issue where the unredacted mode output omitted all default-valued options. By introducing a new MarshalOption to disable redaction directly at the confmap encoding level, the unredacted mode now preserves all component defaults natively without requiring post-processing.

- `pkg/service`: Headers on the internal telemetry OTLP exporter are now redacted when the configuration is marshaled ([#&#8203;14756](open-telemetry/opentelemetry-collector#14756))

<!-- previous-version -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Reviewed-on: https://gitea.t000-n.de/t.behrendt/tracebasedlogsampler/pulls/57
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
TimoBehrendt pushed a commit to TimoBehrendt/tracebasedlogsampler that referenced this pull request Apr 23, 2026
…1.56.0 (#52)

This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [go.opentelemetry.io/collector/confmap](https://github.com/open-telemetry/opentelemetry-collector) | `v1.55.0` → `v1.56.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcollector%2fconfmap/v1.56.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcollector%2fconfmap/v1.55.0/v1.56.0?slim=true) |

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-collector (go.opentelemetry.io/collector/confmap)</summary>

### [`v1.56.0`](https://github.com/open-telemetry/opentelemetry-collector/blob/HEAD/CHANGELOG.md#v1560v01500)

##### 💡 Enhancements 💡

- `all`: Update semconv package from 1.38.0 to 1.40.0 ([#&#8203;15095](open-telemetry/opentelemetry-collector#15095))
- `cmd/mdatagen`: Only allow the `ToVersion` feature flag attribute to be set for the `Stable` and `Deprecated` stages. ([#&#8203;15040](open-telemetry/opentelemetry-collector#15040))
  To better match the feature flag README
  (<https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#feature-lifecycle>).

##### 🧰 Bug fixes 🧰

- `exporter/debug`: Guard from out of bounds profiles dictionary indices ([#&#8203;14803](open-telemetry/opentelemetry-collector#14803))

- `pdata/pprofile`: create a copy when the input is marked as read-only ([#&#8203;15080](open-telemetry/opentelemetry-collector#15080))

- `pkg/otelcol`: Fix missing default values in unredacted print-config command by introducing confmap.WithUnredacted MarshalOption. ([#&#8203;14750](open-telemetry/opentelemetry-collector#14750))
  Resolves an issue where the unredacted mode output omitted all default-valued options. By introducing a new MarshalOption to disable redaction directly at the confmap encoding level, the unredacted mode now preserves all component defaults natively without requiring post-processing.

- `pkg/service`: Headers on the internal telemetry OTLP exporter are now redacted when the configuration is marshaled ([#&#8203;14756](open-telemetry/opentelemetry-collector#14756))

<!-- previous-version -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Reviewed-on: https://gitea.t000-n.de/t.behrendt/tracebasedlogsampler/pulls/52
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
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.

3 participants