chore: log when we fail to normalize the event or parse the timestamp #17628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
I'm seeing some events in DLQ and I'm not sure if they are from this normalization and timestamp parsing or from person processing part, this log line would help identify it.
DLQ: http://metabase-prod-us/question#eyJkYXRhc2V0X3F1ZXJ5Ijp7InR5cGUiOiJuYXRpdmUiLCJuYXRpdmUiOnsicXVlcnkiOiItLSBzZWxlY3QgdGVhbV9pZCwgY291bnQoKikgZnJvbSBldmVudHNfZGVhZF9sZXR0ZXJfcXVldWUgd2hlcmUgX3RpbWVzdGFtcCA-IHRvZGF5KCkgLSA1IGdyb3VwIGJ5IHRlYW1faWQgb3JkZXIgYnkgdGVhbV9pZFxuXG4tLSBzZWxlY3QgZXJyb3IsIGNvdW50KCopIGZyb20gZXZlbnRzX2RlYWRfbGV0dGVyX3F1ZXVlIHdoZXJlIF90aW1lc3RhbXAgPiB0b2RheSgpIGdyb3VwIGJ5IGVycm9yXG5cbnNlbGVjdCBlcnJvciwgSlNPTkV4dHJhY3RTdHJpbmcocHJvcGVydGllcywgJyRkaXN0aW5jdF9pZCcpLCAqIGZyb20gZXZlbnRzX2RlYWRfbGV0dGVyX3F1ZXVlIHdoZXJlIF90aW1lc3RhbXAgPiB0b2RheSgpIGxpbWl0IDIwIiwidGVtcGxhdGUtdGFncyI6e319LCJkYXRhYmFzZSI6MzZ9LCJkaXNwbGF5IjoidGFibGUiLCJkaXNwbGF5SXNMb2NrZWQiOnRydWUsInBhcmFtZXRlcnMiOltdLCJ2aXN1YWxpemF0aW9uX3NldHRpbmdzIjp7InRhYmxlLnBpdm90X2NvbHVtbiI6ImNvdW50KCkiLCJ0YWJsZS5jZWxsX2NvbHVtbiI6InRlYW1faWQifSwib3JpZ2luYWxfY2FyZF9pZCI6MjU5fQ==
Stack trace could be nice to have too 🤔
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?