Skip to content

Commit

Permalink
added in log of vt_span_context
Browse files Browse the repository at this point in the history
  • Loading branch information
makinje16 committed Oct 3, 2023
1 parent d0abc8c commit c823556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/vtgate/plugin_mysql_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func getSpan(ctx context.Context, match []string, newSpan func(context.Context,
span, ctx, err = newSpanFromString(ctx, match[1], label)
if err == nil {
span.Annotate("vt_span_context", match[0])
log.Infof("vt_span_context: %s", match[1])
return span, ctx
}
log.Warningf("Unable to parse VT_SPAN_CONTEXT: %s", err.Error())
Expand Down

0 comments on commit c823556

Please sign in to comment.