Skip to content

Commit

Permalink
must quote key as it might contain a period
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Feb 28, 2024
1 parent 2d99feb commit 6c52b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/spanstore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func buildQuery(config Config, query *spanstore.TraceQueryParameters) string {
}

for k, v := range query.Tags {
q.WriteString(fmt.Sprintf(" AND spans.kv.%s = '%s'", k, v))
q.WriteString(fmt.Sprintf(` AND spans.kv."%s" = '%s'`, k, v))
}

q.WriteString("\nGROUP BY trace_id\n")
Expand Down

0 comments on commit 6c52b5d

Please sign in to comment.