Package co.elastic.apm.agent.impl
Class MetaData
- java.lang.Object
-
- co.elastic.apm.agent.impl.MetaData
-
public class MetaData extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.Future<MetaData>create(org.stagemonitor.configuration.ConfigurationRegistry configurationRegistry, java.lang.String ephemeralId)Creates a metadata to be used with all events sent by the agent.CloudProviderInfogetCloudProviderInfo()java.util.ArrayList<java.lang.String>getGlobalLabelKeys()java.util.ArrayList<java.lang.String>getGlobalLabelValues()ProcessInfogetProcess()ProcessServicegetService()Service (Required)SystemInfogetSystem()System
-
-
-
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_providerconfig option is set toNONE.- Parameters:
configurationRegistry- agent configephemeralId- 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()
-
getCloudProviderInfo
@Nullable public CloudProviderInfo getCloudProviderInfo()
-
-