UNPKG

999 BTypeScriptView Raw
1/**
2 * This integration will create spans for `fs` API operations, like reading and writing files.
3 *
4 * **WARNING:** This integration may add significant overhead to your application. Especially in scenarios with a lot of
5 * file I/O, like for example when running a framework dev server, including this integration can massively slow down
6 * your application.
7 *
8 * @param options Configuration for this integration.
9 */
10export declare const fsIntegration: (options?: {
11 /**
12 * Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes.
13 *
14 * Defaults to `false`.
15 */
16 recordFilePaths?: boolean | undefined;
17 /**
18 * Setting this option to `true` will include the error messages of failed `fs` API calls as a span attribute.
19 *
20 * Defaults to `false`.
21 */
22 recordErrorMessagesAsSpanAttributes?: boolean | undefined;
23} | undefined) => import("@sentry/core").Integration;
24//# sourceMappingURL=fs.d.ts.map
\No newline at end of file