-
Notifications
You must be signed in to change notification settings - Fork 43
Conversation
…d them with the post-launch Stop / Resume session events
Thanks for sending the pull request. There seems to be some issues with the implementation. There are two types of global attributes/metrics which can be set on an event one is an event specific global attribute/metrics and other is a global attribute/metrics for all types of events. Your code seems to handle only the later. |
The resume / stop events wouldn't pick up on the event specific global attributes / metrics unless the user used their internal names ("_session.stop" etc) in the SetGlobalAttribute / Metric. Do you think its worth it to add support for this use case? |
I don't follow, why should the user have to do anything in this case? Also since your global event is serialized to a particular session which is not going to work for scenario's like a customer using multiple app id's. |
The reason to serialize the globals is so that the session resume / stop events contain their information if the app is killed and relaunched. This leads to two questions:
|
I think the reason to your 1st point is that your implementation ties up the serialization of global attrib/metric to session serialization which is not correct it should be serialized into its own store since it has no dependency with any session per say to answer to 2 . Yes the session does support multiple app id serialization. Notice each session storage file is serialized into a file / appid |
Regarding 2, I see that now. Regarding 1 - The way I see it, the question I'm trying to answer is "If On Thu, Jan 14, 2016 at 9:09 PM, Karthik Saligrama <notifications@github.com
|
I have a simpler question. When do you set your global attributes? and can this be solved by simply setting the global attributes before you call session stop or resume?
|
This is technically possible of course, but would force me (and others On Thu, Jan 14, 2016 at 9:42 PM, Karthik Saligrama <notifications@github.com
|
well ideally global events are supposed to be one time initialization when the application starts. I know this is not documented at the moment and i'll add those in our next release. I agree it would make things easier for developers to not do that (reinitialize the global attribs/metrics), but i don't see how the developers could still get around not having to initialize the global attribs/metrics (e.g when the application is launched for the first time). |
I'm closing this pull request without merge, based on my comment above. If you have any questions or clarifications feel free to reopen/comment below |
#99
Storing global metrics and attributes in SessionStorage object to send them with the post-launch Stop / Resume session events