Sha256: c312874a6dca817d00f3cb36cddea5f7f08ba06006cc94f384de208461dd7766

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 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
    attr_accessor :rack_env
    
    def initialize
      @extra = {}
      @tags = {}
      @user = {}
      @rack_env = nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sentry-raven-0.6.1 lib/raven/context.rb
sentry-raven-0.6.0 lib/raven/context.rb
sentry-raven-0.5.0 lib/raven/context.rb
sentry-raven-0.4.8 lib/raven/context.rb
sentry-raven-0.4.7 lib/raven/context.rb