module Sentry::Lambda

Constants

VERSION

Public Class Methods

wrap_handler(event:, context: NullContext.new, capture_timeout_warning: false) { || ... } click to toggle source
# 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