Added fingerprint to sentry events to allow better grouping

This commit is contained in:
Keivan Beigi 2017-01-04 20:01:43 -08:00
parent e6705db743
commit bcd67dee5e
1 changed files with 7 additions and 0 deletions

View File

@ -74,6 +74,13 @@ namespace NzbDrone.Common.Instrumentation.Sentry
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"));