Class: Datadog::OpenTracer::Scope

Inherits:
OpenTracing::Scope
  • Object
show all
Defined in:
lib/datadog/opentracer/scope.rb

Overview

OpenTracing adapter for scope

Direct Known Subclasses

ThreadLocalScope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manager:, span:) ⇒ Scope

Returns a new instance of Scope.



12
13
14
15
# File 'lib/datadog/opentracer/scope.rb', line 12

def initialize(manager:, span:)
  @manager = manager
  @span = span
end

Instance Attribute Details

#managerObject (readonly)

Returns the value of attribute manager.



8
9
10
# File 'lib/datadog/opentracer/scope.rb', line 8

def manager
  @manager
end

#spanObject (readonly)

Returns the value of attribute span.



8
9
10
# File 'lib/datadog/opentracer/scope.rb', line 8

def span
  @span
end