feat(semconv): Add grafana namespace name attribute (#113767)

This commit is contained in:
Andres Torres
2025-11-12 16:33:26 +00:00
committed by GitHub
parent 6eabb9b2e4
commit 5162988fa1
3 changed files with 39 additions and 0 deletions
+20
View File
@@ -81,6 +81,26 @@ func K8sDataplaneserviceName(val string) attribute.KeyValue {
return k8sDataplaneserviceNameKey.String(val)
}
// Describes Grafana app platform namespace attributes.
const (
// GrafanaNamespaceNameKey is the attribute Key conforming to the
// "grafana.namespace.name" semantic conventions. It represents the
// namespace name.
//
// Type: string
// RequirementLevel: Optional
// Stability: stable
// Examples: 'stacks-99999'
grafanaNamespaceNameKey = attribute.Key("grafana.namespace.name")
)
// GrafanaNamespaceName returns an attribute KeyValue conforming to the
// "grafana.namespace.name" semantic conventions. It represents the namespace
// name.
func GrafanaNamespaceName(val string) attribute.KeyValue {
return grafanaNamespaceNameKey.String(val)
}
// Describes Grafana plugin attributes.
const (
// GrafanaPluginIdKey is the attribute Key conforming to the
+12
View File
@@ -0,0 +1,12 @@
groups:
- id: registry.grafana.namespace
type: attribute_group
display_name: Grafana Namespace Attributes
brief: "Describes Grafana app platform namespace attributes."
attributes:
- id: grafana.namespace.name
type: string
brief: The namespace name.
examples:
- "stacks-99999"
stability: stable
+7
View File
@@ -0,0 +1,7 @@
groups:
- id: trace.grafana.namespace
type: span
brief: 'Semantic Convention for Grafana app platform namespaces'
stability: stable
attributes:
- ref: grafana.namespace.name