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

Speculative logging for PostHog/posthog#4816 #293

Merged
merged 9 commits into from
Sep 29, 2021

Conversation

pauldambra
Copy link
Member

Changes

PostHog/posthog#4816 shows we intermittently receive unexpected values in place of gzipped content

this logging catches unexpected source or zipped data and logs it back to posthog
...

Checklist

  • Tests for new code (if applicable)
  • TypeScript definitions (module.d.ts) updated and in sync with library exports (if applicable)

@pauldambra pauldambra marked this pull request as draft September 28, 2021 09:00
@pauldambra pauldambra requested a review from macobo September 28, 2021 09:01
@pauldambra
Copy link
Member Author

@macobo related to the issue we discussed yesterday... I think this will send an event back to posthog when the gzip bug manifests... will it?

src/compression.js Outdated Show resolved Hide resolved
@pauldambra
Copy link
Member Author

OK, so, very hacky approach @macobo. Like this?

I'm thinking of minimal change to getting debug info for the linked issue

Ultimately, if we want to keep the idea of a debug channel it feels wrong to hide this inside capture metrics. And would need to add a new "thing" so that users can more explicitly opt in

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Sep 29, 2021
@pauldambra pauldambra changed the title speculative logging for https://github.com/PostHog/posthog/issues/4816 Speculative logging for PostHog/posthog#4816 Sep 29, 2021
@pauldambra pauldambra marked this pull request as ready for review September 29, 2021 10:36
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

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

LGTM

@mariusandra mariusandra merged commit 5447142 into master Sep 29, 2021
@mariusandra mariusandra deleted the speculative-logging-of-irreversible-compression branch September 29, 2021 10:56
pauldambra added a commit that referenced this pull request Sep 30, 2021
mariusandra pushed a commit that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants