Class: OpenTelemetry::DistributedContext::Entry::Metadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(entry_ttl) ⇒ Metadata

Returns a new instance of Metadata.

Raises:

  • (ArgumentError)


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_ttlObject (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