Remove some useless sentry spans

This commit is contained in:
Slavi Pantaleev
2022-08-25 21:41:20 +03:00
parent 06856adb86
commit a093de51c4

View File

@@ -99,8 +99,6 @@ func (b *Bot) onBotJoin(evt *event.Event, hub *sentry.Hub) {
}
ctx := sentry.SetHubOnContext(context.Background(), hub)
span := sentry.StartSpan(ctx, "http.server", sentry.TransactionName("onBotJoin"))
defer span.Finish()
b.sendIntroduction(ctx, evt.RoomID)
b.sendHelp(ctx, evt.RoomID)