sentry-raven 3.0.4 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.craft.yml +9 -5
- data/.scripts/bump-version.rb +5 -0
- data/CHANGELOG.md +145 -1
- data/Gemfile +5 -1
- data/Makefile +3 -0
- data/README.md +26 -8
- data/lib/raven/backtrace.rb +2 -0
- data/lib/raven/base.rb +2 -0
- data/lib/raven/breadcrumbs/active_support_logger.rb +25 -0
- data/lib/raven/breadcrumbs/logger.rb +2 -92
- data/lib/raven/breadcrumbs/sentry_logger.rb +73 -0
- data/lib/raven/cli.rb +1 -1
- data/lib/raven/client.rb +1 -1
- data/lib/raven/configuration.rb +75 -4
- data/lib/raven/context.rb +13 -8
- data/lib/raven/event.rb +27 -13
- data/lib/raven/helpers/deprecation_helper.rb +17 -0
- data/lib/raven/instance.rb +15 -2
- data/lib/raven/integrations/delayed_job.rb +2 -1
- data/lib/raven/integrations/rack-timeout.rb +5 -1
- data/lib/raven/integrations/rack.rb +5 -4
- data/lib/raven/integrations/rails.rb +12 -3
- data/lib/raven/integrations/rails/active_job.rb +2 -1
- data/lib/raven/integrations/rails/backtrace_cleaner.rb +29 -0
- data/lib/raven/integrations/sidekiq.rb +4 -78
- data/lib/raven/integrations/sidekiq/cleanup_middleware.rb +13 -0
- data/lib/raven/integrations/sidekiq/error_handler.rb +38 -0
- data/lib/raven/transports/http.rb +2 -3
- data/lib/raven/utils/context_filter.rb +42 -0
- data/lib/raven/utils/request_id.rb +16 -0
- data/lib/raven/version.rb +1 -1
- data/lib/sentry-raven-without-integrations.rb +6 -1
- data/lib/sentry_raven_without_integrations.rb +1 -0
- data/sentry-raven.gemspec +7 -0
- metadata +18 -12
- data/.github/workflows/test.yml +0 -87
- data/.github/workflows/zeus_upload.yml +0 -32
- data/.gitignore +0 -15
- data/.gitmodules +0 -0
- data/.rspec +0 -1
- data/.rubocop.yml +0 -109
- data/.scripts/bump-version.sh +0 -9
- data/CONTRIUTING.md +0 -26
- data/lib/raven/breadcrumbs/activesupport.rb +0 -19
data/.github/workflows/test.yml
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
name: Test
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
pull_request:
|
8
|
-
jobs:
|
9
|
-
test:
|
10
|
-
name: Test on ruby ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
|
11
|
-
runs-on: ${{ matrix.os }}
|
12
|
-
strategy:
|
13
|
-
matrix:
|
14
|
-
rails_version: [0, 4.2, 5.2, 6.0]
|
15
|
-
ruby_version: [2.3, 2.4, 2.5, 2.6, 2.7, jruby, head]
|
16
|
-
os: [ubuntu-latest]
|
17
|
-
include:
|
18
|
-
- ruby_version: head
|
19
|
-
rails_version: 0
|
20
|
-
- ruby_version: 2.7
|
21
|
-
rails_version: 6.0
|
22
|
-
env: RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
|
23
|
-
exclude:
|
24
|
-
- ruby_version: 2.3
|
25
|
-
rails_version: 6.0
|
26
|
-
- ruby_version: 2.4
|
27
|
-
rails_version: 6.0
|
28
|
-
- ruby_version: 2.7
|
29
|
-
rails_version: 4.2
|
30
|
-
- ruby_version: head
|
31
|
-
rails_version: 4.2
|
32
|
-
- ruby_version: head
|
33
|
-
rails_version: 5.2
|
34
|
-
- ruby_version: head
|
35
|
-
rails_version: 6.0
|
36
|
-
|
37
|
-
steps:
|
38
|
-
- uses: actions/checkout@v1
|
39
|
-
|
40
|
-
- name: Set up Ruby ${{ matrix.ruby_version }}
|
41
|
-
uses: ruby/setup-ruby@v1
|
42
|
-
with:
|
43
|
-
bundler: 1
|
44
|
-
ruby-version: ${{ matrix.ruby_version }}
|
45
|
-
|
46
|
-
- name: Build with Rails ${{ matrix.rails_version }}
|
47
|
-
env:
|
48
|
-
RAILS_VERSION: ${{ matrix.rails_version }}
|
49
|
-
run: |
|
50
|
-
bundle install --jobs 4 --retry 3
|
51
|
-
bundle exec rake
|
52
|
-
|
53
|
-
compare_allocation:
|
54
|
-
name: Compare memory allocation with ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
|
55
|
-
runs-on: ${{ matrix.os }}
|
56
|
-
needs: test
|
57
|
-
env:
|
58
|
-
RAILS_VERSION: ${{ matrix.rails_version }}
|
59
|
-
strategy:
|
60
|
-
matrix:
|
61
|
-
rails_version: [5.2, 6.0]
|
62
|
-
ruby_version: [2.6, 2.7]
|
63
|
-
os: [ubuntu-latest]
|
64
|
-
steps:
|
65
|
-
- name: Set up Ruby ${{ matrix.ruby_version }}
|
66
|
-
uses: ruby/setup-ruby@v1
|
67
|
-
with:
|
68
|
-
bundler: 1
|
69
|
-
ruby-version: ${{ matrix.ruby_version }}
|
70
|
-
|
71
|
-
- uses: actions/checkout@v2
|
72
|
-
with:
|
73
|
-
ref: master
|
74
|
-
|
75
|
-
- name: Build and run allocation report on master
|
76
|
-
run: |
|
77
|
-
bundle install --jobs 4 --retry 3
|
78
|
-
bundle exec ruby benchmarks/allocation_comparison.rb
|
79
|
-
|
80
|
-
- uses: actions/checkout@v1
|
81
|
-
|
82
|
-
- name: Rebuild on the branch
|
83
|
-
run: |
|
84
|
-
bundle install --jobs 4 --retry 3
|
85
|
-
- name: Run allocation report on the branch
|
86
|
-
run: |
|
87
|
-
bundle exec ruby benchmarks/allocation_comparison.rb
|
@@ -1,32 +0,0 @@
|
|
1
|
-
name: Zeus Upload
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- release/**
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
zeus_upload:
|
10
|
-
name: Zeus
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
steps:
|
13
|
-
- uses: actions/checkout@v2
|
14
|
-
- uses: actions/setup-node@v1
|
15
|
-
- name: Set up Ruby
|
16
|
-
uses: ruby/setup-ruby@v1
|
17
|
-
with:
|
18
|
-
ruby-version: 2.6 # Not needed with a .ruby-version file
|
19
|
-
- run: bundle install
|
20
|
-
- name: Install Zeus
|
21
|
-
run: |
|
22
|
-
yarn global add @zeus-ci/cli
|
23
|
-
echo "::add-path::$(yarn global bin)"
|
24
|
-
- name: Upload to Zeus
|
25
|
-
env:
|
26
|
-
ZEUS_API_TOKEN: ${{ secrets.ZEUS_API_TOKEN }}
|
27
|
-
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
|
28
|
-
run: |
|
29
|
-
zeus job update -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
|
30
|
-
gem build sentry-raven.gemspec
|
31
|
-
zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/tar+gem" ./*.gem
|
32
|
-
zeus job update --status=passed -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
|
data/.gitignore
DELETED
data/.gitmodules
DELETED
File without changes
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/.rubocop.yml
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
Include:
|
3
|
-
- 'lib/**/*.rb'
|
4
|
-
- 'spec/**/*.rb'
|
5
|
-
Exclude:
|
6
|
-
- 'examples/**/*'
|
7
|
-
- 'vendor/**/*'
|
8
|
-
|
9
|
-
Metrics/ClassLength:
|
10
|
-
Max: 300
|
11
|
-
CountComments: false
|
12
|
-
|
13
|
-
Metrics/AbcSize:
|
14
|
-
Max: 40
|
15
|
-
|
16
|
-
Metrics/BlockLength:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
Metrics/CyclomaticComplexity:
|
20
|
-
Max: 12
|
21
|
-
|
22
|
-
Metrics/PerceivedComplexity:
|
23
|
-
Max: 11
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Max: 30
|
27
|
-
|
28
|
-
Style/SymbolArray:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Style/PercentLiteralDelimiters:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Style/FrozenStringLiteralComment:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
Style/SignalException:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
Style/ClassAndModuleChildren:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Style/RescueStandardError:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Style/ParallelAssignment:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Style/Documentation:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Style/CommentedKeyword:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Style/RescueModifier:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Style/StringLiterals:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Style/CaseEquality:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
Style/DoubleNegation:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Style/GuardClause:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Style/RedundantBegin:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Style/NumericLiterals:
|
74
|
-
Exclude:
|
75
|
-
- 'spec/raven/processors/sanitizedata_processor_spec.rb'
|
76
|
-
|
77
|
-
Style/HashSyntax:
|
78
|
-
EnforcedStyle: hash_rockets
|
79
|
-
|
80
|
-
Style/IfUnlessModifier:
|
81
|
-
Enabled: false
|
82
|
-
|
83
|
-
Lint/RescueException:
|
84
|
-
Exclude:
|
85
|
-
- 'lib/raven/base.rb'
|
86
|
-
- 'lib/raven/instance.rb'
|
87
|
-
- 'lib/raven/integrations/delayed_job.rb'
|
88
|
-
- 'lib/raven/integrations/rack.rb'
|
89
|
-
- 'lib/raven/integrations/sidekiq.rb'
|
90
|
-
- 'spec/raven/event_spec.rb'
|
91
|
-
|
92
|
-
Lint/SuppressedException:
|
93
|
-
Enabled: false
|
94
|
-
|
95
|
-
Lint/AssignmentInCondition:
|
96
|
-
Enabled: false
|
97
|
-
|
98
|
-
Layout/LineLength:
|
99
|
-
Max: 155
|
100
|
-
|
101
|
-
Naming/FileName:
|
102
|
-
Exclude:
|
103
|
-
- 'lib/sentry-raven-without-integrations.rb'
|
104
|
-
- 'lib/sentry-raven.rb'
|
105
|
-
- 'lib/raven/integrations/rack-timeout.rb'
|
106
|
-
|
107
|
-
Naming/MethodParameterName:
|
108
|
-
Enabled: false
|
109
|
-
|
data/.scripts/bump-version.sh
DELETED
data/CONTRIUTING.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<p align="center">
|
2
|
-
<a href="https://sentry.io" target="_blank" align="center">
|
3
|
-
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
|
4
|
-
</a>
|
5
|
-
<br />
|
6
|
-
</p>
|
7
|
-
|
8
|
-
# Contributing
|
9
|
-
|
10
|
-
We welcome suggested improvements and bug fixes in the form of pull requests. The guide below will help you get started, but if you have further questions, please feel free to reach out on [Discord](https://discord.gg/Ww9hbqr).
|
11
|
-
|
12
|
-
|
13
|
-
## Making a release
|
14
|
-
|
15
|
-
Install and use `craft`: https://github.com/getsentry/craft
|
16
|
-
|
17
|
-
Make sure the `CHANGELOG.md` is update and latest `master` contains all changes.
|
18
|
-
|
19
|
-
Run:
|
20
|
-
|
21
|
-
```bash
|
22
|
-
craft prepare x.x.x
|
23
|
-
```
|
24
|
-
|
25
|
-
Where `x.x.x` stands for the version you want to release.
|
26
|
-
Afterwards reach out to an employee of Sentry, they will cut a release by running the `publish` process of `craft`.
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Raven
|
2
|
-
module ActiveSupportBreadcrumbs
|
3
|
-
class << self
|
4
|
-
def add(name, started, _finished, _unique_id, data)
|
5
|
-
Raven.breadcrumbs.record do |crumb|
|
6
|
-
crumb.data = data
|
7
|
-
crumb.category = name
|
8
|
-
crumb.timestamp = started.to_i
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def inject
|
13
|
-
ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data|
|
14
|
-
add(name, started, finished, unique_id, data)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|