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

(cherry picked from commit c5c206d8a6)
This commit is contained in:
Todd Treece
2024-08-21 15:24:49 +01:00
committed by Andreas Christou
parent bcf8827b00
commit 323783da7e
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