-
- All Implemented Interfaces:
-
ca.nexapp.lambdas.logging.LambdaLogger
public final class LambdaSentryLogger implements LambdaLogger
Sentry logger for the lambda lifecycle
Records breadcrumbs and extras akin to the Python integration Limitations : relies on the Log4J2 integration to actually send errors/warnings to Sentry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLambdaSentryLogger.Companion
-
Constructor Summary
Constructors Constructor Description LambdaSentryLogger()
-
Method Summary
Modifier and Type Method Description UnitrecordHandlerError(Exception error, Context awsRuntimeContext)UnitrecordResponse(Object response, Context awsRuntimeContext)UnitrecordRequest(Object request, Context awsRuntimeContext)-
-
Method Detail
-
recordHandlerError
Unit recordHandlerError(Exception error, Context awsRuntimeContext)
- Parameters:
error- caught error during lambda execution
-
recordResponse
Unit recordResponse(Object response, Context awsRuntimeContext)
- Parameters:
response- serializable lambda response
-
recordRequest
Unit recordRequest(Object request, Context awsRuntimeContext)
- Parameters:
request- serializable lambda request
-
-
-
-