mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
Include event ID in Sentry dump
This commit is contained in:
parent
7d1accd58d
commit
86d0b24758
1 changed files with 2 additions and 0 deletions
|
|
@ -271,7 +271,9 @@ namespace PluralKit.Bot
|
||||||
// and log the breadcrumb to the newly created (in-svc-scope) Sentry scope
|
// and log the breadcrumb to the newly created (in-svc-scope) Sentry scope
|
||||||
using (var scope = _services.CreateScope())
|
using (var scope = _services.CreateScope())
|
||||||
{
|
{
|
||||||
|
var evtid = scope.ServiceProvider.GetService<EventIdProvider>().EventId;
|
||||||
var sentryScope = scope.ServiceProvider.GetRequiredService<Scope>();
|
var sentryScope = scope.ServiceProvider.GetRequiredService<Scope>();
|
||||||
|
sentryScope.SetTag("evtid", evtid.ToString());
|
||||||
breadcrumbFactory(sentryScope);
|
breadcrumbFactory(sentryScope);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue