mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-19 00:17:00 +00:00
17 lines
281 B
Go
17 lines
281 B
Go
package telemetry
|
|
|
|
func ignoreEvents(event string, attributes map[string]interface{}) bool {
|
|
|
|
if event == TELEMETRY_EVENT_ACTIVE_USER {
|
|
for attr_key, attr_val := range attributes {
|
|
|
|
if attr_key == "any" && attr_val.(int8) == 0 {
|
|
return true
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|