Update to newest go-metrics, go mod vendor. (#8311)

This commit is contained in:
ncabatoff
2020-02-07 09:05:14 -05:00
committed by GitHub
parent cabf518355
commit 462ef72b74
265 changed files with 59422 additions and 37990 deletions

View File

@@ -341,10 +341,10 @@ func describeStruct(ctx *ctx, typ reflect2.Type) *StructDescriptor {
if ctx.onlyTaggedField && !hastag && !field.Anonymous() {
continue
}
tagParts := strings.Split(tag, ",")
if tag == "-" {
if tag == "-" || field.Name() == "_" {
continue
}
tagParts := strings.Split(tag, ",")
if field.Anonymous() && (tag == "" || tagParts[0] == "") {
if field.Type().Kind() == reflect.Struct {
structDescriptor := describeStruct(ctx, field.Type())