feat: add event enrichment client package#7029
Draft
ekjotmultani wants to merge 1 commit into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7029 +/- ##
==========================================
+ Coverage 43.22% 43.23% +0.01%
==========================================
Files 99 99
Lines 7769 7769
Branches 3400 3401 +1
==========================================
+ Hits 3358 3359 +1
+ Misses 4411 4410 -1 🚀 New features to boost your workflow:
|
Member
|
Please make sure to generate and commit workflows using |
7bd20c5 to
4954624
Compare
4954624 to
b05a0ad
Compare
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Event Enrichment client for analytics — the on-device companion that stamps device/app/session/identity context onto events and emits a Pinpoint-compatible JSON envelope, so events sent via the Kinesis/Firehose clients keep the analytics context Pinpoint used to provide automatically.
PR Stack (3-way split)
feat/event-enrichment-clientfeat/event-enrichment-client-examplefeat/event-enrichment-client-testsStructure
Dart/Flutter split, mirroring the Kinesis packages:
amplify_event_enrichment_dart— pure-Dart core (client,EnrichedEvent,SessionManager, global fields, metadata,EventSinkinterface). No Flutter dependency.amplify_event_enrichment— Flutter wrapper: lifecycle observer,SharedPreferencesClientIdProvider, injectableDeviceMetadataProvider, re-exports the core.Built on v3 Amplify Foundation (
amplify_foundation_dart,Result<T>, sealed exceptions,AmplifyLogging).Key decisions
shared_preferencesundercom.amplifyframework.device_id, read-or-create — a cross-package contract shared with the Connect client (whichever inits first generates the UUID; the other reads it). Maps to native SharedPreferences/NSUserDefaults so a device gets one id everywhere.device_info_plusis not a core dependency; device metadata comes from an injectableDeviceMetadataProviderdefaulting todart:io Platform. TheEventSinkships as an interface only (no default sinks) — keeps enrichment transport-agnostic.Verification
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.