You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cmd/mdatagen] Add basic support for entities to metadata.yaml schema
When entities are defined, mdatagen generates `AssociateWith{EntityType}()` methods on ResourceBuilder that associate resources with entity types using the entity refs API. The entities section is backward compatible - existing metadata.yaml files without entities continue to work as before.
This change is fully additive for now. The generated Go API is experimental and will change once #14039 is merged.
# Use this changelog template to create an entry for release notes.
2
+
3
+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4
+
change_type: enhancement
5
+
6
+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7
+
component: cmd/mdatagen
8
+
9
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10
+
note: "`metadata.yaml` now supports an optional `entities` section to organize resource attributes into logical entities with identity and description attributes"
11
+
12
+
# One or more tracking issues or pull requests related to the change
13
+
issues: [14051]
14
+
15
+
# (Optional) One or more lines of additional information to render under the primary note.
16
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
+
# Use pipe (|) for multiline entries.
18
+
subtext: |
19
+
When entities are defined, mdatagen generates `AssociateWith{EntityType}()` methods on ResourceBuilder
20
+
that associate resources with entity types using the entity refs API. The entities section is backward
21
+
compatible - existing metadata.yaml files without entities continue to work as before.
22
+
23
+
# Optional: The change log or logs in which this entry should be included.
24
+
# e.g. '[user]' or '[user, api]'
25
+
# Include 'user' if the change is relevant to end users.
26
+
# Include 'api' if there is a change to a library API.
0 commit comments