Split reply and quote embed building trace apart in !quote
This commit is contained in:
parent
0a9099a6d2
commit
3d117aebe1
1 changed files with 2 additions and 2 deletions
|
@ -61,10 +61,10 @@ namespace Geekbot.Bot.Commands.Utils.Quote
|
||||||
var quote = _database.Quotes.Where(e => e.GuildId.Equals(Context.Guild.Id.AsLong())).Skip(random).Take(1);
|
var quote = _database.Quotes.Where(e => e.GuildId.Equals(Context.Guild.Id.AsLong())).Skip(random).Take(1);
|
||||||
getQuoteFromDbSpan.Finish();
|
getQuoteFromDbSpan.Finish();
|
||||||
|
|
||||||
var replySpan = Transaction.StartChild("Reply");
|
var buildQuoteEmbedSpan = Transaction.StartChild("BuildQuoteEmbed");
|
||||||
var embed = QuoteBuilder(quote.FirstOrDefault());
|
var embed = QuoteBuilder(quote.FirstOrDefault());
|
||||||
|
buildQuoteEmbedSpan.Finish();
|
||||||
await ReplyAsync("", false, embed.Build());
|
await ReplyAsync("", false, embed.Build());
|
||||||
replySpan.Finish();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue