Class: Datadog::Contrib::Aws::Handler
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Datadog::Contrib::Aws::Handler
- Defined in:
- lib/ddtrace/contrib/aws/instrumentation.rb
Overview
Generates Spans for all interactions with AWS
Instance Method Summary collapse
Instance Method Details
#call(context) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/ddtrace/contrib/aws/instrumentation.rb', line 16 def call(context) tracer.trace(Ext::SPAN_COMMAND) do |span| @handler.call(context).tap do annotate!(span, ParsedContext.new(context)) end end end |