Class DefaultEnvironment

    • Constructor Detail

      • DefaultEnvironment

        public DefaultEnvironment​(Configuration config)
    • Method Detail

      • probe

        public boolean probe()
        Description copied from interface: Environment
        Determines whether or not we are executing in this environment.
        Returns:
        true if it is running in this environment, otherwise, false
      • getType

        public java.lang.String getType()
        Description copied from interface: Environment
        Get the environment type. This will be used to set the ServiceType dimension.
        Returns:
        the type of the environment
      • configureContext

        public void configureContext​(MetricsContext context)
        Parameters:
        context - the context to configure with environment properties