Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(django): report django_surrogates_substituted_total metric #18449

Merged
merged 6 commits into from
Nov 7, 2023

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Nov 7, 2023

Problem

capture.py detects and removes utf16 surrogates, that could happen if a string is improperly truncated. Let's add a metric to measure how often we receive this kind of payloads, and whether we can just 400 on new capture.

Adding a single surrogates_substituted_total metric for both django and plugin-server, we'll query it sliced by role.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@xvello xvello requested a review from a team November 7, 2023 15:38
@xvello xvello enabled auto-merge (squash) November 7, 2023 16:33
@xvello xvello merged commit 61a563a into master Nov 7, 2023
68 checks passed
@xvello xvello deleted the xvello/surrogates-metric branch November 7, 2023 16:38
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