-
Notifications
You must be signed in to change notification settings - Fork 32
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
[DENG-7616] Pipeline to send events to Amplitude #2729
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2729 +/- ##
============================================
- Coverage 85.98% 84.71% -1.27%
- Complexity 876 935 +59
============================================
Files 118 125 +7
Lines 4994 5319 +325
Branches 504 535 +31
============================================
+ Hits 4294 4506 +212
- Misses 539 637 +98
- Partials 161 176 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
21114dc
to
97d4d72
Compare
97d4d72
to
7709509
Compare
3a174af
to
a438de9
Compare
6e1c08d
to
90ce8a6
Compare
90ce8a6
to
0ee9993
Compare
b8984d3
to
0ff5016
Compare
if (getEventExtras() == null || getEventExtras().equals("null")) { | ||
eventExtras.put("extras", (ObjectNode) new ObjectMapper().readTree("{}")); | ||
} else { | ||
eventExtras.put("extras", (ObjectNode) new ObjectMapper().readTree(getEventExtras())); | ||
} | ||
|
||
json.put("event_properties", eventExtras); | ||
json.put("event_type", getEventType()); | ||
json.put("platform", getPlatform()); | ||
|
||
if (getAppVersion() != null && !getAppVersion().equals("null")) { | ||
json.put("app_version", getAppVersion()); | ||
} | ||
|
||
if (getOsName() != null && !getOsName().equals("null")) { | ||
json.put("os_name", getOsName()); | ||
} | ||
|
||
if (getOsVersion() != null && !getOsVersion().equals("null")) { | ||
json.put("os_version", getOsVersion()); | ||
} | ||
|
||
if (getCountry() != null && !getCountry().equals("null")) { | ||
json.put("country", getCountry()); | ||
} |
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.
these are the attributed currently sent to amplitude
0ff5016
to
ede18c9
Compare
ede18c9
to
f6ff723
Compare
https://mozilla-hub.atlassian.net/browse/DENG-7616