Class MetaData


  • public class MetaData
    extends java.lang.Object
    • Method Detail

      • create

        public static java.util.concurrent.Future<MetaData> create​(org.stagemonitor.configuration.ConfigurationRegistry configurationRegistry,
                                                                   @Nullable
                                                                   java.lang.String ephemeralId)
        Creates a metadata to be used with all events sent by the agent.

        NOTE: This method is blocking, possibly for several seconds, on outgoing HTTP requests, fetching for cloud metadata, unless the cloud_provider config option is set to NONE.

        Parameters:
        configurationRegistry - agent config
        ephemeralId - unique ID generated once per agent bootstrap
        Returns:
        metadata about the current environment
      • getService

        public Service getService()
        Service (Required)
        Returns:
        the service name
      • getProcess

        public ProcessInfo getProcess()
        Process
        Returns:
        the process name
      • getSystem

        public SystemInfo getSystem()
        System
        Returns:
        the system name
      • getGlobalLabelKeys

        public java.util.ArrayList<java.lang.String> getGlobalLabelKeys()
      • getGlobalLabelValues

        public java.util.ArrayList<java.lang.String> getGlobalLabelValues()