Skip to content

Update to dartastic_opentelemetry 1.1.0-beta.6 / api 1.0.0-beta.7, fix #15 - #19

Open
benjaben wants to merge 1 commit into
MindfulSoftwareLLC:mainfrom
benjaben:fix/dartastic-beta-compatibility
Open

Update to dartastic_opentelemetry 1.1.0-beta.6 / api 1.0.0-beta.7, fix #15#19
benjaben wants to merge 1 commit into
MindfulSoftwareLLC:mainfrom
benjaben:fix/dartastic-beta-compatibility

Conversation

@benjaben

Copy link
Copy Markdown

Summary

Breaking API changes addressed

Change Files
Logger renamed to OTelLogger ui_logger.dart, ui_logger_create.dart, barrel export
TracerProvider/Tracer gained timeProvider field ui_tracer_provider.dart, ui_tracer.dart
recordSpan, recordSpanAsync, startSpanWithContext removed from Tracer interface ui_tracer.dart (implemented locally via startSpan)
SessionViewSemantics renamed to RumSessionView flutterrific_otel.dart, barrel export
~25 *Resource / *Semantics types removed from API package barrel export (flutterrific_opentelemetry.dart)
Redundant dartastic_opentelemetry_api imports (now subsumed by SDK import) 6 lib files + 1 test file

Test plan

  • flutter analyze --fatal-infos — no issues
  • flutter test — all 30 tests pass
  • OTelNavigatorObserver with standard MaterialApp + Navigator.push() — confirmed working via navigation_observer_test.dart (OTelNavigatorObserver with MaterialApp (non-GoRouter) group)

Closes #15

Fixes compilation against the dartastic beta releases, resolving the
breaking API changes introduced since the alpha versions:

- Rename Logger → OTelLogger throughout (ui_logger, ui_logger_create,
  barrel export)
- Add timeProvider getter/setter to UITracerProvider and UITracer
- Remove @OverRide from recordSpan/recordSpanAsync/startSpanWithContext
  (removed from Tracer interface); implement locally via startSpan
- Replace SessionViewSemantics → RumSessionView (ui_semantics rename)
- Remove ~25 Resource/Semantics types from barrel export that no longer
  exist in the API package (DatabaseResource, DeploymentResource, etc.)
- Remove redundant dartastic_opentelemetry_api imports now subsumed by
  the SDK import

All 30 tests pass, including the MaterialApp (non-GoRouter) navigation
tests that confirm the invalid-cast fix from issue MindfulSoftwareLLC#15 is working.

Closes MindfulSoftwareLLC#15
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.

[Bug]: OTelNavigatorObserver crashes when used with MaterialApp - invalid cast to Page

1 participant