Skip to content

Commit b90dfd6

Browse files
authored
fix(mongo): Remove aggregate from operations whose arguments get serialized (#3102)
The arguments don't serialize well, because they're too nested/complex, and also potentially quite large. See PR for examples.
1 parent 1ab3b04 commit b90dfd6

File tree

1 file changed

+2
-1
lines changed
  • packages/tracing/src/integrations

1 file changed

+2
-1
lines changed

packages/tracing/src/integrations/mongo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const OPERATIONS = [
4747
const OPERATION_SIGNATURES: {
4848
[op in Operation]?: string[];
4949
} = {
50-
aggregate: ['pipeline'],
50+
// aggregate intentionally not included because `pipeline` arguments are too complex to serialize well
51+
// see https://github.com/getsentry/sentry-javascript/pull/3102
5152
bulkWrite: ['operations'],
5253
countDocuments: ['query'],
5354
createIndex: ['fieldOrSpec'],

0 commit comments

Comments
 (0)