The Merge section of the Resource SDK specification, describes how the schemaURL of two resources should be merged. But it is unclear what should happen if one of the merging resources is empty, meaning, has 0 attributes but a non-empty schema url.
For ex, given this scenario:
- Old resource: has attributes and empty schemaUrl
- Updating resource: has 0 attributes and schemaUrl:
https://opentelemetry.io/docs/specs/otel/schemas/v1.2.0
According with the merge behavior, the resulting resource should receive the schema url of the updating resource.
I wonder if this is correct? Given the resource that will influence the ultimate schema has no attributes, would it be better if, in that case, no schema would be set? Or should the schema be set regardless?
The Merge section of the Resource SDK specification, describes how the
schemaURLof two resources should be merged. But it is unclear what should happen if one of the merging resources is empty, meaning, has 0 attributes but a non-empty schema url.For ex, given this scenario:
https://opentelemetry.io/docs/specs/otel/schemas/v1.2.0According with the merge behavior, the resulting resource should receive the schema url of the updating resource.
I wonder if this is correct? Given the resource that will influence the ultimate schema has no attributes, would it be better if, in that case, no schema would be set? Or should the schema be set regardless?