Semconv: Add k8s.dataplaneservice.name (#91714)

This commit is contained in:
Todd Treece
2024-08-09 04:39:37 -04:00
committed by GitHub
parent 01fc31069f
commit c5c206d8a6
4 changed files with 49 additions and 0 deletions
+20
View File
@@ -61,6 +61,26 @@ func GrafanaDatasourceRequestQueryCount(val int) attribute.KeyValue {
return grafanaDatasourceRequestQueryCountKey.Int(val)
}
// Describes Kubernetes attributes.
const (
// K8sDataplaneserviceNameKey is the attribute Key conforming to the
// "k8s.dataplaneservice.name" semantic conventions. It represents the name
// of the DataPlaneService.
//
// Type: string
// RequirementLevel: Optional
// Stability: stable
// Examples: 'v0alpha1.prometheus.grafana.app'
k8sDataplaneserviceNameKey = attribute.Key("k8s.dataplaneservice.name")
)
// K8sDataplaneserviceName returns an attribute KeyValue conforming to the
// "k8s.dataplaneservice.name" semantic conventions. It represents the name of
// the DataPlaneService.
func K8sDataplaneserviceName(val string) attribute.KeyValue {
return k8sDataplaneserviceNameKey.String(val)
}
// Describes Grafana plugin attributes.
const (
// GrafanaPluginIdKey is the attribute Key conforming to the