Skip to content

Commit 692a58a

Browse files
authored
chore(data-service): add maxTimeMS to aggregationCursor log (#5932)
1 parent d672409 commit 692a58a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/data-service/src/data-service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,8 +1717,12 @@ class DataServiceImpl extends WithLogContext implements DataService {
17171717
return coll.dropSearchIndex(name);
17181718
}
17191719

1720-
@op(mongoLogId(1_001_000_041), ([ns, pipeline]) => {
1721-
return { ns, stages: pipeline.map((stage) => Object.keys(stage)[0]) };
1720+
@op(mongoLogId(1_001_000_041), ([ns, pipeline, options]) => {
1721+
return {
1722+
ns,
1723+
stages: pipeline.map((stage) => Object.keys(stage)[0]),
1724+
maxTimeMS: options?.maxTimeMS,
1725+
};
17221726
})
17231727
aggregateCursor(
17241728
ns: string,

0 commit comments

Comments
 (0)