action_reporter 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/action_reporter.gemspec +1 -1
- data/lib/action_reporter/sentry_reporter.rb +2 -6
- data/lib/action_reporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7b18e69aacb2c2e5c3c78668f0e628e7d332f3665a8deb19c26d75d8890a4e4
|
4
|
+
data.tar.gz: 738c776f0ac5447f92a62a12bd3ff0aea68aa01b163f367ee22903bae6c7b75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bdd4c08e577f33521485d9b1abc099f00e447879700e308e311faa425c464930e0fdb1a149168e5bc3ff8bd536f667dada69e49bb4d7b3e3506f84149ecc3a8
|
7
|
+
data.tar.gz: 420ad582cdf6fa8616efcddcfbda793f9b36a90251147021ec38686ec030b38f21ab9d39da6633ff51c76d0752bcea0fd7249c72433ff0eecd3995c4caa00f97
|
data/CHANGELOG.md
CHANGED
data/action_reporter.gemspec
CHANGED
@@ -4,9 +4,7 @@ module ActionReporter
|
|
4
4
|
|
5
5
|
def notify(error, context: {})
|
6
6
|
Sentry.with_scope do |temp_scope|
|
7
|
-
transform_context(context)
|
8
|
-
temp_scope.set_context(key, value)
|
9
|
-
end
|
7
|
+
temp_scope.set_context("context", transform_context(context))
|
10
8
|
|
11
9
|
if error.is_a?(StandardError)
|
12
10
|
Sentry.capture_exception(error)
|
@@ -17,9 +15,7 @@ module ActionReporter
|
|
17
15
|
end
|
18
16
|
|
19
17
|
def context(args)
|
20
|
-
transform_context(args)
|
21
|
-
Sentry.get_current_scope.set_context(key, value)
|
22
|
-
end
|
18
|
+
Sentry.get_current_scope.set_context("context", transform_context(args))
|
23
19
|
end
|
24
20
|
|
25
21
|
def audited_user=(user)
|