sentry-rails 5.27.0 → 5.27.1
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/lib/sentry/rails/log_subscriber.rb +5 -2
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0aff310b1ab776704872c3210b233ce6a01cfabdd08014f2dae44fa4c0763d1
|
4
|
+
data.tar.gz: eecd109945929eee331f0476c6b999a70bde3122ce4174e9ed3a597909e34bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50d05e502782dbec8cb6dc3b51b39ea8083bbdf2957be38359c730a11bb139348cfbfb195193e3e1216a613ece00658b285d222260943293cf6a4d7a34aaf520
|
7
|
+
data.tar.gz: e461a06a74cdcbf5377952c16fdd090f8f5dcf2f9177f384f3d67523361233d3dbf4a071b83753be4166b347d19e80d21d804f7d5a6c9562f8319ecaebf31a22
|
@@ -27,6 +27,8 @@ module Sentry
|
|
27
27
|
# end
|
28
28
|
# end
|
29
29
|
class LogSubscriber < ActiveSupport::LogSubscriber
|
30
|
+
ORIGIN = "auto.logger.rails.log_subscriber"
|
31
|
+
|
30
32
|
class << self
|
31
33
|
if ::Rails.version.to_f < 6.0
|
32
34
|
# Rails 5.x does not provide detach_from
|
@@ -51,8 +53,9 @@ module Sentry
|
|
51
53
|
# @param message [String] The log message
|
52
54
|
# @param level [Symbol] The log level (:trace, :debug, :info, :warn, :error, :fatal)
|
53
55
|
# @param attributes [Hash] Additional structured attributes to include
|
54
|
-
|
55
|
-
|
56
|
+
# @param origin [String] The origin of the log event
|
57
|
+
def log_structured_event(message:, level: :info, attributes: {}, origin: ORIGIN)
|
58
|
+
Sentry.logger.public_send(level, message, **attributes, origin: origin)
|
56
59
|
rescue => e
|
57
60
|
# Silently handle any errors in logging to avoid breaking the application
|
58
61
|
Sentry.configuration.sdk_logger.debug("Failed to log structured event: #{e.message}")
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.27.
|
4
|
+
version: 5.27.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
@@ -29,14 +29,14 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.27.
|
32
|
+
version: 5.27.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 5.27.
|
39
|
+
version: 5.27.1
|
40
40
|
description: A gem that provides Rails integration for the Sentry error logger
|
41
41
|
email: accounts@sentry.io
|
42
42
|
executables: []
|
@@ -92,15 +92,15 @@ files:
|
|
92
92
|
- lib/sentry/rails/tracing/active_support_subscriber.rb
|
93
93
|
- lib/sentry/rails/version.rb
|
94
94
|
- sentry-rails.gemspec
|
95
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.27.
|
95
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.27.1/sentry-rails
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
98
|
metadata:
|
99
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.27.
|
100
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.27.
|
101
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.27.
|
99
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.27.1/sentry-rails
|
100
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.27.1/sentry-rails
|
101
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.27.1/CHANGELOG.md
|
102
102
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
103
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.27.
|
103
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.27.1
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|
106
106
|
- lib
|