-
- All Implemented Interfaces:
public class LambdaContextExtensible Lambda Context
Comes with a LocalEnv => Ssm EnvLoader by default
-
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>loggerprivate final <ERROR CLASS>tracerprivate final <ERROR CLASS>tracingFactoryprivate final <ERROR CLASS>loggingFactory
-
Constructor Summary
Constructors Constructor Description LambdaContext(Clock clock, LambdaEnvLoader envLoader)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getLogger()final <ERROR CLASS>getTracer()<ERROR CLASS>getTracingFactory()Lambda tracing factory, configured with Sentry and XRAY if SENTRY_DSNandXRAY_TRACING_ENABLEDis setup<ERROR CLASS>getLoggingFactory()Lambda logging factory, configured with Log4J2 and Sentry if SENTRY_DSNis present-
-
Constructor Detail
-
LambdaContext
LambdaContext(Clock clock, LambdaEnvLoader envLoader)
- Parameters:
envLoader- Overrides the default EnvLoader
-
-
Method Detail
-
getLogger
final <ERROR CLASS> getLogger()
-
getTracer
final <ERROR CLASS> getTracer()
-
getTracingFactory
<ERROR CLASS> getTracingFactory()
Lambda tracing factory, configured with Sentry and XRAY if
SENTRY_DSNandXRAY_TRACING_ENABLEDis setup
-
getLoggingFactory
<ERROR CLASS> getLoggingFactory()
Lambda logging factory, configured with Log4J2 and Sentry if
SENTRY_DSNis present
-
-
-
-