mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
Deprecate all flags - Use querier.config.fluxInterval in lieu of passing `--flux-interval` and `--flux-interval-for-trace-detail` - Remove `--gateway-url` - Use telemetrystore.clickhouse.cluster in lieu of passing `--cluster` or `--cluster-name` - Add an `unparam` check in the linter. Updated some functions across the querier codebase to be compatible with this linter. - Remove prometheus config from docker builds.
17 lines
342 B
Go
17 lines
342 B
Go
package telemetry
|
|
|
|
// deprecated: remove this function in the next major release
|
|
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
|
|
}
|