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

View File

@@ -30,10 +30,10 @@ var (
)
func init() {
bus.AddHandler("alerting", handleNotificationTestCommand)
bus.AddHandlerCtx("alerting", handleNotificationTestCommand)
}
func handleNotificationTestCommand(cmd *NotificationTestCommand) error {
func handleNotificationTestCommand(ctx context.Context, cmd *NotificationTestCommand) error {
notifier := newNotificationService(nil)
model := &models.AlertNotification{