mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 04:49:01 +08:00
fix: error and exception type error (#1086)
This commit is contained in:
parent
147476d802
commit
fe18e85e36
@ -2532,7 +2532,7 @@ func (r *ClickHouseReader) GetErrorForType(ctx context.Context, queryParams *mod
|
|||||||
if len(getErrorWithSpanReponse) > 0 {
|
if len(getErrorWithSpanReponse) > 0 {
|
||||||
return &getErrorWithSpanReponse[0], nil
|
return &getErrorWithSpanReponse[0], nil
|
||||||
} else {
|
} else {
|
||||||
return nil, &model.ApiError{Typ: model.ErrorNotFound, Err: fmt.Errorf("Error not found")}
|
return nil, &model.ApiError{Typ: model.ErrorUnavailable, Err: fmt.Errorf("Error/Exception not found")}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,7 @@ type SpanFiltersResponse struct {
|
|||||||
type Error struct {
|
type Error struct {
|
||||||
ExceptionType string `json:"exceptionType" ch:"exceptionType"`
|
ExceptionType string `json:"exceptionType" ch:"exceptionType"`
|
||||||
ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"`
|
ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"`
|
||||||
ExceptionCount int64 `json:"exceptionCount" ch:"exceptionCount"`
|
ExceptionCount uint64 `json:"exceptionCount" ch:"exceptionCount"`
|
||||||
LastSeen time.Time `json:"lastSeen" ch:"lastSeen"`
|
LastSeen time.Time `json:"lastSeen" ch:"lastSeen"`
|
||||||
FirstSeen time.Time `json:"firstSeen" ch:"firstSeen"`
|
FirstSeen time.Time `json:"firstSeen" ch:"firstSeen"`
|
||||||
ServiceName string `json:"serviceName" ch:"serviceName"`
|
ServiceName string `json:"serviceName" ch:"serviceName"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user