constructor()

in src/meter/id.ts [33:50]


    constructor(name: string, tags?: Tags, logger?: Logger) {
        // initialization order in this constructor matters, for logging and testing purposes
        if (logger == undefined) {
            this._logger = get_logger();
        } else {
            this._logger = logger;
        }

        this._name = name;

        if (tags == undefined) {
            this._tags = {}
        } else {
            this._tags = this.validate_tags(tags);
        }

        this.spectatord_id = this.to_spectatord_id(this._name, this._tags);
    }