-
Notifications
You must be signed in to change notification settings - Fork 406
Add provider to all frontend telemetry events #5675 #3611
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
Add provider to all frontend telemetry events #5675 #3611
Conversation
import { TelemetryEvent } from './events' | ||
import { checkIsAnalyticsGranted } from './checkAnalytics' | ||
|
||
export const getProvider = (): string => get(store.getState(), 'connections.instances.connectedInstance.provider', '') |
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.
it is better to have undefined
instead of ''
(empty string). In this case provider field won't be sent at all
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.
@ArtemHoruzhenko, fixed to be undefined by default
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.
lgtm
…-is-not-added-always Fix provider is not added to some telemetry events
1e78db2
No description provided.