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