public class HostResourceLabelProvider extends Object implements ResourceLabelProvider
host.hostname| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_HOSTNAME |
static String |
NAMESPACE |
| Constructor and Description |
|---|
HostResourceLabelProvider() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getLabels()
Get labels to be set on the
io.opencensus.proto.resource.v1.Resource. |
public static final String NAMESPACE
public static final String KEY_HOSTNAME
public Map<String,String> getLabels()
ResourceLabelProviderio.opencensus.proto.resource.v1.Resource. The labels should
be namespaced according to the conventions defined here.getLabels in interface ResourceLabelProvider