Skip to content

Commit

Permalink
fixing tags conversion (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
absrivastava authored and ashishagg committed Jan 9, 2019
1 parent 25a4296 commit d6623bb
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ function toTagJson(pbTag) {
let tagValue = '';

switch (pbTag.type) {
case spanProto.Tag.MyvalueCase.VSTR:
case spanProto.Tag.TagType.STRING:
tagValue = pbTag.vstr;
break;
case spanProto.Tag.MyvalueCase.VBOOL:
case spanProto.Tag.TagType.DOUBLE:
tagValue = pbTag.vdouble;
break;
case spanProto.Tag.TagType.BOOL:
tagValue = pbTag.vbool;
break;
case spanProto.Tag.MyvalueCase.VLONG:
case spanProto.Tag.TagType.LONG:
tagValue = pbTag.vlong;
break;
case spanProto.Tag.MyvalueCase.VDOUBLE:
tagValue = pbTag.vdouble;
case spanProto.Tag.TagType.BYTES:
tagValue = pbTag.vbytes;
break;
default:
tagValue = '';
Expand Down

0 comments on commit d6623bb

Please sign in to comment.