sentry-ruby 5.16.1 → 5.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/README.md +20 -10
  4. data/Rakefile +1 -1
  5. data/bin/console +1 -0
  6. data/lib/sentry/attachment.rb +42 -0
  7. data/lib/sentry/background_worker.rb +1 -1
  8. data/lib/sentry/backpressure_monitor.rb +2 -32
  9. data/lib/sentry/backtrace.rb +7 -3
  10. data/lib/sentry/check_in_event.rb +1 -1
  11. data/lib/sentry/client.rb +59 -9
  12. data/lib/sentry/configuration.rb +25 -12
  13. data/lib/sentry/cron/monitor_schedule.rb +1 -1
  14. data/lib/sentry/dsn.rb +1 -1
  15. data/lib/sentry/envelope.rb +18 -1
  16. data/lib/sentry/error_event.rb +2 -2
  17. data/lib/sentry/event.rb +13 -11
  18. data/lib/sentry/faraday.rb +77 -0
  19. data/lib/sentry/graphql.rb +9 -0
  20. data/lib/sentry/hub.rb +15 -2
  21. data/lib/sentry/integrable.rb +4 -0
  22. data/lib/sentry/interface.rb +1 -0
  23. data/lib/sentry/interfaces/exception.rb +5 -3
  24. data/lib/sentry/interfaces/mechanism.rb +20 -0
  25. data/lib/sentry/interfaces/request.rb +2 -2
  26. data/lib/sentry/interfaces/single_exception.rb +6 -4
  27. data/lib/sentry/interfaces/stacktrace_builder.rb +8 -0
  28. data/lib/sentry/metrics/aggregator.rb +248 -0
  29. data/lib/sentry/metrics/configuration.rb +47 -0
  30. data/lib/sentry/metrics/counter_metric.rb +25 -0
  31. data/lib/sentry/metrics/distribution_metric.rb +25 -0
  32. data/lib/sentry/metrics/gauge_metric.rb +35 -0
  33. data/lib/sentry/metrics/local_aggregator.rb +53 -0
  34. data/lib/sentry/metrics/metric.rb +19 -0
  35. data/lib/sentry/metrics/set_metric.rb +28 -0
  36. data/lib/sentry/metrics/timing.rb +43 -0
  37. data/lib/sentry/metrics.rb +56 -0
  38. data/lib/sentry/net/http.rb +17 -38
  39. data/lib/sentry/propagation_context.rb +9 -8
  40. data/lib/sentry/puma.rb +1 -1
  41. data/lib/sentry/rack/capture_exceptions.rb +14 -2
  42. data/lib/sentry/rake.rb +3 -1
  43. data/lib/sentry/redis.rb +2 -1
  44. data/lib/sentry/scope.rb +35 -26
  45. data/lib/sentry/session.rb +2 -2
  46. data/lib/sentry/session_flusher.rb +6 -38
  47. data/lib/sentry/span.rb +40 -5
  48. data/lib/sentry/test_helper.rb +2 -1
  49. data/lib/sentry/threaded_periodic_worker.rb +39 -0
  50. data/lib/sentry/transaction.rb +16 -14
  51. data/lib/sentry/transaction_event.rb +5 -0
  52. data/lib/sentry/transport/configuration.rb +0 -1
  53. data/lib/sentry/transport.rb +14 -22
  54. data/lib/sentry/utils/argument_checking_helper.rb +6 -0
  55. data/lib/sentry/utils/http_tracing.rb +41 -0
  56. data/lib/sentry/utils/logging_helper.rb +0 -4
  57. data/lib/sentry/utils/real_ip.rb +1 -1
  58. data/lib/sentry/utils/request_id.rb +1 -1
  59. data/lib/sentry/version.rb +1 -1
  60. data/lib/sentry-ruby.rb +34 -3
  61. data/sentry-ruby.gemspec +12 -5
  62. metadata +39 -7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.16.1
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: bigdecimal
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
33
47
  description: A gem that provides a client interface for the Sentry error logger
34
48
  email: accounts@sentry.io
35
49
  executables: []
@@ -50,6 +64,7 @@ files:
50
64
  - bin/console
51
65
  - bin/setup
52
66
  - lib/sentry-ruby.rb
67
+ - lib/sentry/attachment.rb
53
68
  - lib/sentry/background_worker.rb
54
69
  - lib/sentry/backpressure_monitor.rb
55
70
  - lib/sentry/backtrace.rb
@@ -71,10 +86,13 @@ files:
71
86
  - lib/sentry/error_event.rb
72
87
  - lib/sentry/event.rb
73
88
  - lib/sentry/exceptions.rb
89
+ - lib/sentry/faraday.rb
90
+ - lib/sentry/graphql.rb
74
91
  - lib/sentry/hub.rb
75
92
  - lib/sentry/integrable.rb
76
93
  - lib/sentry/interface.rb
77
94
  - lib/sentry/interfaces/exception.rb
95
+ - lib/sentry/interfaces/mechanism.rb
78
96
  - lib/sentry/interfaces/request.rb
79
97
  - lib/sentry/interfaces/single_exception.rb
80
98
  - lib/sentry/interfaces/stacktrace.rb
@@ -82,6 +100,16 @@ files:
82
100
  - lib/sentry/interfaces/threads.rb
83
101
  - lib/sentry/linecache.rb
84
102
  - lib/sentry/logger.rb
103
+ - lib/sentry/metrics.rb
104
+ - lib/sentry/metrics/aggregator.rb
105
+ - lib/sentry/metrics/configuration.rb
106
+ - lib/sentry/metrics/counter_metric.rb
107
+ - lib/sentry/metrics/distribution_metric.rb
108
+ - lib/sentry/metrics/gauge_metric.rb
109
+ - lib/sentry/metrics/local_aggregator.rb
110
+ - lib/sentry/metrics/metric.rb
111
+ - lib/sentry/metrics/set_metric.rb
112
+ - lib/sentry/metrics/timing.rb
85
113
  - lib/sentry/net/http.rb
86
114
  - lib/sentry/profiler.rb
87
115
  - lib/sentry/propagation_context.rb
@@ -96,6 +124,7 @@ files:
96
124
  - lib/sentry/session_flusher.rb
97
125
  - lib/sentry/span.rb
98
126
  - lib/sentry/test_helper.rb
127
+ - lib/sentry/threaded_periodic_worker.rb
99
128
  - lib/sentry/transaction.rb
100
129
  - lib/sentry/transaction_event.rb
101
130
  - lib/sentry/transport.rb
@@ -107,19 +136,22 @@ files:
107
136
  - lib/sentry/utils/custom_inspection.rb
108
137
  - lib/sentry/utils/encoding_helper.rb
109
138
  - lib/sentry/utils/exception_cause_chain.rb
139
+ - lib/sentry/utils/http_tracing.rb
110
140
  - lib/sentry/utils/logging_helper.rb
111
141
  - lib/sentry/utils/real_ip.rb
112
142
  - lib/sentry/utils/request_id.rb
113
143
  - lib/sentry/version.rb
114
144
  - sentry-ruby-core.gemspec
115
145
  - sentry-ruby.gemspec
116
- homepage: https://github.com/getsentry/sentry-ruby
146
+ homepage: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-ruby
117
147
  licenses:
118
148
  - MIT
119
149
  metadata:
120
- homepage_uri: https://github.com/getsentry/sentry-ruby
121
- source_code_uri: https://github.com/getsentry/sentry-ruby
122
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
150
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-ruby
151
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-ruby
152
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.19.0/CHANGELOG.md
153
+ bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
154
+ documentation_uri: http://www.rubydoc.info/gems/sentry-ruby/5.19.0
123
155
  post_install_message:
124
156
  rdoc_options: []
125
157
  require_paths:
@@ -135,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
167
  - !ruby/object:Gem::Version
136
168
  version: '0'
137
169
  requirements: []
138
- rubygems_version: 3.1.6
170
+ rubygems_version: 3.5.11
139
171
  signing_key:
140
172
  specification_version: 4
141
173
  summary: A gem that provides a client interface for the Sentry error logger