1 | type ConnectApp = {
|
2 | use: (middleware: any) => void;
|
3 | };
|
4 | export declare const instrumentConnect: ((options?: unknown) => void) & {
|
5 | id: string;
|
6 | };
|
7 | /**
|
8 | * Adds Sentry tracing instrumentation for [Connect](https:
|
9 | *
|
10 | * If you also want to capture errors, you need to call `setupConnectErrorHandler(app)` after you initialize your connect app.
|
11 | *
|
12 | * For more information, see the [connect documentation](https:
|
13 | *
|
14 | * @example
|
15 | * ```javascript
|
16 | * const Sentry = require('@sentry/node');
|
17 | *
|
18 | * Sentry.init({
|
19 | * integrations: [Sentry.connectIntegration()],
|
20 | * })
|
21 | * ```
|
22 | */
|
23 | export declare const connectIntegration: () => import("@sentry/core").Integration;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare const setupConnectErrorHandler: (app: ConnectApp) => void;
|
44 | export {};
|
45 |
|
\ | No newline at end of file |