Vishal Sharma c66c8c2823
chore: add new dashboard/alerts info events (#4214)
* chore: add new dashboard/alerts info events
2023-12-13 18:14:55 +05:30

25 lines
458 B
Go

package telemetry
func EnabledPaths() map[string]struct{} {
enabledPaths := map[string]struct{}{
"/api/v1/channels": {},
}
return enabledPaths
}
func ignoreEvents(event string, attributes map[string]interface{}) bool {
if event == TELEMETRY_EVENT_ACTIVE_USER || event == TELEMETRY_EVENT_ACTIVE_USER_PH {
for attr_key, attr_val := range attributes {
if attr_key == "any" && attr_val.(int8) == 0 {
return true
}
}
}
return false
}