Skip to content

revert: restore OTel exporter API compatibility#2256

Closed
zeitlinger wants to merge 1 commit into
mainfrom
revert/otel-instrumentation-2.29-bump
Closed

revert: restore OTel exporter API compatibility#2256
zeitlinger wants to merge 1 commit into
mainfrom
revert/otel-instrumentation-2.29-bump

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

  • revert otel.instrumentation.version from 2.29.0-alpha to 2.28.1-alpha
  • restore docs/apidiffs/current_vs_latest/prometheus-metrics-exporter-opentelemetry-shaded.txt to No changes.

Why

PR #2236 updated the shaded OpenTelemetry dependency and changed the public constructor type of OpenTelemetryExporter in the shaded exporter module.

That introduced a real @StableApi incompatibility on main:

  • prometheus-metrics-exporter-opentelemetry-shaded: CONSTRUCTOR_REMOVED

Because the compatibility gate compares every PR against the pinned release baseline, once that breaking change landed on main, unrelated PRs started inheriting the same api-diff failure.

main should not require per-PR acceptance labels for an already-merged patch/minor-line change, so this PR restores compatibility on main by reverting the dependency bump.

Validation

  • mise run lint:fix
  • mise run api-diff (interrupted after the affected modules completed)
  • verified module-level japicmp output for both exporter variants:
    • prometheus-metrics-exporter-opentelemetry/target/japicmp/api-diff.diffNo changes.
    • prometheus-metrics-exporter-opentelemetry-shaded/target/japicmp/api-diff.diffNo changes.

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger closed this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant