-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JS SDK] Add docs for
fsIntegration
(#11144)
Co-authored-by: Lukas Stracke <[email protected]>
- Loading branch information
Showing
12 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
docs/platforms/javascript/common/configuration/integrations/fs.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: FileSystem | ||
description: "Adds instrumentation for filesystem operations." | ||
supported: | ||
- javascript.node | ||
- javascript.aws-lambda | ||
- javascript.azure-functions | ||
- javascript.connect | ||
- javascript.express | ||
- javascript.fastify | ||
- javascript.gcp-functions | ||
- javascript.hapi | ||
- javascript.koa | ||
- javascript.nestjs | ||
- javascript.electron | ||
- javascript.nextjs | ||
- javascript.nuxt | ||
- javascript.sveltekit | ||
- javascript.remix | ||
- javascript.astro | ||
- javascript.bun | ||
--- | ||
|
||
<Alert level="info"> | ||
|
||
This integration only works in the Node.js and Bun runtimes. | ||
|
||
</Alert> | ||
|
||
_Import name: `Sentry.fsIntegration`_ | ||
|
||
The `fsIntegration` creates spans for `fs` API operations, like reading and writing files. The integration uses the [`@opentelemetry/instrumentation-fs`](https://www.npmjs.com/package/@opentelemetry/instrumentation-fs) package. | ||
|
||
<Alert level="warning" title="Potential Performance Overhead"> | ||
The `fsIntegration` may add significant overhead to your application. | ||
Especially in scenarios with a lot of file I/O, like for example when you are | ||
running a framework dev server, including this integration can massively slow | ||
down your application. | ||
</Alert> | ||
|
||
## Options | ||
|
||
### `recordFilePaths` | ||
|
||
_Type: `boolean | undefined`_ | ||
|
||
Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes. | ||
Defaults to `false`. | ||
|
||
### `recordErrorMessagesAsSpanAttributes` | ||
|
||
_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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters