16 lines
454 B
TypeScript
16 lines
454 B
TypeScript
import type { LightPlugin, LightClient, SentryEvent } from '../types';
|
|
declare class SamplingPlugin implements LightPlugin {
|
|
name: string;
|
|
version: string;
|
|
private client;
|
|
private config;
|
|
setup(client: LightClient): void;
|
|
private loadConfig;
|
|
private shouldSample;
|
|
private getTypeRate;
|
|
private randomCheck;
|
|
beforeReport(event: SentryEvent): SentryEvent | null;
|
|
destroy(): void;
|
|
}
|
|
export default SamplingPlugin;
|