FileSystem

Adds instrumentation for filesystem operations.

Import name: Sentry.fsIntegration

The fsIntegration creates spans for fs API operations, like reading and writing files. The integration uses the @opentelemetry/instrumentation-fs package.

Type: boolean | undefined

Setting this option to true will include any filepath arguments from your fs API calls as span attributes. Defaults to false.

Type: boolean | undefined

Setting this option to true will include the error messages of failed fs API calls as a span attribute. Defaults to false.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").