feat(semconv): Add grafana namespace name attribute (#113767)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user