Method: Datadog::Pin#initialize

Defined in:
lib/ddtrace/pin.rb

#initialize(service_name, options = {}) ⇒ Pin

Returns a new instance of Pin.



23
24
25
26
27
28
29
30
31
# File 'lib/ddtrace/pin.rb', line 23

def initialize(service_name, options = {})
  @app = options[:app]
  @tags = options[:tags]
  @app_type = options[:app_type]
  @name = nil # this would rarely be overriden as it's really span-specific
  @tracer = options[:tracer] || Datadog.tracer
  @config = options[:config]
  self.service_name = service_name
end