Repository navigation
v0.4.0
What's Changed
🚀 Major Features & Enhancements
v0.4.0 - Package Structure & API Improvements
- BREAKING: Package refactoring - main entry point changed from
faro_sdk.darttofaro.dart - BREAKING: Synchronous telemetry API - removed unnecessary async overhead from
pushEvent(),pushLog(), etc. - BREAKING: Type-safe
LogLevelenum -pushLog()now requiresLogLevelparameter instead of string - Enhanced tracing API with
startSpan<T>(),startSpanManual(), andgetActiveSpan()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