mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Added fingerprint to sentry events to allow better grouping
This commit is contained in:
parent
e6705db743
commit
bcd67dee5e
@ -74,6 +74,13 @@ protected override void Write(LogEventInfo logEvent)
|
||||
Level = LoggingLevelMap[logEvent.Level],
|
||||
Message = sentryMessage,
|
||||
Extra = extras,
|
||||
Fingerprint =
|
||||
{
|
||||
logEvent.Level.ToString(),
|
||||
logEvent.LoggerName,
|
||||
logEvent.Message,
|
||||
logEvent.Exception?.GetType().ToString()
|
||||
}
|
||||
};
|
||||
|
||||
sentryEvent.Tags.Add("os_name", Environment.GetEnvironmentVariable("OS_NAME"));
|
||||
|
Loading…
Reference in New Issue
Block a user