From 56378e304b865fd07a408bd07687fb006e018c85 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 21:54:51 +0000 Subject: [PATCH] fix: cap dartastic_opentelemetry_api below 1.0.0-rc.4 dartastic_opentelemetry_api 1.0.0-rc.4 (2026-10-08) removed members that dartastic_opentelemetry 1.1.0-beta.15 still calls (APISpan.attributes, spanEvents, status, statusDescription, ...), so that pair does not compile: 16 of 19 test files fail to load on main, while `flutter analyze` stays green because it does not analyse a dependency's own sources. `^1.0.0-rc.3` does not keep rc.4 out. pub selects this package first and takes the newest, rc.4, then settles for beta.15, because beta.16 (which carries the same cap) is the one release that cannot sit beside rc.4. Every fresh `pub get` therefore got the broken pair, beta.16's existence notwithstanding. With the cap a fresh resolve of the package and of the example is beta.16 with rc.3; format, analyze and all 217 tests pass. Lift the cap when dartastic_opentelemetry ships a release built on rc.4. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01XLy7TiPAxtVjPKEwQ9iwBa --- pubspec.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 58a85a6..16a5161 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,16 @@ dependencies: # not a downgrade. dartastic_opentelemetry: ^1.1.0-beta.15 # Semantic conventions: `App.appBuildId` for `app.build_id`. - dartastic_opentelemetry_api: ^1.0.0-rc.3 + # + # Capped below rc.4, on purpose. rc.4 (2026-10-08) removed members that + # `dartastic_opentelemetry` beta.15 still calls (`APISpan.attributes`, + # `spanEvents`, `status`, ...), so that pair does not compile. `^1.0.0-rc.3` + # does not keep it out: pub resolves this package first, picks the newest + # (rc.4), and then settles for beta.15 because beta.16, which carries the + # same cap, is the one release that cannot sit beside rc.4. Every fresh + # `pub get` — CI's, an app's, the example's — got the broken pair. Lift the + # cap when `dartastic_opentelemetry` ships a release built on rc.4. + dartastic_opentelemetry_api: '>=1.0.0-rc.3 <1.0.0-rc.4' # `Int64`, which the SDK's public log-record API takes and returns for # timestamps but does not re-export. Already in the graph via the SDK, so # this adds no package an install did not already have.