Skip to content

[wip] basic implementation of string truncation with metadata#1

Merged
untitaker merged 2 commits into
getsentry:masterfrom
untitaker:basic-stripping
Jul 18, 2018
Merged

[wip] basic implementation of string truncation with metadata#1
untitaker merged 2 commits into
getsentry:masterfrom
untitaker:basic-stripping

Conversation

@untitaker

Copy link
Copy Markdown
Member

Unclear:

  • strip PII in relay exclusively? (yes)
  • flag to disable truncation in sdk?
  • truncating middle frames like in raven here as well?
  • generally, what to truncate in sdk?

@untitaker

Copy link
Copy Markdown
Member Author

cc @mitsuhiko

@mitsuhiko

Copy link
Copy Markdown
Contributor

Looks good for now.

Comment thread sentry_sdk/stripping.py Outdated
meta = {
"": {
"len": len(value),
"rem": [["@string:truncate", "x", length, len(value)]]

@untitaker untitaker Jul 16, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this count as removal x or substitution s with ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants