(options: EventSinkOptions)
| 38 | private flushTimer: ReturnType<typeof setInterval> | null = null; |
| 39 | |
| 40 | constructor(options: EventSinkOptions) { |
| 41 | this.transport = options.transport; |
| 42 | this.context = buildContext(options.context); |
| 43 | this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS; |
| 44 | this.flushThreshold = options.flushThreshold ?? DEFAULT_FLUSH_THRESHOLD; |
| 45 | } |
| 46 | |
| 47 | accept(event: TelemetryEvent): void { |
| 48 | const enriched: EnrichedTelemetryEvent = { |
nothing calls this directly
no test coverage detected