Package 

Class LambdaContext

  • All Implemented Interfaces:

    
    public class LambdaContext
    
                        

    Extensible Lambda Context

    Comes with a LocalEnv => Ssm EnvLoader by default

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final <ERROR CLASS> logger
      private final <ERROR CLASS> tracer
      private final <ERROR CLASS> tracingFactory
      private final <ERROR CLASS> loggingFactory
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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_DSN and XRAY_TRACING_ENABLED is setup
      <ERROR CLASS> getLoggingFactory() Lambda logging factory, configured with Log4J2 and Sentry if SENTRY_DSN is present
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LambdaContext

        LambdaContext(Clock clock, LambdaEnvLoader envLoader)
        Parameters:
        envLoader - Overrides the default EnvLoader
    • Method Detail

      • getTracingFactory

         <ERROR CLASS> getTracingFactory()

        Lambda tracing factory, configured with Sentry and XRAY if SENTRY_DSN and XRAY_TRACING_ENABLED is setup

      • getLoggingFactory

         <ERROR CLASS> getLoggingFactory()

        Lambda logging factory, configured with Log4J2 and Sentry if SENTRY_DSN is present