Module: Datadog::Tracing::Transport::HTTP::Traces::API::Spec
- Included in:
- API::Spec
- Defined in:
- lib/datadog/tracing/transport/http/traces.rb
Overview
Extensions for HTTP API Spec
Defined Under Namespace
Classes: NoTraceEndpointDefinedError
Instance Attribute Summary collapse
-
#traces ⇒ Object
Returns the value of attribute traces.
Instance Method Summary collapse
Instance Attribute Details
#traces ⇒ Object
Returns the value of attribute traces.
41 42 43 |
# File 'lib/datadog/tracing/transport/http/traces.rb', line 41 def traces @traces end |
Instance Method Details
#encoder ⇒ Object
53 54 55 |
# File 'lib/datadog/tracing/transport/http/traces.rb', line 53 def encoder traces.encoder end |
#send_traces(env, &block) ⇒ Object
47 48 49 50 51 |
# File 'lib/datadog/tracing/transport/http/traces.rb', line 47 def send_traces(env, &block) raise NoTraceEndpointDefinedError, self if traces.nil? traces.call(env, &block) end |