fix(observabillity): propagate ctx to every log call and add resource to logging
This commit was merged in pull request #187.
This commit is contained in:
@@ -57,7 +57,7 @@ func (handler IndexImpl) handleRootAnd404() http.HandlerFunc {
|
||||
var err error
|
||||
comp, err = handler.dashboard(user, htmx, r)
|
||||
if err != nil {
|
||||
slog.Error("Failed to get dashboard summary", "err", err)
|
||||
slog.ErrorContext(r.Context(), "Failed to get dashboard summary", "err", err)
|
||||
}
|
||||
} else {
|
||||
comp = template.Index()
|
||||
|
||||
Reference in New Issue
Block a user