Class: Datadog::Span::ResourceContainer

Inherits:
Struct
  • Object
show all
Defined in:
lib/ddtrace/span.rb

Overview

Simple indirection used to contain the latest resource name for a span. The profiler keeps a reference to these objects while sampling so it can extract the latest resource after the fact, as some integrations only set the correct name at the end of the span.

Instance Attribute Summary collapse

Instance Attribute Details

#latestObject

Returns the value of attribute latest

Returns:

  • (Object)

    the current value of latest



59
60
61
# File 'lib/ddtrace/span.rb', line 59

def latest
  @latest
end