Module: Datadog::Transport::HTTP::Traces::API::Spec

Defined in:
lib/ddtrace/transport/http/traces.rb

Overview

Extensions for HTTP API Spec

Defined Under Namespace

Classes: NoTraceEndpointDefinedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tracesObject

Returns the value of attribute traces.



37
38
39
# File 'lib/ddtrace/transport/http/traces.rb', line 37

def traces
  @traces
end

Instance Method Details

#send_traces(env, &block) ⇒ Object



43
44
45
46
# File 'lib/ddtrace/transport/http/traces.rb', line 43

def send_traces(env, &block)
  raise NoTraceEndpointDefinedError, self if traces.nil?
  traces.call(env, &block)
end