-
Notifications
You must be signed in to change notification settings - Fork 9
StartupQueue plugin loses enrichment closure on replay #132
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
Comments
hi @richerm, thanks for reporting this issue. this is in our roadmap. will get back to you once we have a release for it. |
@wenxi-zeng - thanks - In the meantime is there a way I can check the 'state' or system status of the Analytics class? Basically I can block until it is 'ready'? This would save an arbitrary wait in code.
|
@wenxi-zeng Yes I saw that comment when searching earlier. Unfortunately, the enrichment I'm doing (in addition to user id) has contextual information and the serialize it to a property and to deserialize in a plugin and move to context is a pretty heavy workaround. Hopefully this gets addressed soon. In the meantime, I'm going to switch to a singleton model vs scoped with the caveats noted in the docs. |
@richerm sounds good! I have prioritized a fix for this issue. should have a release out next monday. |
hi @richerm, this issue should be fixed in the latest release |
Awesome! Thank-you for the quick turn-around! |
I received this error on writing to storage because the Enrichment property is marked as serializable. Is that expected behaviour? The unsupported member type is located on type 'System.Func`2[Segment.Analytics.RawEvent,Segment.Analytics.RawEvent]'. Path: $.Enrichment.
|
hi @richerm, no, this is not expected. I just released a fix. please give |
Describe the bug
We are trying to use the enrichment closure for Track events. The incoming event is null IF the StartupQueue hasn't completed yet (meaning it'll replay it later). If I thread sleep for say a few seconds, then track the event, the enrichment closure is fire.
I believe this is because the startup plugin does not have the enrichment closure with it so when it plays it back it loses the original closure.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The enrichment closure RawEvent is not null.
Platform (please complete the following information):
Additional context
Track Call
Scoped Configuration:
Stock Plugins Loaded:
The text was updated successfully, but these errors were encountered: