-
Notifications
You must be signed in to change notification settings - Fork 11
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: Stab to integrate current connector and extract identity storage #5
Conversation
cf508d5
to
1873290
Compare
val safeListeners = synchronized(listenersLock) { | ||
listeners.toSet() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious what this does and what happens if not all listeners are returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the toSet is just to reduce the duplicate listeners
|
||
init { | ||
require(configuration.isValid()) { "invalid configuration" } | ||
timeline = Timeline().also { it.amplitude = this } | ||
storage = configuration.storageProvider.getStorage(this) | ||
logger = configuration.loggerProvider.getLogger(this) | ||
idContainer = IdContainer.getInstance(configuration.apiKey, IMIdentityStorageProvider()) | ||
idContainer.identityStore.addIdentityListener(AnalyticsIdentityListener(store)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question, does this make amplitude client listen for changes happening outside? while this emits changes happening inside amplitude client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this connects to identity store, then we can have support plugins for changes happening outside
Closing this one and moving the change in #8 |
Summary
This is a stab effort to collect feedbacks on how we incorporate the current connector, and extract identity storage, and also how our observe plugin integrates together.
The earlier commits are based on #4. Please ignore when review this change.
Checklist