sentry-rails 0.3.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +34 -1
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77b9b80b3b1a86d1ae7505e280d02e11e434c63b0952921fc4bf5e7e8784c7a6
|
|
4
|
+
data.tar.gz: fa67dc90e35e176250e8c1bc6634d96be8fb10a4c59d150010939d786a9e660d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0949c417ea51c4bf46c73ab457fb0b5dccfeae5b6e19d94236a1cce86f84ce6818dfc2c86ad8390bd0fbdd7dca2e256e6e45c90ca9911607088783cd9be009fb'
|
|
7
|
+
data.tar.gz: 002ad77da75a4d906822cd6f42cc1334ebea2ce3998623db5fc27bcc229f1afc02b4c30b0d375a106f47ea69adf7f6b472c1a8d3d82be158fed8d5e8341ef578
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
rails_version = ENV["RAILS_VERSION"]
|
|
7
|
-
rails_version = "6.0" if rails_version.nil?
|
|
7
|
+
rails_version = "6.1.0" if rails_version.nil?
|
|
8
8
|
|
|
9
9
|
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
|
10
10
|
gem "jdbc-sqlite3", platform: :jruby
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
[](https://dependabot.com/compatibility-score.html?dependency-name=sentry-rails&package-manager=bundler&version-scheme=semver)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
[Documentation](https://docs.sentry.io/
|
|
20
|
+
[Documentation](https://docs.sentry.io/platforms/ruby/guides/rails/) | [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
|
|
21
21
|
|
|
22
22
|
The official Ruby-language client and integration layer for the [Sentry](https://github.com/getsentry/sentry) error reporting API.
|
|
23
23
|
|
|
@@ -50,3 +50,36 @@ Sentry.init do |config|
|
|
|
50
50
|
end
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
### Performance Monitoring
|
|
54
|
+
|
|
55
|
+
You can activate performance monitoring by enabling traces sampling:
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
Sentry.init do |config|
|
|
59
|
+
# set a uniform sample rate between 0.0 and 1.0
|
|
60
|
+
config.traces_sample_rate = 0.2
|
|
61
|
+
|
|
62
|
+
# or control sampling dynamically
|
|
63
|
+
config.traces_sampler = lambda do |sampling_context|
|
|
64
|
+
# sampling_context[:transaction_context] contains the information about the transaction
|
|
65
|
+
# sampling_context[:parent_sampled] contains the transaction's parent's sample decision
|
|
66
|
+
true # return value can be a boolean or a float between 0.0 and 1.0
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Currently, it tracks the following Rails instrumentation events:
|
|
72
|
+
|
|
73
|
+
- ActiveRecord
|
|
74
|
+
- `sql.active_record`
|
|
75
|
+
- ActionController
|
|
76
|
+
- `process_action.action_controller`
|
|
77
|
+
- ActionView
|
|
78
|
+
- `render_template.action_view`
|
|
79
|
+
- `render_partial.action_view`
|
|
80
|
+
- `render_collection.action_view`
|
|
81
|
+
|
|
82
|
+
To lean more about performance monitoring, please visit the [official documentation](https://docs.sentry.io/platforms/ruby/guides/rails/performance/).
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentry-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-12-
|
|
11
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 4.0.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 4.0.0
|
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
|
42
42
|
email: accounts@sentry.io
|
|
43
43
|
executables: []
|