Module: Skylight::Probes::Lambda::Handler::Instrumentation Private

Includes:
Common
Defined in:
lib/skylight/probes/lambda.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#call_handler(request:) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



52
53
54
55
56
57
58
59
60
# File 'lib/skylight/probes/lambda.rb', line 52

def call_handler(request:, **)
  if Skylight.trace
    Skylight.instrument(sk_instrument_opts(request)) { super }
  else
    Skylight.trace(sk_lambda_function_name, "other", "lambda handler") do
      Skylight.instrument(sk_instrument_opts(request)) { super }
    end
  end
end