initialize method
Initialize the client with the given config.
This must be called once during application bootstrap.
Implementation
Future<void> initialize(ClientConfig config) async {
if (isInitialized) return;
_config = config;
_pipeline = config.buildPipeline();
_maxBreadcrumbs = config.maxBreadcrumbs;
_rateLimiter = _RateLimiter(
config.policy.rateLimit.maxEvents, config.policy.rateLimit.per);
_dedupeIndex = _DedupeIndex(config.policy.dedupe.window);
// Optionally: preload light base contexts (let providers decide).
// Do not run heavy providers here; collection is done per-event.
}