import { createTelemetryBuffer } from '@bytelyst/backend-telemetry';
import { config } from './config.js';

export type { TelemetryEvent } from '@bytelyst/backend-telemetry';

const buffer = createTelemetryBuffer({ enabled: config.TELEMETRY_ENABLED });

export const { trackEvent, getBufferedEvents, flushEvents } = buffer;
