File tree Expand file tree Collapse file tree
src/instrumentation/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -699,11 +699,11 @@ export class FirestoreInstrumentation extends TdInstrumentationBase {
699699 if ( self . mode === TuskDriftMode . REPLAY ) {
700700 return handleReplayMode ( {
701701 noOpRequestHandler : ( ) => {
702- if ( ! this . originalCollectionDocFn ) {
702+ if ( ! self . originalCollectionDocFn ) {
703703 logger . error ( `[FirestoreInstrumentation] Original doc function not available` ) ;
704704 return Promise . reject ( new Error ( "Original doc function not available" ) ) ;
705705 }
706- return this . originalCollectionDocFn . call ( this , "" ) ;
706+ return self . originalCollectionDocFn . call ( this ) ;
707707 } ,
708708 isServerRequest : false ,
709709 replayModeHandler : ( ) => {
Original file line number Diff line number Diff line change @@ -215,7 +215,11 @@ export class RedisInstrumentation extends TdInstrumentationBase {
215215
216216 return handleReplayMode ( {
217217 noOpRequestHandler : ( ) => {
218- return undefined ;
218+ const upperCmd = commandName . toUpperCase ( ) ;
219+ if ( upperCmd === "EVAL" || upperCmd === "EVALSHA" ) {
220+ return [ ] ;
221+ }
222+ return null ;
219223 } ,
220224 isServerRequest : false ,
221225 replayModeHandler : ( ) => {
@@ -418,7 +422,13 @@ export class RedisInstrumentation extends TdInstrumentationBase {
418422 const stackTrace = captureStackTrace ( [ "RedisInstrumentation" ] ) ;
419423
420424 return handleReplayMode ( {
421- noOpRequestHandler : ( ) => undefined ,
425+ noOpRequestHandler : ( ) => {
426+ const upperCmd = commandName . toUpperCase ( ) ;
427+ if ( upperCmd === "EVAL" || upperCmd === "EVALSHA" ) {
428+ return [ ] ;
429+ }
430+ return null ;
431+ } ,
422432 isServerRequest : false ,
423433 replayModeHandler : ( ) => {
424434 return SpanUtils . createAndExecuteSpan (
You can’t perform that action at this time.
0 commit comments