Skip to content

fix: stabilize OpenTelemetry exporter builder API#2257

Open
zeitlinger wants to merge 1 commit into
mainfrom
fix/deprecate-otel-exporter-reader-ctor
Open

fix: stabilize OpenTelemetry exporter builder API#2257
zeitlinger wants to merge 1 commit into
mainfrom
fix/deprecate-otel-exporter-reader-ctor

Conversation

@zeitlinger

@zeitlinger zeitlinger commented Jun 26, 2026

Copy link
Copy Markdown
Member

Blocked by #2258

Summary

  • deprecate the OpenTelemetryExporter(MetricReader) constructor instead of treating it as stable API
  • make the builder entry points the stable surface for OpenTelemetryExporter
  • grandfather the already-accepted constructor removal in the API diff workflow so unrelated PRs stop inheriting the failure on main

Testing

  • mise run lint:fix
  • mise run build
  • ./mvnw -B verify -pl prometheus-metrics-exporter-opentelemetry,prometheus-metrics-exporter-opentelemetry-shaded -am -P 'api-diff,!examples-and-integration-tests' -DskipTests -Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger force-pushed the fix/deprecate-otel-exporter-reader-ctor branch from 8342b7a to 46b6f9d Compare June 26, 2026 14:59
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