Class: Datadog::DI::CorrelationSampler::TraceBudgetLedger::Entry Private
- Inherits:
-
Object
- Object
- Datadog::DI::CorrelationSampler::TraceBudgetLedger::Entry
- Defined in:
- lib/datadog/di/correlation_sampler/trace_budget_ledger/entry.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Retained budget and the weak reference to its trace.
Instance Attribute Summary collapse
-
#budget ⇒ TraceBudget
readonly
private
The trace's budget.
-
#trace_ref ⇒ WeakRef
readonly
private
Weak reference to the trace the budget belongs to.
Instance Method Summary collapse
-
#initialize(trace_ref:, budget:) ⇒ void
constructor
private
Initializes the entry.
Constructor Details
#initialize(trace_ref:, budget:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the entry.
26 27 28 29 |
# File 'lib/datadog/di/correlation_sampler/trace_budget_ledger/entry.rb', line 26 def initialize(trace_ref:, budget:) @trace_ref = trace_ref @budget = budget end |
Instance Attribute Details
#budget ⇒ TraceBudget (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The trace's budget.
19 20 21 |
# File 'lib/datadog/di/correlation_sampler/trace_budget_ledger/entry.rb', line 19 def budget @budget end |
#trace_ref ⇒ WeakRef (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Weak reference to the trace the budget belongs to.
14 15 16 |
# File 'lib/datadog/di/correlation_sampler/trace_budget_ledger/entry.rb', line 14 def trace_ref @trace_ref end |