1 | interface Fastify {
|
2 | register: (plugin: any) => void;
|
3 | addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
|
4 | }
|
5 | export declare const instrumentFastify: ((options?: unknown) => void) & {
|
6 | id: string;
|
7 | };
|
8 | /**
|
9 | * Adds Sentry tracing instrumentation for [Fastify](https:
|
10 | *
|
11 | * If you also want to capture errors, you need to call `setupFastifyErrorHandler(app)` after you set up your Fastify server.
|
12 | *
|
13 | * For more information, see the [fastify documentation](https:
|
14 | *
|
15 | * @example
|
16 | * ```javascript
|
17 | * const Sentry = require('@sentry/node');
|
18 | *
|
19 | * Sentry.init({
|
20 | * integrations: [Sentry.fastifyIntegration()],
|
21 | * })
|
22 | * ```
|
23 | */
|
24 | export declare const fastifyIntegration: () => import("@sentry/core").Integration;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export declare function setupFastifyErrorHandler(fastify: Fastify): void;
|
45 | export {};
|
46 |
|
\ | No newline at end of file |