mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 00:58:59 +08:00
fix: OSS telemetry for the number of services (#7908)
Fixes the OSS telemetry for sending the `Number of services` events.
This commit is contained in:
parent
ad392e81ff
commit
dfca5b13c0
@ -1711,7 +1711,7 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
|
|||||||
"number": len(*result),
|
"number": len(*result),
|
||||||
}
|
}
|
||||||
claims, errv2 := authtypes.ClaimsFromContext(r.Context())
|
claims, errv2 := authtypes.ClaimsFromContext(r.Context())
|
||||||
if errv2 != nil {
|
if errv2 == nil {
|
||||||
telemetry.GetInstance().SendEvent(telemetry.TELEMETRY_EVENT_NUMBER_OF_SERVICES, data, claims.Email, true, false)
|
telemetry.GetInstance().SendEvent(telemetry.TELEMETRY_EVENT_NUMBER_OF_SERVICES, data, claims.Email, true, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user