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';
3
3
import { assertNever } from 'assert-never' ;
4
4
import jwt , { Algorithm as JWTAlgorithm } from 'jsonwebtoken' ;
5
5
import R from 'ramda' ;
6
+ import { v4 as uuidv4 } from 'uuid' ;
6
7
import bodyParser from 'body-parser' ;
7
8
import { graphqlHTTP } from 'express-graphql' ;
8
9
import structuredClone from '@ungap/structured-clone' ;
@@ -1214,8 +1215,10 @@ class ApiGateway {
1214
1215
1215
1216
const queries : Query [ ] = Array . isArray ( query ) ? query : [ query ] ;
1216
1217
1218
+ const queryRewriteId = uuidv4 ( ) ;
1217
1219
this . log ( {
1218
1220
type : 'Query Rewrite' ,
1221
+ queryRewriteId,
1219
1222
query
1220
1223
} , context ) ;
1221
1224
@@ -1280,6 +1283,7 @@ class ApiGateway {
1280
1283
1281
1284
this . log ( {
1282
1285
type : 'Query Rewrite completed' ,
1286
+ queryRewriteId,
1283
1287
normalizedQueries,
1284
1288
duration : new Date ( ) . getTime ( ) - startTime ,
1285
1289
query
You can’t perform that action at this time.
0 commit comments