-
Notifications
You must be signed in to change notification settings - Fork 8
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: Add Amplitude event publisher #487
base: main
Are you sure you want to change the base?
Conversation
2714017
to
e9d093e
Compare
7b14aea
to
f78b4ce
Compare
shared/events/base.py
Outdated
from abc import ABC, abstractmethod | ||
|
||
|
||
class EventPublisherPropertyException(Exception): |
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.
MissingEventPropertyException
e976622
to
f9704e0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #487 +/- ##
==========================================
- Coverage 90.34% 89.97% -0.37%
==========================================
Files 437 324 -113
Lines 12951 9048 -3903
Branches 2104 1599 -505
==========================================
- Hits 11700 8141 -3559
+ Misses 1133 846 -287
+ Partials 118 61 -57
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This PR adds a new
EventPublisher
abstraction and an implementation of it inAmplitudeEventPublisher
.EventPublisher
is meant to be extremely generic and could be reused for any types of events we may want to publish in the future (TaskService
could be converted to anEventPublisher
, for example).The Amplitude implementation defines some starting events and their payloads. These will be used in a future API PR, once we have the API key set as an environment variable.
Closes codecov/engineering-team#2893