1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-05 22:54:18 +02:00

Remove redundant "Key" from const names

This commit is contained in:
Tyler Yahn 2020-05-15 11:38:02 -07:00
parent 4eecaf5391
commit f7f3fc3918
No known key found for this signature in database
GPG Key ID: 42AA23B0BC85B798

View File

@ -20,18 +20,18 @@ package resourcekey // import "go.opentelemetry.io/otel/sdk/resource/resourcekey
// Constants for Service resources. // Constants for Service resources.
const ( const (
// A uniquely identifying name for a Service. // A uniquely identifying name for a Service.
ServiceKeyName = "service.name" ServiceName = "service.name"
ServiceKeyNamespace = "service.namespace" ServiceNamespace = "service.namespace"
ServiceKeyInstanceID = "service.instance.id" ServiceInstanceID = "service.instance.id"
ServiceKeyVersion = "service.version" ServiceVersion = "service.version"
) )
// Constants for Library resources. // Constants for Library resources.
const ( const (
// A uniquely identifying name for a Library. // A uniquely identifying name for a Library.
LibraryKeyName = "library.name" LibraryName = "library.name"
LibraryKeyLanguage = "library.language" LibraryLanguage = "library.language"
LibraryKeyVersion = "library.version" LibraryVersion = "library.version"
) )
// Constants for Kubernetes resources. // Constants for Kubernetes resources.
@ -40,26 +40,26 @@ const (
// does not have cluster names as an internal concept so this may be // does not have cluster names as an internal concept so this may be
// set to any meaningful value within the environment. For example, // set to any meaningful value within the environment. For example,
// GKE clusters have a name which can be used for this label. // GKE clusters have a name which can be used for this label.
K8SKeyClusterName = "k8s.cluster.name" K8SClusterName = "k8s.cluster.name"
K8SKeyNamespaceName = "k8s.namespace.name" K8SNamespaceName = "k8s.namespace.name"
K8SKeyPodName = "k8s.pod.name" K8SPodName = "k8s.pod.name"
K8SKeyDeploymentName = "k8s.deployment.name" K8SDeploymentName = "k8s.deployment.name"
) )
// Constants for Container resources. // Constants for Container resources.
const ( const (
// A uniquely identifying name for the Container. // A uniquely identifying name for the Container.
ContainerKeyName = "container.name" ContainerName = "container.name"
ContainerKeyImageName = "container.image.name" ContainerImageName = "container.image.name"
ContainerKeyImageTag = "container.image.tag" ContainerImageTag = "container.image.tag"
) )
// Constants for Cloud resources. // Constants for Cloud resources.
const ( const (
CloudKeyProvider = "cloud.provider" CloudProvider = "cloud.provider"
CloudKeyAccountID = "cloud.account.id" CloudAccountID = "cloud.account.id"
CloudKeyRegion = "cloud.region" CloudRegion = "cloud.region"
CloudKeyZone = "cloud.zone" CloudZone = "cloud.zone"
// Cloud Providers // Cloud Providers
CloudProviderAWS = "aws" CloudProviderAWS = "aws"
@ -70,13 +70,13 @@ const (
// Constants for Host resources. // Constants for Host resources.
const ( const (
// A uniquely identifying name for the host. // A uniquely identifying name for the host.
HostKeyName = "host.name" HostName = "host.name"
// A hostname as returned by the 'hostname' command on host machine. // A hostname as returned by the 'hostname' command on host machine.
HostKeyHostName = "host.hostname" HostHostName = "host.hostname"
HostKeyID = "host.id" HostID = "host.id"
HostKeyType = "host.type" HostType = "host.type"
HostKeyImageName = "host.image.name" HostImageName = "host.image.name"
HostKeyImageID = "host.image.id" HostImageID = "host.image.id"
HostKeyImageVersion = "host.image.version" HostImageVersion = "host.image.version"
) )