UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

24 lines (23 loc) • 850 B
import { enableFsInstrumentation } from "./vendored/instrumentation.js"; import { defineIntegration } from "@sentry/core"; // src/integrations/fs/index.ts const INTEGRATION_NAME = "FileSystem"; /** * This integration will create spans for `fs` API operations, like reading and writing files. * * **WARNING:** This integration may add significant overhead to your application. Especially in scenarios with a lot of * file I/O, like for example when running a framework dev server, including this integration can massively slow down * your application. * * @param options Configuration for this integration. */ const fsIntegration = defineIntegration((options = {}) => { return { name: INTEGRATION_NAME, setupOnce() { setImmediate(() => enableFsInstrumentation(options)); } }; }); export { fsIntegration }; //# sourceMappingURL=index.js.map