logs-analyzer/signoz/pkg/query-service/telemetry/ignored.go

25 lines
415 B
Go
Raw Normal View History

2024-09-02 22:47:30 +03:00
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 {
for attr_key, attr_val := range attributes {
if attr_key == "any" && attr_val.(int8) == 0 {
return true
}
}
}
return false
}