From 1600cfb138d34c287586e4da93091e44acf5ca5d Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Fri, 4 Dec 2020 06:37:43 -0800 Subject: [PATCH 1/2] remove aggregate in favor of comment --- packages/tracing/src/integrations/mongo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tracing/src/integrations/mongo.ts b/packages/tracing/src/integrations/mongo.ts index 7870631a2948..6924c093db0f 100644 --- a/packages/tracing/src/integrations/mongo.ts +++ b/packages/tracing/src/integrations/mongo.ts @@ -47,7 +47,7 @@ const OPERATIONS = [ const OPERATION_SIGNATURES: { [op in Operation]?: string[]; } = { - aggregate: ['pipeline'], + // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well bulkWrite: ['operations'], countDocuments: ['query'], createIndex: ['fieldOrSpec'], From 64f8ffdd45a39076d93df715df5f8a7cc9e1973e Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Fri, 4 Dec 2020 06:59:27 -0800 Subject: [PATCH 2/2] add link to PR --- packages/tracing/src/integrations/mongo.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tracing/src/integrations/mongo.ts b/packages/tracing/src/integrations/mongo.ts index 6924c093db0f..adf07c19d6ae 100644 --- a/packages/tracing/src/integrations/mongo.ts +++ b/packages/tracing/src/integrations/mongo.ts @@ -48,6 +48,7 @@ const OPERATION_SIGNATURES: { [op in Operation]?: string[]; } = { // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well + // see https://github.com/getsentry/sentry-javascript/pull/3102 bulkWrite: ['operations'], countDocuments: ['query'], createIndex: ['fieldOrSpec'],