diff options
Diffstat (limited to 'lib/sentry/client/issue.rb')
-rw-r--r-- | lib/sentry/client/issue.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sentry/client/issue.rb b/lib/sentry/client/issue.rb index 08ed5392a11..28e87ab18a1 100644 --- a/lib/sentry/client/issue.rb +++ b/lib/sentry/client/issue.rb @@ -36,6 +36,7 @@ module Sentry id: issue.fetch('id'), first_seen: issue.fetch('firstSeen', nil), last_seen: issue.fetch('lastSeen', nil), + tags: extract_tags(issue), title: issue.fetch('title', nil), type: issue.fetch('type', nil), user_count: issue.fetch('userCount', nil), @@ -57,6 +58,13 @@ module Sentry last_release_short_version: issue.dig('lastRelease', 'shortVersion') ) end + + def extract_tags(issue) + { + level: issue.fetch('level', nil), + logger: issue.fetch('logger', nil) + } + end end end end |