Skip to content

Commit

Permalink
Change the syntax used for string array types so that it is valid YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
DewaldDeJager committed Jun 6, 2023
1 parent c5d92a6 commit 8b6324f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/mdatagen/metadata-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ status:
deprecated: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics>]
unmaintained: [<metrics|traces|logs|traces_to_metrics|metrics_to_metrics|logs_to_metrics>]
# Optional: The distributions that this component is bundled with (For example core or contrib). See statusdata.go for a list of common distros.
distributions: []string
distributions: [string]
# Optional: A list of warnings that should be brought to the attention of users looking to use this component
warnings: []string
warnings: [string]

# Optional: OTel Semantic Conventions version that will be associated with the scraped metrics.
# This attribute should be set for metrics compliant with OTel Semantic Conventions.
Expand All @@ -30,7 +30,7 @@ resource_attributes:
# Required: description of the attribute.
description:
# Optional: array of attribute values if they are static values (currently, only string type is supported).
enum: []string
enum: [string]
# Required: attribute value type.
type: <string|int|double|bool|bytes|slice|map>

Expand All @@ -44,7 +44,7 @@ attributes:
# Required: description of the attribute.
description:
# Optional: array of attribute values if they are static values (currently, only string type is supported).
enum: []string
enum: [string]
# Required: attribute value type.
type: <string|int|double|bool|bytes|slice|map>

Expand Down Expand Up @@ -81,4 +81,4 @@ metrics:
# (cumulative) or not (delta).
aggregation: <delta|cumulative>
# Optional: array of attributes that were defined in the attributes section that are emitted by this metric.
attributes: []string
attributes: [string]

0 comments on commit 8b6324f

Please sign in to comment.