UNPKG

1.52 kBTypeScriptView Raw
1import { BaseClient, Scope } from '@sentry/core';
2import { SessionFlusher } from '@sentry/hub';
3import { Event, EventHint } from '@sentry/types';
4import { NodeBackend } from './backend';
5import { NodeOptions } from './types';
6/**
7 * The Sentry Node SDK Client.
8 *
9 * @see NodeOptions for documentation on configuration options.
10 * @see SentryClient for usage documentation.
11 */
12export declare class NodeClient extends BaseClient<NodeBackend, NodeOptions> {
13 protected _sessionFlusher: SessionFlusher | undefined;
14 /**
15 * Creates a new Node SDK instance.
16 * @param options Configuration options for this SDK.
17 */
18 constructor(options: NodeOptions);
19 /**
20 * @inheritDoc
21 */
22 captureException(exception: any, hint?: EventHint, scope?: Scope): string | undefined;
23 /**
24 * @inheritDoc
25 */
26 captureEvent(event: Event, hint?: EventHint, scope?: Scope): string | undefined;
27 /**
28 *
29 * @inheritdoc
30 */
31 close(timeout?: number): PromiseLike<boolean>;
32 /** Method that initialises an instance of SessionFlusher on Client */
33 initSessionFlusher(): void;
34 /**
35 * @inheritDoc
36 */
37 protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
38 /**
39 * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment
40 * appropriate session aggregates bucket
41 */
42 protected _captureRequestSession(): void;
43}
44//# sourceMappingURL=client.d.ts.map
\No newline at end of file