Skip to content

Commit

Permalink
Undid json formatting. Added changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerbly committed Sep 5, 2023
1 parent 5be0992 commit 602b90f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 72 deletions.
2 changes: 2 additions & 0 deletions semantic-conventions/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Please update the changelog as part of any significant pull request.

- Render template-type attributes from yaml files
([#186](https://github.com/open-telemetry/build-tools/pull/186))
- Fix conditionally_required definition in semconv.schema.json
([#201](https://github.com/open-telemetry/build-tools/pull/201))

## v0.20.0

Expand Down
89 changes: 17 additions & 72 deletions semantic-conventions/semconv.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,16 @@
"items": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/definitions/SemanticConvention"
}
]
"allOf": [{"$ref": "#/definitions/SemanticConvention"}]
},
{
"allOf": [
{
"$ref": "#/definitions/SpanSemanticConvention"
}
]
"allOf": [{"$ref": "#/definitions/SpanSemanticConvention"}]
},
{
"allOf": [
{
"$ref": "#/definitions/EventSemanticConvention"
}
]
"allOf": [{"$ref": "#/definitions/EventSemanticConvention"}]
},
{
"allOf": [
{
"$ref": "#/definitions/MetricSemanticConvention"
}
]
"allOf": [{"$ref": "#/definitions/MetricSemanticConvention"}]
}
]
}
Expand Down Expand Up @@ -149,11 +133,7 @@
}
},
"SpanSemanticConvention": {
"allOf": [
{
"$ref": "#/definitions/SemanticConventionBase"
}
],
"allOf": [{ "$ref": "#/definitions/SemanticConventionBase" }],
"properties": {
"type": {
"type": "string",
Expand All @@ -173,11 +153,7 @@
}
},
"EventSemanticConvention": {
"allOf": [
{
"$ref": "#/definitions/SemanticConventionBase"
}
],
"allOf": [{ "$ref": "#/definitions/SemanticConventionBase" }],
"properties": {
"type": {
"type": "string",
Expand All @@ -189,27 +165,13 @@
}
},
"anyOf": [
{
"required": [
"prefix"
]
},
{
"required": [
"name"
]
}
{"required": ["prefix"]},
{"required": ["name"]}
]
},
"MetricGroupSemanticConvention": {
"allOf": [
{
"$ref": "#/definitions/SemanticConventionBase"
}
],
"required": [
"type"
],
"allOf": [{ "$ref": "#/definitions/SemanticConventionBase" }],
"required": ["type"],
"properties": {
"type": {
"type": "string",
Expand All @@ -218,11 +180,7 @@
}
},
"MetricSemanticConvention": {
"allOf": [
{
"$ref": "#/definitions/SemanticConventionBase"
}
],
"allOf": [{ "$ref": "#/definitions/SemanticConventionBase" }],
"required": [
"type",
"metric_name",
Expand Down Expand Up @@ -255,22 +213,13 @@
}
},
"SemanticConvention": {
"allOf": [
{
"$ref": "#/definitions/SemanticConventionBase"
}
],
"required": [
"type"
],
"allOf": [{ "$ref": "#/definitions/SemanticConventionBase" }],
"required": ["type"],
"properties": {
"type": {
"type": "string",
"not": {
"enum": [
"span",
"event"
]
"enum": ["span", "event"]
}
}
}
Expand Down Expand Up @@ -456,14 +405,10 @@
},
"examples": {
"anyOf": [
{
"$ref": "#/definitions/ValueType"
},
{ "$ref": "#/definitions/ValueType" },
{
"type": "array",
"items": {
"$ref": "#/definitions/ValueType"
}
"items": { "$ref": "#/definitions/ValueType" }
}
],
"description": "sequence/dictionary of example values for the attribute. They are optional for boolean, int, double, and enum attributes. Example values must be of the same type of the attribute. If only a single example is provided, it can directly be reported without encapsulating it into a sequence/dictionary."
Expand All @@ -487,4 +432,4 @@
]
}
}
}
}

0 comments on commit 602b90f

Please sign in to comment.