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