SUSE / telemetry

Telemetry scaffolding
Apache License 2.0
0 stars 0 forks source link

SDK: Implement annotation tag set type #5

Open rtamalin opened 5 months ago

rtamalin commented 5 months ago

Telemetry data items, bundles and reports can have associated annotation tags.

These tags can originate from the original telemetry provider, in the case of telemetry data items, or be configured as additional tags to include in the bundle tags list when bundles are created.

Annotation tags that are common to all telemetry data items included in a telemetry bundle could potentially be moved to the bundle's annotation tag list, when creating a telemetry bundle, and similarly for common tags associated with the bundles that are included in a report, when creating a report.

When telemetry reports are received any tags associated with the report should be propagated down to the included bundles as they are extracted, and bundle tags should be propagated down to included data items when they are extracted.

To assist with this sort of processing we should implement a tag set type that supports iteration, the standard set type operations, such as union, intersection, difference, as well as the ability to search for tags by prefix, suffix, substring or even glob or regexp patterns.