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(batch-exports): Improve batch exports internal logging #27308

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

rossgray
Copy link
Contributor

@rossgray rossgray commented Jan 7, 2025

Problem

Currently we add temporal context to our public batch export logs (the ones that get sent to Kafka) but not our internal logs. This makes debugging difficult because it's not possible to get all logs for a given workflow id.

Changes

  • Attach temporal context to our internal logs (logs that go to the console).
  • Improve the logging associated with our S3 batch exports to debug multipart upload issues.

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

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

Should do.

How did you test this code?

Ran batch exports locally. Tested that public logs in PH UI are unchanged, but logs in console have extra metadata attached.

@rossgray rossgray requested a review from tomasfarias January 8, 2025 11:40
@rossgray rossgray merged commit ecd9495 into master Jan 9, 2025
93 checks passed
@rossgray rossgray deleted the improve-batch-exports-internal-logging branch January 9, 2025 10:47
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