action_reporter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -5
- data/action_reporter.gemspec +1 -1
- data/lib/action_reporter/base.rb +9 -0
- data/lib/action_reporter/scout_apm_reporter.rb +0 -9
- 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: 635a23e3496c3d18ed4cc254a9777896835b332529bfd8c9ed762fc7b20f3c76
|
4
|
+
data.tar.gz: 72c4f80f6b4d8a37d561f18431860534be34db8696fff9ce31cc92f03e64bbe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 973437e5b1b7201d439c96f2fb4d28ac12c585e6ff634130ef77e9909f22160cb30cd632947fe8d00426d878dc72e746f9703101a4aeb65d41869d88a18e637a
|
7
|
+
data.tar.gz: b93644614f0657b6386639d4bdc73546d5105fd49688a91b34c17123ad1ea706f84f2ec06d231b9adce0bfebfb70924b56188a46350f64e2ae53d2ccf81c8c02
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -37,11 +37,11 @@ Put this in your `config/initializers/action_reporter.rb` file:
|
|
37
37
|
|
38
38
|
```ruby
|
39
39
|
ActionReporter.enabled_reporters = [
|
40
|
-
ActionReporter::
|
41
|
-
# ActionReporter::
|
42
|
-
# ActionReporter::
|
43
|
-
# ActionReporter::
|
44
|
-
# ActionReporter::
|
40
|
+
ActionReporter::RailsReporter.new,
|
41
|
+
# ActionReporter::AuditedReporter.new,
|
42
|
+
# ActionReporter::SentryReporter.new,
|
43
|
+
# ActionReporter::HoneybadgerReporter.new,
|
44
|
+
# ActionReporter::ScoutApmReporter.new
|
45
45
|
]
|
46
46
|
```
|
47
47
|
|
data/action_reporter.gemspec
CHANGED
data/lib/action_reporter/base.rb
CHANGED
@@ -8,16 +8,7 @@ module ActionReporter
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def context(args)
|
11
|
-
if args[:audited_user].present?
|
12
|
-
ScoutApmContext.add_user(
|
13
|
-
audited_user_global_id: args[:audited_user].to_global_id
|
14
|
-
)
|
15
|
-
end
|
16
11
|
ScoutApmContext.add(args)
|
17
12
|
end
|
18
|
-
|
19
|
-
def reset_context
|
20
|
-
ScoutApmContext.clear!
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|