|
20 | 20 | | `graphql.document` | `true` | Collects GraphQL documents. | |
21 | 21 | | `graphql.variables` | `true` | Collects GraphQL variables. | |
22 | 22 | | `databaseQueryData` | `true` | Allows collection of associated query data, such as bound parameters, write payloads, and results, where supported. Sanitized query statements and structural database metadata remain available. | |
| 23 | + | `filePaths` | `true` | Allows file-system instrumentation to collect file and directory paths. File extensions and byte counts remain available when disabled. | |
23 | 24 |
|
24 | 25 | Cookies, HTTP headers, and URL query parameters support three modes: |
25 | 26 |
|
|
29 | 30 |
|
30 | 31 | Matching is case-insensitive and partial. The built-in sensitive deny-list contains `auth`, `token`, `secret`, `password`, `passwd`, `pwd`, `key`, `jwt`, `bearer`, `sso`, `saml`, `csrf`, `xsrf`, `credentials`, `session`, `sid`, and `identity`. Filtered values are replaced with `"[Filtered]"`. Custom deny-list terms extend rather than replace this list. |
31 | 32 |
|
32 | | - Configure all HTTP body types, a custom cookie deny-list, a request-header allow-list, and disable URL query parameter collection in an options callback: |
| 33 | + Configure all HTTP body types, a custom cookie deny-list, a request-header allow-list, and disable URL query parameter and file path collection in an options callback: |
33 | 34 |
|
34 | 35 | ```java |
35 | 36 | Sentry.init( |
|
55 | 56 | options |
56 | 57 | .getDataCollection() |
57 | 58 | .setUrlQueryParams(KeyValueCollectionBehavior.off()); |
| 59 | + options.getDataCollection().setFilePaths(false); |
58 | 60 | }); |
59 | 61 | ``` |
60 | 62 |
|
|
67 | 69 | data-collection.http-headers.request.mode=allow_list |
68 | 70 | data-collection.http-headers.request.terms=content-type,x-request-id |
69 | 71 | data-collection.url-query-params.mode=off |
| 72 | + data-collection.file-paths=false |
70 | 73 | ``` |
71 | 74 |
|
72 | 75 | Configure them with Spring Boot properties: |
|
78 | 81 | sentry.data-collection.http-headers.request.mode=allow-list |
79 | 82 | sentry.data-collection.http-headers.request.terms=content-type,x-request-id |
80 | 83 | sentry.data-collection.url-query-params.mode=off |
| 84 | + sentry.data-collection.file-paths=false |
81 | 85 | ``` |
82 | 86 |
|
83 | 87 | Configure them in `AndroidManifest.xml`: |
|
101 | 105 | <meta-data |
102 | 106 | android:name="io.sentry.data-collection.url-query-params.mode" |
103 | 107 | android:value="off" /> |
| 108 | + <meta-data |
| 109 | + android:name="io.sentry.data-collection.file-paths" |
| 110 | + android:value="false" /> |
104 | 111 | ``` |
105 | 112 |
|
106 | 113 | See the [Data Collection documentation](https://docs.sentry.io/platforms/java/configuration/options/#dataCollection) for all configuration keys, supported integrations, and migration guidance. |
|
0 commit comments