Class: ElasticAPM::Span::Context::Message Private

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_apm/span/context/message.rb

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queue_name: nil, age_ms: nil) ⇒ Message

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.

Returns a new instance of Message.



25
26
27
28
29
30
31
# File 'lib/elastic_apm/span/context/message.rb', line 25

def initialize(
  queue_name: nil,
  age_ms: nil
)
  @queue_name = queue_name
  @age_ms = age_ms
end

Instance Attribute Details

#age_msObject (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.



33
34
35
# File 'lib/elastic_apm/span/context/message.rb', line 33

def age_ms
  @age_ms
end

#queue_nameObject (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.



33
34
35
# File 'lib/elastic_apm/span/context/message.rb', line 33

def queue_name
  @queue_name
end