Class ECSEnvironment

    • Constructor Detail

      • ECSEnvironment

        public ECSEnvironment​(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
      • getName

        public java.lang.String getName()
        Description copied from interface: Environment
        Get the environment name. This will be used to set the ServiceName dimension.
        Specified by:
        getName in interface Environment
        Overrides:
        getName in class AgentBasedEnvironment
        Returns:
        the name of the environment
      • 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