Module: Sentry::Lambda

Extended by:
Integrable
Defined in:
lib/sentry/lambda.rb,
lib/sentry/lambda/version.rb,
lib/sentry/lambda/null_context.rb,
lib/sentry/lambda/capture_exceptions.rb

Defined Under Namespace

Classes: CaptureExceptions, NullContext

Constant Summary collapse

VERSION =
'0.2.1'

Class Method Summary collapse

Class Method Details

.wrap_handler(event:, context: NullContext.new, capture_timeout_warning: false) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/sentry/lambda.rb', line 11

def self.wrap_handler(event:, context: NullContext.new, capture_timeout_warning: false)
  CaptureExceptions.new(
    aws_event: event,
    aws_context: context || NullContext.new,
    capture_timeout_warning: capture_timeout_warning
  ).call do
    yield
  end
end