Method: Sentry::Session#initialize
- Defined in:
- lib/sentry/session.rb
#initialize ⇒ Session
Returns a new instance of Session.
11 12 13 14 15 16 17 18 |
# File 'lib/sentry/session.rb', line 11 def initialize @started = Sentry.utc_now @status = :ok # truncate seconds from the timestamp since we only care about # minute level granularity for aggregation @aggregation_key = Time.utc(@started.year, @started.month, @started.day, @started.hour, @started.min) end |