Skip to content

v0.4.0

Choose a tag to compare

@robert-northmind robert-northmind released this 02 Jul 13:30
· 142 commits to main since this release
507212b

What's Changed

🚀 Major Features & Enhancements

v0.4.0 - Package Structure & API Improvements

  • BREAKING: Package refactoring - main entry point changed from faro_sdk.dart to faro.dart
  • BREAKING: Synchronous telemetry API - removed unnecessary async overhead from pushEvent(), pushLog(), etc.
  • BREAKING: Type-safe LogLevel enum - pushLog() now requires LogLevel parameter instead of string
  • Enhanced tracing API with startSpan<T>(), startSpanManual(), and getActiveSpan() methods
  • Zone-based span context management with automatic session ID injection
  • Centralized session management with SessionIdProvider

🛠️ Migration Required for v0.4.0

// Update imports
import 'package:faro/faro.dart'; // was: faro_sdk.dart

// Remove await from telemetry methods
Faro().pushEvent('event_name'); // was: await Faro().pushEvent(...)

// Use LogLevel enum
Faro().pushLog('message', level: LogLevel.info); // was: level: 'info'

📈 Performance & Developer Experience

  • Improved performance with synchronous telemetry API
  • Better type safety with LogLevel enum
  • Enhanced debugging with readable crash timestamps
  • More comprehensive HTTP request monitoring
  • Cleaner package structure following Flutter conventions