25 lines
415 B
Go
Raw Normal View History

package telemetry
func EnabledPaths() map[string]struct{} {
enabledPaths := map[string]struct{}{
"/api/v1/channels": {},
}
return enabledPaths
}
2023-02-11 23:15:07 +05:30
func ignoreEvents(event string, attributes map[string]interface{}) bool {
2024-06-25 15:50:09 +05:30
if event == TELEMETRY_EVENT_ACTIVE_USER {
2023-02-11 23:15:07 +05:30
for attr_key, attr_val := range attributes {
if attr_key == "any" && attr_val.(int8) == 0 {
return true
}
}
}
return false
}