Skip to content

Update semconv JSON schema for entities #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 27, 2025
45 changes: 43 additions & 2 deletions schemas/semconv.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
}
]
},
{
"allOf": [
{
"$ref": "#/$defs/EntitySemanticConvention"
}
]
},
{
"allOf": [
{
Expand Down Expand Up @@ -99,6 +106,23 @@
}
]
},

"EntitySemanticConvention": {
"allOf": [
{
"$ref": "#/$defs/SemanticConventionBase"
}
],
"required": [
"name"
],
"properties": {
"type": {
"type": "string",
"const": "entity"
}
}
},
"SemanticConventionBase": {
"type": "object",
"required": [
Expand Down Expand Up @@ -165,7 +189,7 @@
"type": "string",
"enum": [
"span",
"resource",
"entity",
"metric",
"event",
"attribute_group"
Expand Down Expand Up @@ -193,7 +217,7 @@
},
"display_name": {
"type": "string",
"description": "the display name / title of the attribute group."
"description": "the display name / title of the semantic convention."
},
"deprecated": {
"$ref": "#/$defs/Deprecated"
Expand Down Expand Up @@ -235,6 +259,10 @@
"internal"
],
"description": "specifies the kind of the span."
},
"entity_associations": {
"type": "array",
"items": { "$ref": "#/$defs/EntityAssociation" }
}
}
},
Expand All @@ -255,6 +283,10 @@
},
"body": {
"$ref": "#/$defs/AnyValueSemanticConvention"
},
"entity_associations": {
"type": "array",
"items": { "$ref": "#/$defs/EntityAssociation" }
}
},
"anyOf": [
Expand Down Expand Up @@ -458,6 +490,10 @@
"unit": {
"type": "string",
"description": "The unit in which the metric is measured in."
},
"entity_associations": {
"type": "array",
"items": { "$ref": "#/$defs/EntityAssociation" }
}
}
},
Expand Down Expand Up @@ -762,6 +798,11 @@
"description": "literal denoting the type"
}
]
},
"EntityAssociation": {
"type": "array",
"items": { "type": "string" },
"description": "list of entity associations."
}
}
}
Loading