Module opentelemetry_semantic_conventions::resource[][src]

Resource Semantic Conventions

The resource semantic conventions define a set of standardized attributes to be used in Resources.

Usage

use opentelemetry::sdk;
use opentelemetry_semantic_conventions as semcov;

let _tracer = opentelemetry::sdk::export::trace::stdout::new_pipeline()
    .with_trace_config(sdk::trace::config().with_resource(sdk::Resource::new(vec![
        semcov::resource::SERVICE_NAME.string("my-service"),
        semcov::resource::SERVICE_NAMESPACE.string("my-namespace"),
    ])))
    .install_simple();

Constants

CLOUD_ACCOUNT_ID

The cloud account ID used to identify different entities.

CLOUD_PROVIDER

Name of the cloud provider.

CLOUD_REGION

A specific geographical location where different entities can run.

CLOUD_ZONE

Zones are a sub set of the region connected through low-latency links.

CONTAINER_ID

Container id. Usually a UUID, as for example used to identify Docker containers. The UUID might be abbreviated.

CONTAINER_IMAGE_NAME

Name of the image the container was built on.

CONTAINER_IMAGE_TAG

Container image tag.

CONTAINER_NAME

Container name.

DEPLOYMENT_ENVIRONMENT

Name of the deployment environment (aka deployment tier).

FAAS_ID

The unique ID of the function being executed.

FAAS_INSTANCE

The execution environment ID as a string.

FAAS_NAME

The name of the function being executed.

FAAS_VERSION

The version string of the function being executed as defined in Version Attributes.

HOST_ID

Unique host ID.

HOST_IMAGE_ID

VM image ID.

HOST_IMAGE_NAME

Name of the VM image or OS install the host was instantiated from.

HOST_IMAGE_VERSION

The version string of the VM image as defined in Version Attributes.

HOST_NAME

Name of the host.

HOST_TYPE

Type of host.

K8S_CLUSTER_NAME

The name of the cluster.

K8S_CONTAINER_NAME

The name of the Container in a Pod template.

K8S_CRONJOB_NAME

The name of the CronJob.

K8S_CRONJOB_UID

The UID of the CronJob.

K8S_DAEMONSET_NAME

The name of the DaemonSet.

K8S_DAEMONSET_UID

The UID of the DaemonSet.

K8S_DEPLOYMENT_NAME

The name of the Deployment.

K8S_DEPLOYMENT_UID

The UID of the Deployment.

K8S_JOB_NAME

The name of the Job.

K8S_JOB_UID

The UID of the Job.

K8S_NAMESPACE_NAME

The name of the namespace that the pod is running in.

K8S_POD_NAME

The name of the Pod.

K8S_POD_UID

The UID of the Pod.

K8S_REPLICASET_NAME

The name of the ReplicaSet.

K8S_REPLICASET_UID

The UID of the ReplicaSet.

K8S_STATEFULSET_NAME

The name of the StatefulSet.

K8S_STATEFULSET_UID

The UID of the StatefulSet.

OS_DESCRIPTION

Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.

OS_TYPE

The operating system type.

PROCESS_COMMAND

The command used to launch the process (i.e. the command name).

PROCESS_COMMAND_LINE

The full command used to launch the process.

PROCESS_EXECUTABLE_NAME

The name of the process executable.

PROCESS_EXECUTABLE_PATH

The full path to the process executable.

PROCESS_OWNER

The username of the user that owns the process.

PROCESS_PID

Process identifier (PID).

PROCESS_RUNTIME_DESCRIPTION

An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment.

PROCESS_RUNTIME_NAME

The name of the runtime of this process.

PROCESS_RUNTIME_VERSION

The version of the runtime of this process, as returned by the runtime without modification.

SERVICE_INSTANCE_ID

The string ID of the service instance.

SERVICE_NAME

Logical name of the service.

SERVICE_NAMESPACE

A namespace for service.name.

SERVICE_VERSION

The version string of the service API or implementation.

TELEMETRY_AUTO_VERSION

The version string of the auto instrumentation agent, if used.

TELEMETRY_SDK_LANGUAGE

The language of the telemetry SDK.

TELEMETRY_SDK_NAME

The name of the telemetry SDK as defined above.

TELEMETRY_SDK_VERSION

The version string of the telemetry SDK.