sentry-ruby 5.26.0 → 6.4.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/Gemfile +27 -5
- data/README.md +3 -3
- data/lib/sentry/background_worker.rb +1 -4
- data/lib/sentry/backtrace/line.rb +99 -0
- data/lib/sentry/backtrace.rb +44 -76
- data/lib/sentry/baggage.rb +1 -1
- data/lib/sentry/breadcrumb.rb +1 -1
- data/lib/sentry/breadcrumb_buffer.rb +2 -2
- data/lib/sentry/check_in_event.rb +2 -2
- data/lib/sentry/client.rb +59 -136
- data/lib/sentry/configuration.rb +176 -78
- data/lib/sentry/cron/monitor_check_ins.rb +3 -3
- data/lib/sentry/cron/monitor_config.rb +2 -2
- data/lib/sentry/cron/monitor_schedule.rb +2 -2
- data/lib/sentry/debug_structured_logger.rb +94 -0
- data/lib/sentry/dsn.rb +52 -0
- data/lib/sentry/envelope/item.rb +3 -3
- data/lib/sentry/error_event.rb +3 -3
- data/lib/sentry/event.rb +4 -10
- data/lib/sentry/graphql.rb +1 -1
- data/lib/sentry/hub.rb +29 -5
- data/lib/sentry/interface.rb +1 -1
- data/lib/sentry/interfaces/exception.rb +2 -2
- data/lib/sentry/interfaces/request.rb +2 -0
- data/lib/sentry/interfaces/single_exception.rb +4 -4
- data/lib/sentry/interfaces/stacktrace.rb +3 -3
- data/lib/sentry/interfaces/stacktrace_builder.rb +0 -8
- data/lib/sentry/interfaces/threads.rb +2 -2
- data/lib/sentry/log_event.rb +33 -138
- data/lib/sentry/log_event_buffer.rb +13 -60
- data/lib/sentry/metric_event.rb +49 -0
- data/lib/sentry/metric_event_buffer.rb +28 -0
- data/lib/sentry/metrics.rb +47 -42
- data/lib/sentry/profiler.rb +4 -5
- data/lib/sentry/propagation_context.rb +55 -18
- data/lib/sentry/rack/capture_exceptions.rb +88 -2
- data/lib/sentry/rspec.rb +1 -1
- data/lib/sentry/scope.rb +50 -18
- data/lib/sentry/sequel.rb +35 -0
- data/lib/sentry/span.rb +5 -17
- data/lib/sentry/std_lib_logger.rb +10 -1
- data/lib/sentry/telemetry_event_buffer.rb +130 -0
- data/lib/sentry/test_helper.rb +30 -0
- data/lib/sentry/transaction.rb +72 -95
- data/lib/sentry/transaction_event.rb +4 -9
- data/lib/sentry/transport/debug_transport.rb +70 -0
- data/lib/sentry/transport/dummy_transport.rb +1 -0
- data/lib/sentry/transport/http_transport.rb +10 -16
- data/lib/sentry/transport.rb +4 -6
- data/lib/sentry/utils/encoding_helper.rb +6 -0
- data/lib/sentry/utils/logging_helper.rb +25 -9
- data/lib/sentry/utils/sample_rand.rb +97 -0
- data/lib/sentry/utils/telemetry_attributes.rb +30 -0
- data/lib/sentry/vernier/profiler.rb +4 -3
- data/lib/sentry/version.rb +1 -1
- data/lib/sentry-ruby.rb +57 -30
- data/sentry-ruby-core.gemspec +1 -1
- data/sentry-ruby.gemspec +2 -1
- metadata +31 -17
- data/lib/sentry/metrics/aggregator.rb +0 -248
- data/lib/sentry/metrics/configuration.rb +0 -47
- data/lib/sentry/metrics/counter_metric.rb +0 -25
- data/lib/sentry/metrics/distribution_metric.rb +0 -25
- data/lib/sentry/metrics/gauge_metric.rb +0 -35
- data/lib/sentry/metrics/local_aggregator.rb +0 -53
- data/lib/sentry/metrics/metric.rb +0 -19
- data/lib/sentry/metrics/set_metric.rb +0 -28
- data/lib/sentry/metrics/timing.rb +0 -51
|
@@ -3,27 +3,43 @@
|
|
|
3
3
|
module Sentry
|
|
4
4
|
# @private
|
|
5
5
|
module LoggingHelper
|
|
6
|
-
# @!visibility private
|
|
7
|
-
attr_reader :sdk_logger
|
|
8
|
-
|
|
9
6
|
# @!visibility private
|
|
10
7
|
def log_error(message, exception, debug: false)
|
|
11
8
|
message = "#{message}: #{exception.message}"
|
|
12
|
-
message += "\n#{exception.backtrace.join("\n")}" if debug
|
|
9
|
+
message += "\n#{exception.backtrace.join("\n")}" if debug && exception.backtrace
|
|
13
10
|
|
|
14
|
-
sdk_logger
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
sdk_logger&.error(LOGGER_PROGNAME) { message }
|
|
12
|
+
rescue StandardError => e
|
|
13
|
+
log_to_stderr(e, message)
|
|
17
14
|
end
|
|
18
15
|
|
|
19
16
|
# @!visibility private
|
|
20
17
|
def log_debug(message)
|
|
21
|
-
sdk_logger
|
|
18
|
+
sdk_logger&.debug(LOGGER_PROGNAME) { message }
|
|
19
|
+
rescue StandardError => e
|
|
20
|
+
log_to_stderr(e, message)
|
|
22
21
|
end
|
|
23
22
|
|
|
24
23
|
# @!visibility private
|
|
25
24
|
def log_warn(message)
|
|
26
|
-
sdk_logger
|
|
25
|
+
sdk_logger&.warn(LOGGER_PROGNAME) { message }
|
|
26
|
+
rescue StandardError => e
|
|
27
|
+
log_to_stderr(e, message)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def sdk_logger
|
|
32
|
+
@sdk_logger ||= Sentry.sdk_logger
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# @!visibility private
|
|
36
|
+
def log_to_stderr(error, message)
|
|
37
|
+
error_msg = "Sentry SDK logging failed (#{error.class}: #{error.message}): #{message}".scrub(%q(<?>))
|
|
38
|
+
error_msg += "\n#{error.backtrace.map { |line| line.scrub(%q(<?>)) }.join("\n")}" if error.backtrace
|
|
39
|
+
|
|
40
|
+
$stderr.puts(error_msg)
|
|
41
|
+
rescue StandardError
|
|
42
|
+
# swallow everything – logging must never crash the app
|
|
27
43
|
end
|
|
28
44
|
end
|
|
29
45
|
end
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentry
|
|
4
|
+
module Utils
|
|
5
|
+
class SampleRand
|
|
6
|
+
PRECISION = 1_000_000.0
|
|
7
|
+
FORMAT_PRECISION = 6
|
|
8
|
+
|
|
9
|
+
attr_reader :trace_id
|
|
10
|
+
|
|
11
|
+
def self.valid?(value)
|
|
12
|
+
return false unless value
|
|
13
|
+
value >= 0.0 && value < 1.0
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.format(value)
|
|
17
|
+
return unless value
|
|
18
|
+
|
|
19
|
+
truncated = (value * PRECISION).floor / PRECISION
|
|
20
|
+
"%.#{FORMAT_PRECISION}f" % truncated
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def initialize(trace_id: nil)
|
|
24
|
+
@trace_id = trace_id
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def generate_from_trace_id
|
|
28
|
+
(random_from_trace_id * PRECISION).floor / PRECISION
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def generate_from_sampling_decision(sampled, sample_rate)
|
|
32
|
+
if invalid_sample_rate?(sample_rate)
|
|
33
|
+
fallback_generation
|
|
34
|
+
else
|
|
35
|
+
generate_based_on_sampling(sampled, sample_rate)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def generate_from_value(sample_rand_value)
|
|
40
|
+
parsed_value = parse_value(sample_rand_value)
|
|
41
|
+
|
|
42
|
+
if self.class.valid?(parsed_value)
|
|
43
|
+
parsed_value
|
|
44
|
+
else
|
|
45
|
+
fallback_generation
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
private
|
|
50
|
+
|
|
51
|
+
def random_from_trace_id
|
|
52
|
+
if @trace_id
|
|
53
|
+
Random.new(@trace_id[0, 16].to_i(16))
|
|
54
|
+
else
|
|
55
|
+
Random.new
|
|
56
|
+
end.rand(1.0)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def invalid_sample_rate?(sample_rate)
|
|
60
|
+
sample_rate.nil? || sample_rate <= 0.0 || sample_rate > 1.0
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def fallback_generation
|
|
64
|
+
if @trace_id
|
|
65
|
+
(random_from_trace_id * PRECISION).floor / PRECISION
|
|
66
|
+
else
|
|
67
|
+
format_random(Random.rand(1.0))
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def generate_based_on_sampling(sampled, sample_rate)
|
|
72
|
+
random = random_from_trace_id
|
|
73
|
+
|
|
74
|
+
result = if sampled
|
|
75
|
+
random * sample_rate
|
|
76
|
+
elsif sample_rate == 1.0
|
|
77
|
+
random
|
|
78
|
+
else
|
|
79
|
+
sample_rate + random * (1.0 - sample_rate)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
format_random(result)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def format_random(value)
|
|
86
|
+
truncated = (value * PRECISION).floor / PRECISION
|
|
87
|
+
("%.#{FORMAT_PRECISION}f" % truncated).to_f
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def parse_value(sample_rand_value)
|
|
91
|
+
Float(sample_rand_value)
|
|
92
|
+
rescue ArgumentError
|
|
93
|
+
nil
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Sentry
|
|
6
|
+
module Utils
|
|
7
|
+
module TelemetryAttributes
|
|
8
|
+
private
|
|
9
|
+
|
|
10
|
+
def attribute_hash(value)
|
|
11
|
+
case value
|
|
12
|
+
when String
|
|
13
|
+
{ value: value, type: "string" }
|
|
14
|
+
when TrueClass, FalseClass
|
|
15
|
+
{ value: value, type: "boolean" }
|
|
16
|
+
when Integer
|
|
17
|
+
{ value: value, type: "integer" }
|
|
18
|
+
when Float
|
|
19
|
+
{ value: value, type: "double" }
|
|
20
|
+
else
|
|
21
|
+
begin
|
|
22
|
+
{ value: JSON.generate(value), type: "string" }
|
|
23
|
+
rescue
|
|
24
|
+
{ value: value, type: "string" }
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -20,6 +20,7 @@ module Sentry
|
|
|
20
20
|
|
|
21
21
|
@profiling_enabled = defined?(Vernier) && configuration.profiling_enabled?
|
|
22
22
|
@profiles_sample_rate = configuration.profiles_sample_rate
|
|
23
|
+
@profiles_sample_interval = configuration.profiles_sample_interval
|
|
23
24
|
@project_root = configuration.project_root
|
|
24
25
|
@app_dirs_pattern = configuration.app_dirs_pattern
|
|
25
26
|
@in_app_pattern = Regexp.new("^(#{@project_root}/)?#{@app_dirs_pattern}")
|
|
@@ -56,7 +57,7 @@ module Sentry
|
|
|
56
57
|
return unless @sampled
|
|
57
58
|
return if @started
|
|
58
59
|
|
|
59
|
-
@started = ::Vernier.start_profile
|
|
60
|
+
@started = ::Vernier.start_profile(interval: @profiles_sample_interval)
|
|
60
61
|
|
|
61
62
|
log("Started")
|
|
62
63
|
|
|
@@ -90,9 +91,9 @@ module Sentry
|
|
|
90
91
|
Thread.current.object_id
|
|
91
92
|
end
|
|
92
93
|
|
|
93
|
-
def
|
|
94
|
+
def to_h
|
|
94
95
|
unless @sampled
|
|
95
|
-
record_lost_event(:sample_rate)
|
|
96
|
+
record_lost_event(:sample_rate) if @profiling_enabled
|
|
96
97
|
return EMPTY_RESULT
|
|
97
98
|
end
|
|
98
99
|
|
data/lib/sentry/version.rb
CHANGED
data/lib/sentry-ruby.rb
CHANGED
|
@@ -10,8 +10,10 @@ require "sentry/core_ext/object/deep_dup"
|
|
|
10
10
|
require "sentry/utils/argument_checking_helper"
|
|
11
11
|
require "sentry/utils/encoding_helper"
|
|
12
12
|
require "sentry/utils/logging_helper"
|
|
13
|
+
require "sentry/utils/sample_rand"
|
|
13
14
|
require "sentry/configuration"
|
|
14
15
|
require "sentry/structured_logger"
|
|
16
|
+
require "sentry/debug_structured_logger"
|
|
15
17
|
require "sentry/event"
|
|
16
18
|
require "sentry/error_event"
|
|
17
19
|
require "sentry/transaction_event"
|
|
@@ -24,8 +26,8 @@ require "sentry/threaded_periodic_worker"
|
|
|
24
26
|
require "sentry/session_flusher"
|
|
25
27
|
require "sentry/backpressure_monitor"
|
|
26
28
|
require "sentry/cron/monitor_check_ins"
|
|
27
|
-
require "sentry/metrics"
|
|
28
29
|
require "sentry/vernier/profiler"
|
|
30
|
+
require "sentry/metrics"
|
|
29
31
|
|
|
30
32
|
[
|
|
31
33
|
"sentry/rake",
|
|
@@ -57,7 +59,6 @@ module Sentry
|
|
|
57
59
|
logger
|
|
58
60
|
session_flusher
|
|
59
61
|
backpressure_monitor
|
|
60
|
-
metrics_aggregator
|
|
61
62
|
exception_locals_tp
|
|
62
63
|
].freeze
|
|
63
64
|
|
|
@@ -91,10 +92,6 @@ module Sentry
|
|
|
91
92
|
# @return [BackpressureMonitor, nil]
|
|
92
93
|
attr_reader :backpressure_monitor
|
|
93
94
|
|
|
94
|
-
# @!attribute [r] metrics_aggregator
|
|
95
|
-
# @return [Metrics::Aggregator, nil]
|
|
96
|
-
attr_reader :metrics_aggregator
|
|
97
|
-
|
|
98
95
|
##### Patch Registration #####
|
|
99
96
|
|
|
100
97
|
# @!visibility private
|
|
@@ -237,8 +234,7 @@ module Sentry
|
|
|
237
234
|
# @yieldparam config [Configuration]
|
|
238
235
|
# @return [void]
|
|
239
236
|
def init(&block)
|
|
240
|
-
config = Configuration.new
|
|
241
|
-
yield(config) if block_given?
|
|
237
|
+
config = Configuration.new(&block)
|
|
242
238
|
|
|
243
239
|
config.detect_release
|
|
244
240
|
apply_patches(config)
|
|
@@ -251,7 +247,6 @@ module Sentry
|
|
|
251
247
|
@background_worker = Sentry::BackgroundWorker.new(config)
|
|
252
248
|
@session_flusher = config.session_tracking? ? Sentry::SessionFlusher.new(config, client) : nil
|
|
253
249
|
@backpressure_monitor = config.enable_backpressure_handling ? Sentry::BackpressureMonitor.new(config, client) : nil
|
|
254
|
-
@metrics_aggregator = config.metrics.enabled ? Sentry::Metrics::Aggregator.new(config, client) : nil
|
|
255
250
|
exception_locals_tp.enable if config.include_local_variables
|
|
256
251
|
at_exit { close }
|
|
257
252
|
end
|
|
@@ -272,12 +267,6 @@ module Sentry
|
|
|
272
267
|
@backpressure_monitor = nil
|
|
273
268
|
end
|
|
274
269
|
|
|
275
|
-
if @metrics_aggregator
|
|
276
|
-
@metrics_aggregator.flush(force: true)
|
|
277
|
-
@metrics_aggregator.kill
|
|
278
|
-
@metrics_aggregator = nil
|
|
279
|
-
end
|
|
280
|
-
|
|
281
270
|
if client = get_current_client
|
|
282
271
|
client.flush
|
|
283
272
|
|
|
@@ -498,6 +487,7 @@ module Sentry
|
|
|
498
487
|
# @param [Hash] options Extra log event options
|
|
499
488
|
# @option options [Symbol] level The log level (:trace, :debug, :info, :warn, :error, :fatal)
|
|
500
489
|
# @option options [Integer] severity The severity number according to the Sentry Logs Protocol
|
|
490
|
+
# @option options [String] origin The origin of the log event (e.g., "auto.db.rails", "manual")
|
|
501
491
|
# @option options [Hash] Additional attributes to include with the log
|
|
502
492
|
#
|
|
503
493
|
# @example Direct usage (prefer using Sentry.logger instead)
|
|
@@ -633,22 +623,27 @@ module Sentry
|
|
|
633
623
|
#
|
|
634
624
|
# @see https://develop.sentry.dev/sdk/telemetry/logs/ Sentry SDK Telemetry Logs Protocol
|
|
635
625
|
#
|
|
636
|
-
# @return [StructuredLogger
|
|
626
|
+
# @return [StructuredLogger] The structured logger instance or nil if logs are disabled
|
|
637
627
|
def logger
|
|
638
|
-
@logger ||=
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
628
|
+
@logger ||= configuration.structured_logging.logger_class.new(configuration)
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# Returns the metrics API for capturing custom metrics.
|
|
632
|
+
#
|
|
633
|
+
# @example Enable metrics
|
|
634
|
+
# Sentry.init do |config|
|
|
635
|
+
# config.dsn = "YOUR_DSN"
|
|
636
|
+
# config.enable_metrics = true
|
|
637
|
+
# end
|
|
638
|
+
#
|
|
639
|
+
# @example Usage
|
|
640
|
+
# Sentry.metrics.count("button.click", 1, attributes: { button_id: "submit" })
|
|
641
|
+
# Sentry.metrics.distribution("response.time", 120.5, unit: "millisecond")
|
|
642
|
+
# Sentry.metrics.gauge("cpu.usage", 75.2, unit: "percent")
|
|
643
|
+
#
|
|
644
|
+
# @return [Metrics] The metrics API
|
|
645
|
+
def metrics
|
|
646
|
+
Metrics
|
|
652
647
|
end
|
|
653
648
|
|
|
654
649
|
##### Helpers #####
|
|
@@ -671,6 +666,38 @@ module Sentry
|
|
|
671
666
|
META
|
|
672
667
|
end
|
|
673
668
|
|
|
669
|
+
# Registers a callback function that retrieves the current external propagation context.
|
|
670
|
+
# This is used by OpenTelemetry integration to provide trace_id and span_id from OTel context.
|
|
671
|
+
#
|
|
672
|
+
# @param callback [Proc, nil] A callable that returns [trace_id, span_id] or nil
|
|
673
|
+
# @return [void]
|
|
674
|
+
#
|
|
675
|
+
# @example
|
|
676
|
+
# Sentry.register_external_propagation_context do
|
|
677
|
+
# span_context = OpenTelemetry::Trace.current_span.context
|
|
678
|
+
# return nil unless span_context.valid?
|
|
679
|
+
# [span_context.hex_trace_id, span_context.hex_span_id]
|
|
680
|
+
# end
|
|
681
|
+
def register_external_propagation_context(&callback)
|
|
682
|
+
@external_propagation_context_callback = callback
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# Returns the external propagation context (trace_id, span_id) if a callback is registered.
|
|
686
|
+
#
|
|
687
|
+
# @return [Array<String>, nil] A tuple of [trace_id, span_id] or nil if no context is available
|
|
688
|
+
def get_external_propagation_context
|
|
689
|
+
return nil unless @external_propagation_context_callback
|
|
690
|
+
|
|
691
|
+
@external_propagation_context_callback.call
|
|
692
|
+
rescue => e
|
|
693
|
+
sdk_logger&.debug(LOGGER_PROGNAME) { "Error getting external propagation context: #{e.message}" } if initialized?
|
|
694
|
+
nil
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
def clear_external_propagation_context
|
|
698
|
+
@external_propagation_context_callback = nil
|
|
699
|
+
end
|
|
700
|
+
|
|
674
701
|
# @!visibility private
|
|
675
702
|
def utc_now
|
|
676
703
|
Time.now.utc
|
data/sentry-ruby-core.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.homepage = "https://github.com/getsentry/sentry-ruby"
|
|
13
13
|
|
|
14
14
|
spec.platform = Gem::Platform::RUBY
|
|
15
|
-
spec.required_ruby_version = '>= 2.
|
|
15
|
+
spec.required_ruby_version = '>= 2.7'
|
|
16
16
|
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
|
|
17
17
|
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
|
|
18
18
|
|
data/sentry-ruby.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.license = 'MIT'
|
|
12
12
|
|
|
13
13
|
spec.platform = Gem::Platform::RUBY
|
|
14
|
-
spec.required_ruby_version = '>= 2.
|
|
14
|
+
spec.required_ruby_version = '>= 2.7'
|
|
15
15
|
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
|
|
16
16
|
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
|
|
17
17
|
|
|
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
|
|
31
31
|
spec.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.2"
|
|
32
32
|
spec.add_dependency "bigdecimal"
|
|
33
|
+
spec.add_dependency "logger"
|
|
33
34
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentry-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
@@ -43,6 +43,20 @@ dependencies:
|
|
|
43
43
|
- - ">="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: logger
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0'
|
|
53
|
+
type: :runtime
|
|
54
|
+
prerelease: false
|
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
46
60
|
description: A gem that provides a client interface for the Sentry error logger
|
|
47
61
|
email: accounts@sentry.io
|
|
48
62
|
executables: []
|
|
@@ -67,6 +81,7 @@ files:
|
|
|
67
81
|
- lib/sentry/background_worker.rb
|
|
68
82
|
- lib/sentry/backpressure_monitor.rb
|
|
69
83
|
- lib/sentry/backtrace.rb
|
|
84
|
+
- lib/sentry/backtrace/line.rb
|
|
70
85
|
- lib/sentry/baggage.rb
|
|
71
86
|
- lib/sentry/breadcrumb.rb
|
|
72
87
|
- lib/sentry/breadcrumb/sentry_logger.rb
|
|
@@ -80,6 +95,7 @@ files:
|
|
|
80
95
|
- lib/sentry/cron/monitor_check_ins.rb
|
|
81
96
|
- lib/sentry/cron/monitor_config.rb
|
|
82
97
|
- lib/sentry/cron/monitor_schedule.rb
|
|
98
|
+
- lib/sentry/debug_structured_logger.rb
|
|
83
99
|
- lib/sentry/dsn.rb
|
|
84
100
|
- lib/sentry/envelope.rb
|
|
85
101
|
- lib/sentry/envelope/item.rb
|
|
@@ -104,16 +120,9 @@ files:
|
|
|
104
120
|
- lib/sentry/log_event.rb
|
|
105
121
|
- lib/sentry/log_event_buffer.rb
|
|
106
122
|
- lib/sentry/logger.rb
|
|
123
|
+
- lib/sentry/metric_event.rb
|
|
124
|
+
- lib/sentry/metric_event_buffer.rb
|
|
107
125
|
- lib/sentry/metrics.rb
|
|
108
|
-
- lib/sentry/metrics/aggregator.rb
|
|
109
|
-
- lib/sentry/metrics/configuration.rb
|
|
110
|
-
- lib/sentry/metrics/counter_metric.rb
|
|
111
|
-
- lib/sentry/metrics/distribution_metric.rb
|
|
112
|
-
- lib/sentry/metrics/gauge_metric.rb
|
|
113
|
-
- lib/sentry/metrics/local_aggregator.rb
|
|
114
|
-
- lib/sentry/metrics/metric.rb
|
|
115
|
-
- lib/sentry/metrics/set_metric.rb
|
|
116
|
-
- lib/sentry/metrics/timing.rb
|
|
117
126
|
- lib/sentry/net/http.rb
|
|
118
127
|
- lib/sentry/profiler.rb
|
|
119
128
|
- lib/sentry/profiler/helpers.rb
|
|
@@ -126,17 +135,20 @@ files:
|
|
|
126
135
|
- lib/sentry/release_detector.rb
|
|
127
136
|
- lib/sentry/rspec.rb
|
|
128
137
|
- lib/sentry/scope.rb
|
|
138
|
+
- lib/sentry/sequel.rb
|
|
129
139
|
- lib/sentry/session.rb
|
|
130
140
|
- lib/sentry/session_flusher.rb
|
|
131
141
|
- lib/sentry/span.rb
|
|
132
142
|
- lib/sentry/std_lib_logger.rb
|
|
133
143
|
- lib/sentry/structured_logger.rb
|
|
144
|
+
- lib/sentry/telemetry_event_buffer.rb
|
|
134
145
|
- lib/sentry/test_helper.rb
|
|
135
146
|
- lib/sentry/threaded_periodic_worker.rb
|
|
136
147
|
- lib/sentry/transaction.rb
|
|
137
148
|
- lib/sentry/transaction_event.rb
|
|
138
149
|
- lib/sentry/transport.rb
|
|
139
150
|
- lib/sentry/transport/configuration.rb
|
|
151
|
+
- lib/sentry/transport/debug_transport.rb
|
|
140
152
|
- lib/sentry/transport/dummy_transport.rb
|
|
141
153
|
- lib/sentry/transport/http_transport.rb
|
|
142
154
|
- lib/sentry/transport/spotlight_transport.rb
|
|
@@ -149,21 +161,23 @@ files:
|
|
|
149
161
|
- lib/sentry/utils/logging_helper.rb
|
|
150
162
|
- lib/sentry/utils/real_ip.rb
|
|
151
163
|
- lib/sentry/utils/request_id.rb
|
|
164
|
+
- lib/sentry/utils/sample_rand.rb
|
|
165
|
+
- lib/sentry/utils/telemetry_attributes.rb
|
|
152
166
|
- lib/sentry/utils/uuid.rb
|
|
153
167
|
- lib/sentry/vernier/output.rb
|
|
154
168
|
- lib/sentry/vernier/profiler.rb
|
|
155
169
|
- lib/sentry/version.rb
|
|
156
170
|
- sentry-ruby-core.gemspec
|
|
157
171
|
- sentry-ruby.gemspec
|
|
158
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/
|
|
172
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
|
|
159
173
|
licenses:
|
|
160
174
|
- MIT
|
|
161
175
|
metadata:
|
|
162
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/
|
|
163
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/
|
|
164
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/
|
|
176
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
|
|
177
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
|
|
178
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.4.0/CHANGELOG.md
|
|
165
179
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
|
166
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-ruby/
|
|
180
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-ruby/6.4.0
|
|
167
181
|
rdoc_options: []
|
|
168
182
|
require_paths:
|
|
169
183
|
- lib
|
|
@@ -171,14 +185,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
171
185
|
requirements:
|
|
172
186
|
- - ">="
|
|
173
187
|
- !ruby/object:Gem::Version
|
|
174
|
-
version: '2.
|
|
188
|
+
version: '2.7'
|
|
175
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
190
|
requirements:
|
|
177
191
|
- - ">="
|
|
178
192
|
- !ruby/object:Gem::Version
|
|
179
193
|
version: '0'
|
|
180
194
|
requirements: []
|
|
181
|
-
rubygems_version: 3.6.
|
|
195
|
+
rubygems_version: 3.6.9
|
|
182
196
|
specification_version: 4
|
|
183
197
|
summary: A gem that provides a client interface for the Sentry error logger
|
|
184
198
|
test_files: []
|