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: Improved instrumentation around core functions #17574

Merged
merged 8 commits into from
Sep 21, 2023

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Sep 21, 2023

Problem

We think there are some bottlenecks in prod but its unclear where they are. A few simple instrumentations would help to understand this

Changes

  • Downgrades some logs that we don't care about
  • Instrument the main ingestion loop.
  • Only stringifying the event if the timeout fires.
  • Lock on hostname instead of uuid so that we can identify which pod is the cause

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

How did you test this code?

@benjackwhite benjackwhite requested a review from a team September 21, 2023 12:45
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

🚀

@benjackwhite benjackwhite merged commit c7a797d into master Sep 21, 2023
@benjackwhite benjackwhite deleted the feat/blobby-instrumentation branch September 21, 2023 13:31
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.

3 participants