sentrysoftware / metricshub

Universal Metrics Collection for OpenTelemetry
https://metricshub.com
GNU Affero General Public License v3.0
15 stars 4 forks source link

Issue #470: Add support for `host.id`, `host.name`, and other attributes as arrays in resource configuration #487

Closed NassimBtk closed 4 days ago

NassimBtk commented 1 week ago

This pull request includes several changes to the deserialization logic in the metricshub-agent project, focusing on handling multi-value attributes and updating resource configurations. The most important changes include modifications to the AttributesDeserializer and PostConfigDeserializer classes, as well as updates to the associated tests.

Deserialization Logic Improvements:

Test Updates:

Legacy host.names

legacy-host names-non-reg

host.name as array

test-host name-as-array

Multiple attributes as array

test-multiple-attributes-as-array

host.name and protocol hostname as array

test-multiple-host name-as-array-plus-protocol-hostname