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-0.13.0 lib/raven/context.rb
sentry-raven-0.12.3 lib/raven/context.rb
sentry-raven-0.12.2 lib/raven/context.rb
sentry-raven-0.12.1 lib/raven/context.rb
sentry-raven-0.12.0 lib/raven/context.rb
mustwin-sentry-raven-0.11.2 lib/raven/context.rb
sentry-raven-0.11.2 lib/raven/context.rb
sentry-raven-0.11.1 lib/raven/context.rb
sentry-raven-0.10.1 lib/raven/context.rb
sentry-raven-0.9.4 lib/raven/context.rb
sentry-raven-0.9.3 lib/raven/context.rb
sentry-raven-0.9.2 lib/raven/context.rb
sentry-raven-0.9.1 lib/raven/context.rb
sentry-raven-0.9.0 lib/raven/context.rb
sentry-raven-0.8.0 lib/raven/context.rb
sentry-raven-0.7.1 lib/raven/context.rb