Class: Datadog::OpenTracer::Scope

Inherits:
OpenTracing::Scope
  • Object
show all
Defined in:
lib/ddtrace/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.



9
10
11
12
# File 'lib/ddtrace/opentracer/scope.rb', line 9

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

Instance Attribute Details

#managerObject (readonly)

Returns the value of attribute manager.



5
6
7
# File 'lib/ddtrace/opentracer/scope.rb', line 5

def manager
  @manager
end

#spanObject (readonly)

Returns the value of attribute span.



5
6
7
# File 'lib/ddtrace/opentracer/scope.rb', line 5

def span
  @span
end