Open Bug 1933252 Opened 1 year ago Updated 1 year ago

Support for defining templates outside of metrics

Categories

(Data Platform and Tools :: Glean: SDK, defect, P4)

defect

Tracking

(Not tracked)

People

(Reporter: beth, Unassigned)

Details

I recently ran into a situation where I was trying to use YAML anchors and aliases to copy some fields (bugs, data-reviews) across multiple metrics. However, the metric I was copying from was an object metric and thus had a structure property. When it was copied into non object metrics, it caused an error because it was an unexpected key.

It would be nice if we had some sort of special top-level-key in metrics files, like $templates, which we could use just for defining aliases that we can anchor into real metrics.

Priority: -- → P4
You need to log in before you can comment on or make changes to this bug.