Skip to content

Commit b0b6fca

Browse files
committed
chore: add mycomponent support for CI
- Add 'mycomponent' to allowed status.class in metadata-schema.yaml - Add 'mycomponent' to cspell dictionary for spelling checks
1 parent e5207d9 commit b0b6fca

File tree

2 files changed

+12
-44
lines changed

2 files changed

+12
-44
lines changed

.github/workflows/utils/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
"multiclient",
314314
"multimod",
315315
"mycert",
316+
"mycomponent",
316317
"myconnector",
317318
"myexporter",
318319
"myextension",

cmd/mdatagen/metadata-schema.yaml

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,15 @@ generated_package_name: string
1313
# Required for components (Optional for subcomponents): A high-level view of the development status and use of this component
1414
status:
1515
# Required: The class of the component (For example receiver)
16-
class: <receiver|processor|exporter|connector|extension|cmd|pkg|scraper|converter|provider>
16+
class: <receiver|processor|exporter|connector|extension|cmd|pkg|scraper|converter|provider|mycomponent>
1717
# Required: The stability of the component - See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#stability-levels
1818
stability:
19-
development:
20-
[
21-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
22-
converter,
23-
provider>,
24-
]
25-
alpha:
26-
[
27-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
28-
converter,
29-
provider>,
30-
]
31-
beta:
32-
[
33-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
34-
converter,
35-
provider>,
36-
]
37-
stable:
38-
[
39-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
40-
converter,
41-
provider>,
42-
]
43-
deprecated:
44-
[
45-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
46-
converter,
47-
provider>,
48-
]
49-
unmaintained:
50-
[
51-
<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,
52-
converter,
53-
provider>,
54-
]
19+
development: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
20+
alpha: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
21+
beta: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
22+
stable: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
23+
deprecated: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
24+
unmaintained: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics|extension,converter,provider>]
5525
# Required for deprecated components: The deprecation information for the deprecated components - See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#deprecation-information
5626
deprecation:
5727
<component>:
@@ -163,10 +133,9 @@ metrics:
163133
monotonic: bool
164134
# Required for sum metric: whether reported values incorporate previous measurements
165135
# (cumulative) or not (delta).
166-
aggregation_temporality:
167-
<delta|cumulative>
168-
# Optional: Indicates the type the metric needs to be parsed from. If set, the generated
169-
# functions will parse the value from string to value_type.
136+
aggregation_temporality: <delta|cumulative>
137+
# Optional: Indicates the type the metric needs to be parsed from. If set, the generated
138+
# functions will parse the value from string to value_type.
170139
input_type: string
171140
# Optional: array of attributes that were defined in the attributes section that are emitted by this metric.
172141
attributes: [string]
@@ -176,9 +145,6 @@ metrics:
176145
level: <development|alpha|beta|stable|deprecated>
177146
# Optional: the version current stability was introduced
178147
from:
179-
# Optional: the reference to a semantic convention
180-
semantic_convention:
181-
ref:
182148

183149
# Optional: map of event names with the key being the event name and value
184150
# being described below.
@@ -219,6 +185,7 @@ tests:
219185
top: [string] # Optional: array of strings representing functions that should be ignore via IgnoreTopFunction
220186
any: [string] # Optional: array of strings representing functions that should be ignore via IgnoreAnyFunction
221187

188+
222189
# Optional: map of metric names with the key being the metric name and value
223190
# being described below.
224191
telemetry:

0 commit comments

Comments
 (0)