Skip to content

Commit 2a9245d

Browse files
committed
Try to debug this shit
1 parent cc8a4af commit 2a9245d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

sentry-ruby/lib/sentry/transaction_event.rb

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class TransactionEvent < Event
2020
# @return [Hash, nil]
2121
attr_accessor :profile
2222

23+
# TODO-neel remove
24+
attr_reader :profiler
25+
2326
def initialize(transaction:, **options)
2427
super(**options)
2528

@@ -36,6 +39,8 @@ def initialize(transaction:, **options)
3639
finished_spans = transaction.span_recorder.spans.select { |span| span.timestamp && span != transaction }
3740
self.spans = finished_spans.map(&:to_hash)
3841

42+
# TODO-neel remove
43+
@profiler = transaction.profiler
3944
populate_profile(transaction)
4045
end
4146

sentry-ruby/spec/sentry/rack/capture_exceptions_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,10 @@ def will_be_sampled_by_sdk
667667
stack.call(env)
668668
event = last_sentry_event
669669

670+
# TODO-neel debugging
671+
expect(defined?(StackProf)).to eq("constant")
672+
puts("NEEL: " + event.profiler.inspect)
673+
670674
profile = event.profile
671675
expect(profile).not_to be_nil
672676

0 commit comments

Comments
 (0)