Interface Config


  • public interface Config
    Provides access to agent configuration settings. The key names are flattened representations of values in the configuration file. Example keys:
    transaction_tracer.enabled
    instrumentation.hibernate.stat_sampler.enabled
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T getValue​(java.lang.String key)
      Get the value of a setting.
      <T> T getValue​(java.lang.String key, T defaultVal)
      Get the value of a setting, returning the default if the value is not present.
    • Method Detail

      • getValue

        <T> T getValue​(java.lang.String key)
        Get the value of a setting.
        Type Parameters:
        T - This is the type parameter
        Parameters:
        key - The flattened configuration setting key.
        Returns:
        The value of the property or null if the value is absent.
        Since:
        3.9.0
      • getValue

        <T> T getValue​(java.lang.String key,
                       T defaultVal)
        Get the value of a setting, returning the default if the value is not present.
        Type Parameters:
        T - This is the type parameter
        Parameters:
        key - The flattened configuration setting key.
        defaultVal - The default value to return if the given key is not present.
        Returns:
        The value of the property or defaultVal if the value is absent.
        Since:
        3.9.0