File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/cubejs-api-gateway/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as stream from 'stream';
33import { assertNever } from 'assert-never' ;
44import jwt , { Algorithm as JWTAlgorithm } from 'jsonwebtoken' ;
55import R from 'ramda' ;
6+ import { v4 as uuidv4 } from 'uuid' ;
67import bodyParser from 'body-parser' ;
78import { graphqlHTTP } from 'express-graphql' ;
89import structuredClone from '@ungap/structured-clone' ;
@@ -1214,8 +1215,10 @@ class ApiGateway {
12141215
12151216 const queries : Query [ ] = Array . isArray ( query ) ? query : [ query ] ;
12161217
1218+ const queryRewriteId = uuidv4 ( ) ;
12171219 this . log ( {
12181220 type : 'Query Rewrite' ,
1221+ queryRewriteId,
12191222 query
12201223 } , context ) ;
12211224
@@ -1280,6 +1283,7 @@ class ApiGateway {
12801283
12811284 this . log ( {
12821285 type : 'Query Rewrite completed' ,
1286+ queryRewriteId,
12831287 normalizedQueries,
12841288 duration : new Date ( ) . getTime ( ) - startTime ,
12851289 query
You can’t perform that action at this time.
0 commit comments