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

feat(notification-center): Add LogEvent notification #213

Merged
merged 103 commits into from
Oct 7, 2019

Conversation

oakbani
Copy link
Contributor

@oakbani oakbani commented Oct 4, 2019

Summary

This is a replica of #204.

Test plan

Added unit test

mjamal@folio3.com and others added 30 commits July 19, 2019 12:16
Summary
-------

- Introduces an EventProcessor interface.
- Introduces a BatchEventProcessor

Buffering events within a queue before dispatching is an optimization that should prevent SDK implementations from exhausting resources while increasing throughput. This implementation relies on a BlockingCollection to buffer events received from one-to-many producers. A single consumer thread continuously polls from this queue to build a batch before emitting the batched LogEvent.

Test plan
---------

- Added unit tests.
# Conflicts:
#	optimizely/event/entity/conversion_event.py
#	optimizely/event/entity/decision.py
#	optimizely/event/entity/event_context.py
#	optimizely/event/entity/impression_event.py
# Conflicts:
#	optimizely/event/entity/user_event.py
#	optimizely/event/entity/visitor.py
Copy link
Contributor

@aliabbasrizvi aliabbasrizvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.689% when pulling 6f84f08 on mnoman/log_event_notification into ec67224 on master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.689% when pulling 6f84f08 on mnoman/log_event_notification into ec67224 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.689% when pulling 6f84f08 on mnoman/log_event_notification into ec67224 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.689% when pulling 6f84f08 on mnoman/log_event_notification into ec67224 on master.

@coveralls
Copy link

coveralls commented Oct 4, 2019

Coverage Status

Coverage increased (+0.07%) to 97.748% when pulling 6f84f08 on mnoman/log_event_notification into ec67224 on master.

@aliabbasrizvi aliabbasrizvi merged commit 3731be4 into master Oct 7, 2019
@oakbani oakbani deleted the mnoman/log_event_notification branch October 24, 2019 05:38
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

Successfully merging this pull request may close these issues.

None yet

7 participants