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

Use EnrichmentManager.enrichEvent to validate events #23

Closed
benjben opened this issue May 15, 2020 · 0 comments
Closed

Use EnrichmentManager.enrichEvent to validate events #23

benjben opened this issue May 15, 2020 · 0 comments
Assignees
Milestone

Comments

@benjben
Copy link
Contributor

benjben commented May 15, 2020

2 added values:

  • Remove the manual steps to extract input contexts and enriched events, base64 encoded or not
  • Have more strict validation. With snowplow-micro 0.1.0 it was possible that an event validated by Micro would fail being enriched because of an invalid input field (e.g. timestamp). When using EnrichmentManager.enrichEvent to validate the event, we know that an event that gets validated by Micro will not break the enrichment

Taking the opportunity to return the EnrichedEvent as well as the RawEvent

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

No branches or pull requests

1 participant