@amplitude/ampli
Version:
Amplitude CLI
28 lines (27 loc) • 1.13 kB
TypeScript
import * as Sentry from '@sentry/node';
import { Breadcrumb } from '@sentry/types';
import { IConfig } from '@oclif/config';
import { User } from '../settings';
import { Source } from '../graphql/types';
export declare type Context = {
[key: string]: any;
};
export default class AmpliSentry {
contextMap: {
[key: string]: Context;
};
constructor();
captureEnvironment: (config: IConfig) => void;
captureCommand: (id?: string | undefined) => void;
captureCommandContext(id: string | undefined, context: Context): void;
captureUser: (user: User) => void;
captureCommandFlags: (flags: {
[key: string]: any;
}) => void;
captureSource: (source: Source) => void;
captureExec: (command: string, options: any) => void;
captureException: (exception: any, captureContext?: import("@sentry/types").Scope | Partial<import("@sentry/types").ScopeContext> | ((scope: import("@sentry/types").Scope) => import("@sentry/types").Scope) | undefined) => string;
getCurrentHub: () => Sentry.Hub;
addBreadcrumb: (breadcrumb: Breadcrumb) => void;
private updateContext;
}