Sha256: 316dd138395c363ed6836a50b81f55c0d11fe43be1c942b25438c1b05f57f433

Contents?: true

Size: 355 Bytes

Versions: 36

Compression:

Stored size: 355 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
    attr_accessor :rack_env, :user

    def initialize
      @extra = {}
      @tags = {}
      @user = {}
      @rack_env = nil
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
sentry-raven-2.0.2 lib/raven/context.rb
sentry-raven-2.0.1 lib/raven/context.rb
sentry-raven-2.0.0 lib/raven/context.rb
sentry-raven-1.2.3 lib/raven/context.rb
sentry-raven-1.2.2 lib/raven/context.rb
sentry-raven-1.2.1 lib/raven/context.rb
sentry-raven-1.2.0 lib/raven/context.rb
sentry-raven-1.1.0 lib/raven/context.rb
sentry-raven-1.0.0 lib/raven/context.rb
sentry-raven-0.15.6 lib/raven/context.rb
sentry-raven-0.15.5 lib/raven/context.rb
sentry-raven-0.15.4 lib/raven/context.rb
sentry-raven-0.15.3 lib/raven/context.rb
sentry-raven-0.15.2 lib/raven/context.rb
sentry-raven-0.15.1 lib/raven/context.rb
sentry-raven-0.15.0 lib/raven/context.rb
sentry-raven-0.14.0 lib/raven/context.rb
sentry-raven-0.13.3 lib/raven/context.rb
sentry-raven-0.13.2 lib/raven/context.rb
sentry-raven-0.13.1 lib/raven/context.rb