Class: Realuptime::Errors::State
- Inherits:
-
Object
- Object
- Realuptime::Errors::State
- Defined in:
- lib/realuptime/errors.rb
Overview
Everything init() keeps. Breadcrumbs and the v2 sticky scope are bounded at WRITE time so a long-lived process cannot grow them without limit; the eviction count rides every event as breadcrumbsDropped.
Instance Attribute Summary collapse
-
#allow_fields ⇒ Object
readonly
Returns the value of attribute allow_fields.
-
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
-
#breadcrumbs_evicted ⇒ Object
Returns the value of attribute breadcrumbs_evicted.
-
#context ⇒ Object
Returns the value of attribute context.
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#dsn ⇒ Object
readonly
Returns the value of attribute dsn.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#lock ⇒ Object
readonly
Returns the value of attribute lock.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(dsn:, release:, environment:, allow_fields:, transport:, device:) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(dsn:, release:, environment:, allow_fields:, transport:, device:) ⇒ State
Returns a new instance of State.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/realuptime/errors.rb', line 68 def initialize(dsn:, release:, environment:, allow_fields:, transport:, device:) @dsn = dsn @release = release @environment = environment @allow_fields = allow_fields @transport = transport @device = device @lock = Mutex.new @breadcrumbs = [] @breadcrumbs_evicted = 0 @user = nil @tags = {} @context = {} end |
Instance Attribute Details
#allow_fields ⇒ Object (readonly)
Returns the value of attribute allow_fields.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def allow_fields @allow_fields end |
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
66 67 68 |
# File 'lib/realuptime/errors.rb', line 66 def @breadcrumbs end |
#breadcrumbs_evicted ⇒ Object
Returns the value of attribute breadcrumbs_evicted.
66 67 68 |
# File 'lib/realuptime/errors.rb', line 66 def @breadcrumbs_evicted end |
#context ⇒ Object
Returns the value of attribute context.
66 67 68 |
# File 'lib/realuptime/errors.rb', line 66 def context @context end |
#device ⇒ Object (readonly)
Returns the value of attribute device.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def device @device end |
#dsn ⇒ Object (readonly)
Returns the value of attribute dsn.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def dsn @dsn end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def environment @environment end |
#lock ⇒ Object (readonly)
Returns the value of attribute lock.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def lock @lock end |
#release ⇒ Object (readonly)
Returns the value of attribute release.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def release @release end |
#tags ⇒ Object
Returns the value of attribute tags.
66 67 68 |
# File 'lib/realuptime/errors.rb', line 66 def @tags end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
65 66 67 |
# File 'lib/realuptime/errors.rb', line 65 def transport @transport end |
#user ⇒ Object
Returns the value of attribute user.
66 67 68 |
# File 'lib/realuptime/errors.rb', line 66 def user @user end |