Sha256: dc345bd2b6416bb969c20b180ea7a12db189c341c2d5bb617442923f30f60099

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

module Raven
  class Context
    def self.current
      Thread.current[:sentry_context] ||= new
    end
    
    def self.clear!
      Thread.current[:sentry_context] = nil
    end
    
    attr_reader :extra, :tags, :user
    
    def initialize
      @extra  = {}
      @tags   = {}
      @user   = {}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sentry-raven-0.4.6 lib/raven/context.rb
sentry-raven-0.4.5 lib/raven/context.rb