diff --git a/packages/metrics/src/common/MetricName.ts b/packages/metrics/src/common/MetricName.ts index eee3852b..86463e63 100644 --- a/packages/metrics/src/common/MetricName.ts +++ b/packages/metrics/src/common/MetricName.ts @@ -176,7 +176,9 @@ export class MetricName { let tagsArr = []; for(let key in this.tags) { - tagsArr.push(key + MetricName.TAGS_CONCAT + this.tags[key]); + if(this.tags.hasOwnProperty(key)) { + tagsArr.push(key + MetricName.TAGS_CONCAT + this.tags[key]); + } } tagsArr.sort();