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

feat: Support client side ingestion warnings #21388

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Apr 8, 2024

Problem

Related to PostHog/posthog-js#1051

We want to send client ingestion warnings but we don't want them to be billable events.

Changes

  • Adds a check for a special $$client_ingestion_warning event that will trigger an ingestion warning but drop the event

@PostHog/team-pipeline open to renaming / any changes really - just went for PRs over issues 👍

Does this work well for both Cloud and self-hosted?

How did you test this code?

Tests

@benjackwhite benjackwhite requested a review from a team April 8, 2024 07:58
{ alwaysSend: true }
)

return this.registerLastStep('clientIngestionWarning', [event], [warningAck])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not super familiar with this code - I mostly copied it from the above example. Is the [event] part correct?

Copy link
Contributor

@tiina303 tiina303 left a comment

Choose a reason for hiding this comment

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

Ideally this wouldn't be in analytics ingestion lane, but we don't have a third ingestion lane ready yet, so ship it & only apply safety measures in posthog-js side PostHog/posthog-js#1051 (comment) for now & we can move / handle it differently later.

@benjackwhite benjackwhite merged commit 476df55 into master Apr 8, 2024
80 checks passed
@benjackwhite benjackwhite deleted the feat/ingstion-warning-events branch April 8, 2024 13:54
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