@igo2/core
Version:
16 lines (15 loc) • 910 B
TypeScript
import { EnvironmentProviders, Provider } from '@angular/core';
import { browserTracingIntegration } from '@sentry/angular';
import { SentryMonitoringOptions } from './sentry.interface';
export declare const provideSentryMonitoring: (options: SentryMonitoringOptions, integrations?: SentryIntegrationFactory<SentryIntegrationKind>[]) => (Provider | EnvironmentProviders)[];
export interface SentryIntegration<KindT extends SentryIntegrationKind> {
kind: KindT;
providers: (Provider | EnvironmentProviders)[];
}
type SentryIntegrationFactory<KindT extends SentryIntegrationKind> = (sentryOptions: SentryMonitoringOptions) => SentryIntegration<KindT>;
export declare enum SentryIntegrationKind {
Tracing = 0,
Replay = 1
}
export declare function withTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0]): SentryIntegrationFactory<SentryIntegrationKind.Tracing>;
export {};