missed a paren

This commit is contained in:
Pat Christopher
2021-07-13 19:03:39 -07:00
parent bde2ef2a1a
commit 585ce7f04d

View File

@@ -188,7 +188,7 @@ func (c *metricDecoder) decodeOpts(expr ast.Expr) (metric, error) {
return m, newDecodeErrorf(expr, errExprNotIdent, v.X)
}
variableExpr, found := c.variables[strings.Join([]string{s.Name,v.Sel.Name}, "."]
variableExpr, found := c.variables[strings.Join([]string{s.Name,v.Sel.Name}, ".")]
if !found {
return m, newDecodeErrorf(expr, errBadVariableAttribute)
}