adds tracing for all bus calls that passes ctx (#29434)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2020-11-27 14:58:45 +01:00
committed by GitHub
parent 107f658229
commit cffc1b13ad
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ func NotificationTest(c *models.ReqContext, dto dtos.NotificationTestCommand) Re
SecureSettings: dto.SecureSettings,
}
if err := bus.Dispatch(cmd); err != nil {
if err := bus.DispatchCtx(c.Req.Context(), cmd); err != nil {
if errors.Is(err, models.ErrSmtpNotEnabled) {
return Error(412, err.Error(), err)
}