Class ResourceAttributes


  • public final class ResourceAttributes
    extends Object
    Provides constants for resource semantic conventions defined by the OpenTelemetry specification.
    See Also:
    Resource Conventions
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.opentelemetry.api.common.AttributeKey<String> CLOUD_ACCOUNT
      The cloud account id used to identify different entities.
      static io.opentelemetry.api.common.AttributeKey<String> CLOUD_PROVIDER
      Name of the cloud provider.
      static io.opentelemetry.api.common.AttributeKey<String> CLOUD_REGION
      A specific geographical location where different entities can run.
      static io.opentelemetry.api.common.AttributeKey<String> CLOUD_ZONE
      Zones are a sub set of the region connected through low-latency links.
      static io.opentelemetry.api.common.AttributeKey<String> CONTAINER_ID
      Container id.
      static io.opentelemetry.api.common.AttributeKey<String> CONTAINER_IMAGE_NAME
      Name of the image the container was built on.
      static io.opentelemetry.api.common.AttributeKey<String> CONTAINER_IMAGE_TAG
      Container image tag.
      static io.opentelemetry.api.common.AttributeKey<String> CONTAINER_NAME
      Container name.
      static io.opentelemetry.api.common.AttributeKey<String> FAAS_ID
      The unique ID of the function being executed.
      static io.opentelemetry.api.common.AttributeKey<String> FAAS_INSTANCE
      The execution environment ID as a string.
      static io.opentelemetry.api.common.AttributeKey<String> FAAS_NAME
      The name of the function being executed.
      static io.opentelemetry.api.common.AttributeKey<String> FAAS_VERSION
      The version string of the function being executed.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_HOSTNAME
      Hostname of the host.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_ID
      Unique host id.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_ID
      VM image id.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_NAME
      Name of the VM image or OS install the host was instantiated from.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_VERSION
      The version string of the VM image.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_NAME
      Name of the host.
      static io.opentelemetry.api.common.AttributeKey<String> HOST_TYPE
      Type of host.
      static io.opentelemetry.api.common.AttributeKey<String> K8S_CLUSTER
      The name of the cluster that the pod is running in.
      static io.opentelemetry.api.common.AttributeKey<String> K8S_DEPLOYMENT
      The name of the deployment.
      static io.opentelemetry.api.common.AttributeKey<String> K8S_NAMESPACE
      The name of the namespace that the pod is running in.
      static io.opentelemetry.api.common.AttributeKey<String> K8S_POD
      The name of the pod.
      static io.opentelemetry.api.common.AttributeKey<String> LIBRARY_LANGUAGE
      The language of telemetry library and of the code instrumented with it.
      static io.opentelemetry.api.common.AttributeKey<String> LIBRARY_NAME
      The name of the telemetry library.
      static io.opentelemetry.api.common.AttributeKey<String> LIBRARY_VERSION
      The version string of the library.
      static io.opentelemetry.api.common.AttributeKey<String> OS_DESCRIPTION
      Human readable information about the OS version, e.g.
      static io.opentelemetry.api.common.AttributeKey<String> OS_NAME
      The operating system type, such as "WINDOWS", "DARWIN", "LINUX".
      static io.opentelemetry.api.common.AttributeKey<String> PROCESS_COMMAND
      The command used to launch the process (i.e.
      static io.opentelemetry.api.common.AttributeKey<String> PROCESS_COMMAND_LINE
      The full command used to launch the process.
      static io.opentelemetry.api.common.AttributeKey<String> PROCESS_EXECUTABLE_NAME
      The name of the process executable.
      static io.opentelemetry.api.common.AttributeKey<String> PROCESS_EXECUTABLE_PATH
      The full path to the process executable.
      static io.opentelemetry.api.common.AttributeKey<String> PROCESS_OWNER
      The username of the user that owns the process.
      static io.opentelemetry.api.common.AttributeKey<Long> PROCESS_PID
      Process identifier (PID).
      static io.opentelemetry.api.common.AttributeKey<String> SDK_LANGUAGE
      The language of the telemetry SDK.
      static io.opentelemetry.api.common.AttributeKey<String> SDK_NAME
      The name of the telemetry SDK as defined above.
      static io.opentelemetry.api.common.AttributeKey<String> SDK_VERSION
      The version string of the telemetry SDK.
      static io.opentelemetry.api.common.AttributeKey<String> SERVICE_INSTANCE
      The string ID of the service instance.
      static io.opentelemetry.api.common.AttributeKey<String> SERVICE_NAME
      Logical name of the service.
      static io.opentelemetry.api.common.AttributeKey<String> SERVICE_NAMESPACE
      A namespace for `service.name`.
      static io.opentelemetry.api.common.AttributeKey<String> SERVICE_VERSION
      The version string of the service API or implementation.
    • Field Detail

      • OS_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> OS_NAME
        The operating system type, such as "WINDOWS", "DARWIN", "LINUX".
      • OS_DESCRIPTION

        public static final io.opentelemetry.api.common.AttributeKey<String> OS_DESCRIPTION
        Human readable information about the OS version, e.g. "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS".
      • PROCESS_PID

        public static final io.opentelemetry.api.common.AttributeKey<Long> PROCESS_PID
        Process identifier (PID).
      • PROCESS_EXECUTABLE_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_EXECUTABLE_NAME
        The name of the process executable.
      • PROCESS_EXECUTABLE_PATH

        public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_EXECUTABLE_PATH
        The full path to the process executable.
      • PROCESS_COMMAND

        public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_COMMAND
        The command used to launch the process (i.e. the command name).
      • PROCESS_COMMAND_LINE

        public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_COMMAND_LINE
        The full command used to launch the process. The value can be either a list of strings representing the ordered list of arguments, or a single string representing the full command.
      • PROCESS_OWNER

        public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_OWNER
        The username of the user that owns the process.
      • SERVICE_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> SERVICE_NAME
        Logical name of the service. MUST be the same for all instances of horizontally scaled services.
      • SERVICE_NAMESPACE

        public static final io.opentelemetry.api.common.AttributeKey<String> SERVICE_NAMESPACE
        A namespace for `service.name`. A string value having a meaning that helps to distinguish a group of services,
      • SERVICE_INSTANCE

        public static final io.opentelemetry.api.common.AttributeKey<String> SERVICE_INSTANCE
        The string ID of the service instance. MUST be unique for each instance of the same `service.namespace,service.name` pair.
      • SERVICE_VERSION

        public static final io.opentelemetry.api.common.AttributeKey<String> SERVICE_VERSION
        The version string of the service API or implementation.
      • LIBRARY_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> LIBRARY_NAME
        The name of the telemetry library.
      • LIBRARY_LANGUAGE

        public static final io.opentelemetry.api.common.AttributeKey<String> LIBRARY_LANGUAGE
        The language of telemetry library and of the code instrumented with it.
      • LIBRARY_VERSION

        public static final io.opentelemetry.api.common.AttributeKey<String> LIBRARY_VERSION
        The version string of the library.
      • CONTAINER_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> CONTAINER_NAME
        Container name.
      • CONTAINER_ID

        public static final io.opentelemetry.api.common.AttributeKey<String> CONTAINER_ID
        Container id.
      • CONTAINER_IMAGE_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> CONTAINER_IMAGE_NAME
        Name of the image the container was built on.
      • CONTAINER_IMAGE_TAG

        public static final io.opentelemetry.api.common.AttributeKey<String> CONTAINER_IMAGE_TAG
        Container image tag.
      • K8S_CLUSTER

        public static final io.opentelemetry.api.common.AttributeKey<String> K8S_CLUSTER
        The name of the cluster that the pod is running in.
      • K8S_NAMESPACE

        public static final io.opentelemetry.api.common.AttributeKey<String> K8S_NAMESPACE
        The name of the namespace that the pod is running in.
      • K8S_POD

        public static final io.opentelemetry.api.common.AttributeKey<String> K8S_POD
        The name of the pod.
      • K8S_DEPLOYMENT

        public static final io.opentelemetry.api.common.AttributeKey<String> K8S_DEPLOYMENT
        The name of the deployment.
      • HOST_HOSTNAME

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_HOSTNAME
        Hostname of the host. It contains what the `hostname` command returns on the host machine.
      • HOST_ID

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_ID
        Unique host id. For Cloud this must be the instance_id assigned by the cloud provider.
      • HOST_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_NAME
        Name of the host. It may contain what `hostname` returns on Unix systems, the fully qualified, or a name specified by the user.
      • HOST_TYPE

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_TYPE
        Type of host. For Cloud this must be the machine type.
      • HOST_IMAGE_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_NAME
        Name of the VM image or OS install the host was instantiated from.
      • HOST_IMAGE_ID

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_ID
        VM image id. For Cloud, this value is from the provider.
      • HOST_IMAGE_VERSION

        public static final io.opentelemetry.api.common.AttributeKey<String> HOST_IMAGE_VERSION
        The version string of the VM image.
      • CLOUD_PROVIDER

        public static final io.opentelemetry.api.common.AttributeKey<String> CLOUD_PROVIDER
        Name of the cloud provider.
      • CLOUD_ACCOUNT

        public static final io.opentelemetry.api.common.AttributeKey<String> CLOUD_ACCOUNT
        The cloud account id used to identify different entities.
      • CLOUD_REGION

        public static final io.opentelemetry.api.common.AttributeKey<String> CLOUD_REGION
        A specific geographical location where different entities can run.
      • CLOUD_ZONE

        public static final io.opentelemetry.api.common.AttributeKey<String> CLOUD_ZONE
        Zones are a sub set of the region connected through low-latency links.
      • FAAS_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> FAAS_NAME
        The name of the function being executed.
      • FAAS_ID

        public static final io.opentelemetry.api.common.AttributeKey<String> FAAS_ID
        The unique ID of the function being executed.
      • FAAS_VERSION

        public static final io.opentelemetry.api.common.AttributeKey<String> FAAS_VERSION
        The version string of the function being executed.
      • FAAS_INSTANCE

        public static final io.opentelemetry.api.common.AttributeKey<String> FAAS_INSTANCE
        The execution environment ID as a string.
      • SDK_NAME

        public static final io.opentelemetry.api.common.AttributeKey<String> SDK_NAME
        The name of the telemetry SDK as defined above.
      • SDK_LANGUAGE

        public static final io.opentelemetry.api.common.AttributeKey<String> SDK_LANGUAGE
        The language of the telemetry SDK.
      • SDK_VERSION

        public static final io.opentelemetry.api.common.AttributeKey<String> SDK_VERSION
        The version string of the telemetry SDK.