Chore: Add semconv package (#91408)

This commit is contained in:
Todd Treece
2024-08-02 08:35:18 -04:00
committed by GitHub
parent 0145b0fe70
commit 5376a2eb93
16 changed files with 438 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
groups:
- id: registry.grafana.datasource
type: attribute_group
display_name: Grafana Data Source Attributes
brief: "Describes Grafana datasource attributes."
attributes:
- id: grafana.datasource.type
type: string
brief: The datasource type.
examples:
- "prometheus"
- "loki"
- "grafana-github-datasource"
stability: stable
- id: grafana.datasource.uid
type: string
brief: The datasource unique identifier.
examples: abcdefg-123456
stability: stable
- id: registry.grafana.datasource.request
type: attribute_group
display_name: Grafana Data Source Request Attributes
brief: "Describes Grafana data source request attributes."
attributes:
- id: grafana.datasource.request.query_count
type: int
brief: The number of queries in the request.
examples: 3
stability: stable

View File

@@ -0,0 +1,40 @@
groups:
- id: registry.grafana.plugin
type: attribute_group
display_name: Grafana Plugin Attributes
brief: "Describes Grafana plugin attributes."
attributes:
- id: grafana.plugin.id
type: string
brief: The plugin ID.
examples:
- "prometheus"
- "loki"
- "grafana-github-datasource"
stability: stable
- id: grafana.plugin.type
type:
members:
- id: datasource
value: "datasource"
brief: 'Data Source Plugin'
stability: stable
- id: panel
value: "panel"
brief: 'Panel Plugin'
stability: stable
- id: app
value: "app"
brief: 'App Plugin'
stability: stable
- id: renderer
value: "renderer"
brief: 'Renderer Plugin'
stability: stable
- id: secretmanager
value: "secretmanager"
brief: 'Secret Manager Plugin'
stability: stable
brief: The plugin type.
examples: datasource
stability: stable

View File

@@ -0,0 +1,15 @@
groups:
- id: trace.grafana.datasource
type: span
brief: 'Semantic Convention for Grafana datasources'
stability: stable
attributes:
- ref: grafana.datasource.type
- ref: grafana.datasource.uid
- id: trace.grafana.datasource.request
type: span
span_kind: client
brief: 'Semantic Convention for Grafana datasource requests'
stability: stable
attributes:
- ref: grafana.datasource.request.query_count

View File

@@ -0,0 +1,8 @@
groups:
- id: trace.grafana.plugin
type: span
brief: 'Semantic Convention for Grafana plugins'
stability: stable
attributes:
- ref: grafana.plugin.id
- ref: grafana.plugin.type