Class: OpenTelemetry::DistributedContext::Entry::Metadata
- Inherits:
-
Object
- Object
- OpenTelemetry::DistributedContext::Entry::Metadata
- Defined in:
- lib/opentelemetry/distributed_context/entry.rb
Overview
Entry::Metadata contains properties associated with an Entry. For now only the property entry_ttl is defined. In future, additional properties may be added to address specific situations.
The creator of entries determines metadata of an entry it creates.
Constant Summary collapse
- NO_PROPAGATION =
An @see Entry with NO_PROPAGATION is considered to have local scope and is used within the process where it is created.
0- UNLIMITED_PROPAGATION =
An @see Entry with UNLIMITED_PROPAGATION can propagate unlimited hops. However, it is still subject to outgoing and incoming (on remote side) filter criteria.
-1
Instance Attribute Summary collapse
-
#entry_ttl ⇒ Object
readonly
Returns the value of attribute entry_ttl.
Instance Method Summary collapse
-
#initialize(entry_ttl) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(entry_ttl) ⇒ Metadata
Returns a new instance of Metadata.
58 59 60 61 62 |
# File 'lib/opentelemetry/distributed_context/entry.rb', line 58 def initialize(entry_ttl) raise ArgumentError unless entry_ttl.is_a?(Integer) @entry_ttl = entry_ttl end |
Instance Attribute Details
#entry_ttl ⇒ Object (readonly)
Returns the value of attribute entry_ttl.
48 49 50 |
# File 'lib/opentelemetry/distributed_context/entry.rb', line 48 def entry_ttl @entry_ttl end |