This repository was archived by the owner on Aug 30, 2023. It is now read-only.
Repository navigation
ref: Flatten configuration object - #226
Merged
Merged
Conversation
size-limit report 📦
|
billyvg
marked this pull request as ready for review
September 28, 2022 16:47
Remove `recordingConfig` and combine all configuration into a single object. This will simplify configuration instead of having an arbitrary `recordingConfig` object from the user POV. Update README to add more available configuration.
Small grammar/punctuation tweaks
billyvg
force-pushed
the
ref/remove-recordingConfig-object-flatten
branch
from
September 29, 2022 18:27
70b8a4d to
69437e5
Compare
ryan953
approved these changes
Sep 29, 2022
| | slimDOMOptions | Record<string, boolean> | `{}` | Remove unnecessary parts of the DOM <br /> Available keys: `script, comment, headFavicon, headWhitespace, headMetaDescKeywords, headMetaSocial, headMetaRobots, headMetaHttpEquiv, headMetaAuthorship, headMetaVerification` | | ||
|
|
||
| ## Privacy | ||
| There are several ways to deal with PII. By default, the integration will mask all text content with `*`. This can be disabled by setting `maskAllText` to `false`. It is also possible to add the following CSS classes to specific DOM elements to prevent recording its contents: `sentry-block`, `sentry-ignore`, and `sentry-mask`. The following sections will show examples of how content is handled by the differing methods. |
Member
There was a problem hiding this comment.
should we expand/define "PII"
There are several ways to deal with PII (Personally Identifiable Information). By default, the ... etc...
| | key | type | default | description | | ||
| | ---------------- | ------------------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskTextFn` before sending to server. | | ||
| | maskTextFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. | |
Member
There was a problem hiding this comment.
(text) => '*'.repeat(text.length) looks like a simplified version of what's really running. Looks like the real replace function leaves spaces as they are.
Co-authored-by: Ryan Albrecht <[email protected]>
Co-authored-by: Ryan Albrecht <[email protected]>
Co-authored-by: Ryan Albrecht <[email protected]>
JoshFerge
enabled auto-merge (squash)
October 5, 2022 19:50
mydea
pushed a commit
to getsentry/sentry-javascript
that referenced
this pull request
Nov 23, 2022
Remove `recordingConfig` and combine all configuration into a single object. This will simplify configuration instead of having an arbitrary `recordingConfig` object from the user POV. Update README to add more available configuration. Fixes getsentry/sentry-replay#157 Co-authored-by: Jasmin <[email protected]> Co-authored-by: Josh Ferge <[email protected]> Co-authored-by: Ryan Albrecht <[email protected]>
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove
recordingConfigand combine all configuration into a single object. This will simplify configuration instead of having an arbitraryrecordingConfigobject from the user POV. Update README to add more available configuration.Fixes #157