mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 01:28:59 +08:00
fix: fix typo and return empty struct instead of null (#1092)
This commit is contained in:
parent
3789e25a1e
commit
374a2415d9
@ -2503,7 +2503,7 @@ func (r *ClickHouseReader) GetErrorForId(ctx context.Context, queryParams *model
|
|||||||
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 ID not found")}
|
return &model.ErrorWithSpan{}, &model.ApiError{Typ: model.ErrorNotFound, Err: fmt.Errorf("Error ID not found")}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -328,15 +328,15 @@ type Error struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ErrorWithSpan struct {
|
type ErrorWithSpan struct {
|
||||||
ErrorID string `json:"errorId" ch:"errorID"`
|
ErrorID string `json:"errorId" ch:"errorID"`
|
||||||
ExceptionType string `json:"exceptionType" ch:"exceptionType"`
|
ExceptionType string `json:"exceptionType" ch:"exceptionType"`
|
||||||
ExcepionStacktrace string `json:"excepionStacktrace" ch:"excepionStacktrace"`
|
ExceptionStacktrace string `json:"exceptionStacktrace" ch:"exceptionStacktrace"`
|
||||||
ExceptionEscaped string `json:"exceptionEscaped" ch:"exceptionEscaped"`
|
ExceptionEscaped string `json:"exceptionEscaped" ch:"exceptionEscaped"`
|
||||||
ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"`
|
ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"`
|
||||||
Timestamp time.Time `json:"timestamp" ch:"timestamp"`
|
Timestamp time.Time `json:"timestamp" ch:"timestamp"`
|
||||||
SpanID string `json:"spanID" ch:"spanID"`
|
SpanID string `json:"spanID" ch:"spanID"`
|
||||||
TraceID string `json:"traceID" ch:"traceID"`
|
TraceID string `json:"traceID" ch:"traceID"`
|
||||||
ServiceName string `json:"serviceName" ch:"serviceName"`
|
ServiceName string `json:"serviceName" ch:"serviceName"`
|
||||||
NewerErrorID string `json:"newerErrorId" ch:"newerErrorId"`
|
NewerErrorID string `json:"newerErrorId" ch:"newerErrorId"`
|
||||||
OlderErrorID string `json:"olderErrorId" ch:"olderErrorId"`
|
OlderErrorID string `json:"olderErrorId" ch:"olderErrorId"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user