From 4274d2d1418a1cc2967be22802b9b17b55400bd6 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Wed, 27 May 2020 15:23:13 -0500 Subject: [PATCH] convert to camelCase --- api.go | 8 ++++---- executor.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api.go b/api.go index eb1587a13..90d3e2e96 100644 --- a/api.go +++ b/api.go @@ -1019,7 +1019,7 @@ func (api *API) Import(ctx context.Context, req *ImportRequest, opts ...ImportOp if !options.IgnoreKeyCheck { // Translate row keys. if field.Keys() { - span.LogKV("row_keys", true) + span.LogKV("rowKeys", true) if len(req.RowIDs) != 0 { return errors.New("row ids cannot be used because field uses string keys") } @@ -1030,7 +1030,7 @@ func (api *API) Import(ctx context.Context, req *ImportRequest, opts ...ImportOp // Translate column keys. if index.Keys() { - span.LogKV("column_keys", true) + span.LogKV("columnKeys", true) if len(req.ColumnIDs) != 0 { return errors.New("column ids cannot be used because index uses string keys") } @@ -1138,7 +1138,7 @@ func (api *API) ImportValue(ctx context.Context, req *ImportValueRequest, opts . if !options.IgnoreKeyCheck { // Translate column keys. if index.Keys() { - span.LogKV("column_keys", true) + span.LogKV("columnKeys", true) if len(req.ColumnIDs) != 0 { return errors.New("column ids cannot be used because index uses string keys") } @@ -1152,7 +1152,7 @@ func (api *API) ImportValue(ctx context.Context, req *ImportValueRequest, opts . // the field has a ForeignIndex with keys). if field.Keys() { // Perform translation. - span.LogKV("row_keys", true) + span.LogKV("rowKeys", true) uints, err := api.cluster.translateIndexKeys(ctx, field.ForeignIndex(), req.StringValues) if err != nil { return err diff --git a/executor.go b/executor.go index b8147a64c..23c0835f6 100644 --- a/executor.go +++ b/executor.go @@ -1125,7 +1125,7 @@ func (e *executor) executePrecomputedCall(ctx context.Context, index string, c * // executeBitmapCall executes a call that returns a bitmap. func (e *executor) executeBitmapCall(ctx context.Context, index string, c *pql.Call, shards []uint64, opt *execOptions) (*Row, error) { span, ctx := tracing.StartSpanFromContext(ctx, "Executor.executeBitmapCall") - span.LogKV("pql_call_name", c.Name) + span.LogKV("pqlCallName", c.Name) defer span.Finish() indexTag := "index:" + index