Merge pull request #247 from specklesystems/dim/hotfixes

hotfix(server): theoretically filters out subs from telemetry
This commit is contained in:
Dimitrie Stefanescu
2021-05-17 14:51:28 +01:00
committed by GitHub
+5 -1
View File
@@ -17,7 +17,11 @@ module.exports = {
} )
try {
apolloHelper( `${ctx.operation.operation} ${ctx.operation.selectionSet.selections[0].name.value}` )
// console.log( ctx.operation.operation )
// Filter out subscription ops
if ( !ctx.operation.operation.toLowerCase().includes( 'subscription' ) ) {
apolloHelper( `${ctx.operation.operation} ${ctx.operation.selectionSet.selections[0].name.value}` )
}
} catch ( e ) {
Sentry.captureException( e )
}