Expand description
§Resource Semantic Conventions
The resource semantic conventions define a set of standardized attributes
to be used in Resources.
§Usage
use opentelemetry::KeyValue;
use opentelemetry_sdk::{trace::SdkTracerProvider, Resource};
use opentelemetry_semantic_conventions as semconv;
let _tracer = SdkTracerProvider::builder()
.with_resource(Resource::builder_empty().with_service_name("my-service").build())
.build();Re-exports§
pub use crate::attribute::ANDROID_OS_API_LEVEL;pub use crate::attribute::APP_INSTALLATION_ID;pub use crate::attribute::AWS_ECS_CLUSTER_ARN;pub use crate::attribute::AWS_ECS_CONTAINER_ARN;pub use crate::attribute::AWS_ECS_LAUNCHTYPE;pub use crate::attribute::AWS_ECS_TASK_ARN;pub use crate::attribute::AWS_ECS_TASK_FAMILY;pub use crate::attribute::AWS_ECS_TASK_ID;pub use crate::attribute::AWS_ECS_TASK_REVISION;pub use crate::attribute::AWS_EKS_CLUSTER_ARN;pub use crate::attribute::AWS_LOG_GROUP_ARNS;pub use crate::attribute::AWS_LOG_GROUP_NAMES;pub use crate::attribute::AWS_LOG_STREAM_ARNS;pub use crate::attribute::AWS_LOG_STREAM_NAMES;pub use crate::attribute::BROWSER_BRANDS;pub use crate::attribute::BROWSER_LANGUAGE;pub use crate::attribute::BROWSER_MOBILE;pub use crate::attribute::BROWSER_PLATFORM;pub use crate::attribute::CICD_PIPELINE_NAME;pub use crate::attribute::CICD_PIPELINE_RUN_ID;pub use crate::attribute::CICD_PIPELINE_RUN_URL_FULL;pub use crate::attribute::CICD_WORKER_ID;pub use crate::attribute::CICD_WORKER_NAME;pub use crate::attribute::CICD_WORKER_URL_FULL;pub use crate::attribute::CLOUD_ACCOUNT_ID;pub use crate::attribute::CLOUD_AVAILABILITY_ZONE;pub use crate::attribute::CLOUD_PLATFORM;pub use crate::attribute::CLOUD_PROVIDER;pub use crate::attribute::CLOUD_REGION;pub use crate::attribute::CLOUD_RESOURCE_ID;pub use crate::attribute::CLOUDFOUNDRY_APP_ID;pub use crate::attribute::CLOUDFOUNDRY_APP_NAME;pub use crate::attribute::CLOUDFOUNDRY_ORG_ID;pub use crate::attribute::CLOUDFOUNDRY_ORG_NAME;pub use crate::attribute::CLOUDFOUNDRY_PROCESS_ID;pub use crate::attribute::CLOUDFOUNDRY_PROCESS_TYPE;pub use crate::attribute::CLOUDFOUNDRY_SPACE_ID;pub use crate::attribute::CLOUDFOUNDRY_SPACE_NAME;pub use crate::attribute::CLOUDFOUNDRY_SYSTEM_ID;pub use crate::attribute::CLOUDFOUNDRY_SYSTEM_INSTANCE_ID;pub use crate::attribute::CONTAINER_COMMAND;pub use crate::attribute::CONTAINER_COMMAND_ARGS;pub use crate::attribute::CONTAINER_COMMAND_LINE;pub use crate::attribute::CONTAINER_ID;pub use crate::attribute::CONTAINER_IMAGE_ID;pub use crate::attribute::CONTAINER_IMAGE_NAME;pub use crate::attribute::CONTAINER_IMAGE_REPO_DIGESTS;pub use crate::attribute::CONTAINER_IMAGE_TAGS;pub use crate::attribute::CONTAINER_LABEL;pub use crate::attribute::CONTAINER_NAME;pub use crate::attribute::CONTAINER_RUNTIME;pub use crate::attribute::DEPLOYMENT_ENVIRONMENT_NAME;pub use crate::attribute::DEVICE_ID;pub use crate::attribute::DEVICE_MANUFACTURER;pub use crate::attribute::DEVICE_MODEL_IDENTIFIER;pub use crate::attribute::DEVICE_MODEL_NAME;pub use crate::attribute::FAAS_INSTANCE;pub use crate::attribute::FAAS_MAX_MEMORY;pub use crate::attribute::FAAS_NAME;pub use crate::attribute::FAAS_VERSION;pub use crate::attribute::GCP_APPHUB_APPLICATION_CONTAINER;pub use crate::attribute::GCP_APPHUB_APPLICATION_ID;pub use crate::attribute::GCP_APPHUB_APPLICATION_LOCATION;pub use crate::attribute::GCP_APPHUB_SERVICE_CRITICALITY_TYPE;pub use crate::attribute::GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE;pub use crate::attribute::GCP_APPHUB_SERVICE_ID;pub use crate::attribute::GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE;pub use crate::attribute::GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE;pub use crate::attribute::GCP_APPHUB_WORKLOAD_ID;pub use crate::attribute::GCP_CLOUD_RUN_JOB_EXECUTION;pub use crate::attribute::GCP_CLOUD_RUN_JOB_TASK_INDEX;pub use crate::attribute::GCP_GCE_INSTANCE_HOSTNAME;pub use crate::attribute::GCP_GCE_INSTANCE_NAME;pub use crate::attribute::HEROKU_APP_ID;pub use crate::attribute::HEROKU_RELEASE_COMMIT;pub use crate::attribute::HEROKU_RELEASE_CREATION_TIMESTAMP;pub use crate::attribute::HOST_ARCH;pub use crate::attribute::HOST_CPU_CACHE_L2_SIZE;pub use crate::attribute::HOST_CPU_FAMILY;pub use crate::attribute::HOST_CPU_MODEL_ID;pub use crate::attribute::HOST_CPU_MODEL_NAME;pub use crate::attribute::HOST_CPU_STEPPING;pub use crate::attribute::HOST_CPU_VENDOR_ID;pub use crate::attribute::HOST_ID;pub use crate::attribute::HOST_IMAGE_ID;pub use crate::attribute::HOST_IMAGE_NAME;pub use crate::attribute::HOST_IMAGE_VERSION;pub use crate::attribute::HOST_IP;pub use crate::attribute::HOST_MAC;pub use crate::attribute::HOST_NAME;pub use crate::attribute::HOST_TYPE;pub use crate::attribute::K8S_CLUSTER_NAME;pub use crate::attribute::K8S_CLUSTER_UID;pub use crate::attribute::K8S_CONTAINER_NAME;pub use crate::attribute::K8S_CONTAINER_RESTART_COUNT;pub use crate::attribute::K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON;pub use crate::attribute::K8S_CRONJOB_ANNOTATION;pub use crate::attribute::K8S_CRONJOB_LABEL;pub use crate::attribute::K8S_CRONJOB_NAME;pub use crate::attribute::K8S_CRONJOB_UID;pub use crate::attribute::K8S_DAEMONSET_ANNOTATION;pub use crate::attribute::K8S_DAEMONSET_LABEL;pub use crate::attribute::K8S_DAEMONSET_NAME;pub use crate::attribute::K8S_DAEMONSET_UID;pub use crate::attribute::K8S_DEPLOYMENT_ANNOTATION;pub use crate::attribute::K8S_DEPLOYMENT_LABEL;pub use crate::attribute::K8S_DEPLOYMENT_NAME;pub use crate::attribute::K8S_DEPLOYMENT_UID;pub use crate::attribute::K8S_HPA_NAME;pub use crate::attribute::K8S_HPA_SCALETARGETREF_API_VERSION;pub use crate::attribute::K8S_HPA_SCALETARGETREF_KIND;pub use crate::attribute::K8S_HPA_SCALETARGETREF_NAME;pub use crate::attribute::K8S_HPA_UID;pub use crate::attribute::K8S_JOB_ANNOTATION;pub use crate::attribute::K8S_JOB_LABEL;pub use crate::attribute::K8S_JOB_NAME;pub use crate::attribute::K8S_JOB_UID;pub use crate::attribute::K8S_NAMESPACE_ANNOTATION;pub use crate::attribute::K8S_NAMESPACE_LABEL;pub use crate::attribute::K8S_NAMESPACE_NAME;pub use crate::attribute::K8S_NODE_ANNOTATION;pub use crate::attribute::K8S_NODE_LABEL;pub use crate::attribute::K8S_NODE_NAME;pub use crate::attribute::K8S_NODE_UID;pub use crate::attribute::K8S_POD_ANNOTATION;pub use crate::attribute::K8S_POD_LABEL;pub use crate::attribute::K8S_POD_NAME;pub use crate::attribute::K8S_POD_UID;pub use crate::attribute::K8S_REPLICASET_ANNOTATION;pub use crate::attribute::K8S_REPLICASET_LABEL;pub use crate::attribute::K8S_REPLICASET_NAME;pub use crate::attribute::K8S_REPLICASET_UID;pub use crate::attribute::K8S_REPLICATIONCONTROLLER_NAME;pub use crate::attribute::K8S_REPLICATIONCONTROLLER_UID;pub use crate::attribute::K8S_RESOURCEQUOTA_NAME;pub use crate::attribute::K8S_RESOURCEQUOTA_UID;pub use crate::attribute::K8S_STATEFULSET_ANNOTATION;pub use crate::attribute::K8S_STATEFULSET_LABEL;pub use crate::attribute::K8S_STATEFULSET_NAME;pub use crate::attribute::K8S_STATEFULSET_UID;pub use crate::attribute::MAINFRAME_LPAR_NAME;pub use crate::attribute::OCI_MANIFEST_DIGEST;pub use crate::attribute::OS_BUILD_ID;pub use crate::attribute::OS_DESCRIPTION;pub use crate::attribute::OS_NAME;pub use crate::attribute::OS_TYPE;pub use crate::attribute::OS_VERSION;pub use crate::attribute::OTEL_SCOPE_NAME;pub use crate::attribute::OTEL_SCOPE_VERSION;pub use crate::attribute::PROCESS_COMMAND;pub use crate::attribute::PROCESS_COMMAND_ARGS;pub use crate::attribute::PROCESS_COMMAND_LINE;pub use crate::attribute::PROCESS_EXECUTABLE_NAME;pub use crate::attribute::PROCESS_EXECUTABLE_PATH;pub use crate::attribute::PROCESS_LINUX_CGROUP;pub use crate::attribute::PROCESS_OWNER;pub use crate::attribute::PROCESS_PARENT_PID;pub use crate::attribute::PROCESS_PID;pub use crate::attribute::PROCESS_RUNTIME_DESCRIPTION;pub use crate::attribute::PROCESS_RUNTIME_NAME;pub use crate::attribute::PROCESS_RUNTIME_VERSION;pub use crate::attribute::SERVICE_INSTANCE_ID;pub use crate::attribute::SERVICE_NAME;pub use crate::attribute::SERVICE_NAMESPACE;pub use crate::attribute::SERVICE_VERSION;pub use crate::attribute::TELEMETRY_DISTRO_NAME;pub use crate::attribute::TELEMETRY_DISTRO_VERSION;pub use crate::attribute::TELEMETRY_SDK_LANGUAGE;pub use crate::attribute::TELEMETRY_SDK_NAME;pub use crate::attribute::TELEMETRY_SDK_VERSION;pub use crate::attribute::USER_AGENT_ORIGINAL;pub use crate::attribute::VCS_REF_HEAD_NAME;pub use crate::attribute::VCS_REF_HEAD_REVISION;pub use crate::attribute::VCS_REF_TYPE;pub use crate::attribute::VCS_REPOSITORY_NAME;pub use crate::attribute::VCS_REPOSITORY_URL_FULL;pub use crate::attribute::WEBENGINE_DESCRIPTION;pub use crate::attribute::WEBENGINE_NAME;pub use crate::attribute::WEBENGINE_VERSION;pub use crate::attribute::ZOS_SMF_ID;pub use crate::attribute::ZOS_SYSPLEX_NAME;