in spectator/registry.py [0:0]
def new_id(self, name: str, tags: Optional[dict] = None) -> MeterId:
"""Create a new MeterId, which applies any configured extra common tags,
and can be used as an input to the *_with_id Registry methods."""
if tags is None:
tags = {}
new_meter_id = MeterId(name, tags)
if len(self._config.extra_common_tags) > 0:
new_meter_id = new_meter_id.with_tags(self._config.extra_common_tags)
return new_meter_id