class Sentry::Transaction::SpanRecorder
Attributes
max_length[R]
spans[R]
Public Class Methods
new(max_length)
click to toggle source
# File lib/sentry/transaction.rb, line 157 def initialize(max_length) @max_length = max_length @spans = [] end
Public Instance Methods
add(span)
click to toggle source
# File lib/sentry/transaction.rb, line 162 def add(span) if @spans.count < @max_length @spans << span end end