mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 22:49:03 +08:00
chore: small change in api
This commit is contained in:
parent
c4fa86bc95
commit
6f8b78bd97
@ -845,13 +845,13 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
|
|||||||
if aH.handleError(w, err, http.StatusBadRequest) {
|
if aH.handleError(w, err, http.StatusBadRequest) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(*result) != 4 {
|
// if len(*result) != 4 {
|
||||||
(*aH.pc).Enqueue(posthog.Capture{
|
(*aH.pc).Enqueue(posthog.Capture{
|
||||||
DistinctId: distinctId,
|
DistinctId: distinctId,
|
||||||
Event: "Different Number of Services",
|
Event: "Different Number of Services",
|
||||||
Properties: posthog.NewProperties().Set("number", len(*result)),
|
Properties: posthog.NewProperties().Set("number", len(*result)),
|
||||||
})
|
})
|
||||||
}
|
// }
|
||||||
|
|
||||||
aH.writeJSON(w, r, result)
|
aH.writeJSON(w, r, result)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user