Include event ID in Sentry dump

This commit is contained in:
Ske 2019-09-02 20:37:24 +02:00
parent 7d1accd58d
commit 86d0b24758

View File

@ -271,7 +271,9 @@ namespace PluralKit.Bot
// and log the breadcrumb to the newly created (in-svc-scope) Sentry scope
using (var scope = _services.CreateScope())
{
var evtid = scope.ServiceProvider.GetService<EventIdProvider>().EventId;
var sentryScope = scope.ServiceProvider.GetRequiredService<Scope>();
sentryScope.SetTag("evtid", evtid.ToString());
breadcrumbFactory(sentryScope);
try