Get OTLP config from environment and flush all collected data
Convenience function that reads config from env and flushes. If OTLP is not configured, this is a no-op. Never throws.
// At end of SvelteKit handle()await flushToEnv(event.platform?.env, 'my-service'); Copy
// At end of SvelteKit handle()await flushToEnv(event.platform?.env, 'my-service');
Get OTLP config from environment and flush all collected data
Convenience function that reads config from env and flushes. If OTLP is not configured, this is a no-op. Never throws.