{"ast":null,"code":"import { _optionalChain } from '@sentry/utils/esm/buildPolyfills';\nimport { loadModule, logger, fill, isThenable } from '@sentry/utils';\n\n/** Tracing integration for graphql package */\nclass GraphQL {\n constructor() {\n GraphQL.prototype.__init.call(this);\n }\n /**\n * @inheritDoc\n */\n static __initStatic() {\n this.id = 'GraphQL';\n }\n\n /**\n * @inheritDoc\n */\n __init() {\n this.name = GraphQL.id;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(_, getCurrentHub) {\n var pkg = loadModule('graphql/execution/execute.js');\n if (!pkg) {\n logger.error('GraphQL Integration was unable to require graphql/execution package.');\n return;\n }\n fill(pkg, 'execute', function (orig) {\n return function (...args) {\n var scope = getCurrentHub().getScope();\n var parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]);\n var span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({\n description: 'execute',\n op: 'db.graphql'\n })]);\n _optionalChain([scope, 'optionalAccess', _6 => _6.setSpan, 'call', _7 => _7(span)]);\n var rv = orig.call(this, ...args);\n if (isThenable(rv)) {\n return rv.then(res => {\n _optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]);\n _optionalChain([scope, 'optionalAccess', _10 => _10.setSpan, 'call', _11 => _11(parentSpan)]);\n return res;\n });\n }\n _optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]);\n _optionalChain([scope, 'optionalAccess', _14 => _14.setSpan, 'call', _15 => _15(parentSpan)]);\n return rv;\n };\n });\n }\n}\nGraphQL.__initStatic();\nexport { GraphQL };","map":{"version":3,"names":["_optionalChain","loadModule","logger","fill","isThenable","GraphQL","constructor","prototype","__init","call","__initStatic","id","name","setupOnce","_","getCurrentHub","pkg","error","orig","args","scope","getScope","parentSpan","_2","getSpan","_3","span","_4","startChild","_5","description","op","_6","setSpan","_7","rv","then","res","_8","finish","_9","_10","_11","_12","_13","_14","_15"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/integrations/node/graphql.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils/esm/buildPolyfills';\nimport { loadModule, logger, fill, isThenable } from '@sentry/utils';\n\n/** Tracing integration for graphql package */\nclass GraphQL {constructor() { GraphQL.prototype.__init.call(this); }\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'GraphQL';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = GraphQL.id;}\n\n /**\n * @inheritDoc\n */\n setupOnce(_, getCurrentHub) {\n var pkg = loadModule\n\n('graphql/execution/execute.js');\n\n if (!pkg) {\n logger.error('GraphQL Integration was unable to require graphql/execution package.');\n return;\n }\n\n fill(pkg, 'execute', function (orig) {\n return function ( ...args) {\n var scope = getCurrentHub().getScope();\n var parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]);\n\n var span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({\n description: 'execute',\n op: 'db.graphql',\n })]);\n\n _optionalChain([scope, 'optionalAccess', _6 => _6.setSpan, 'call', _7 => _7(span)]);\n\n var rv = orig.call(this, ...args);\n\n if (isThenable(rv)) {\n return rv.then((res) => {\n _optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]);\n _optionalChain([scope, 'optionalAccess', _10 => _10.setSpan, 'call', _11 => _11(parentSpan)]);\n\n return res;\n });\n }\n\n _optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]);\n _optionalChain([scope, 'optionalAccess', _14 => _14.setSpan, 'call', _15 => _15(parentSpan)]);\n return rv;\n };\n });\n }\n}GraphQL.__initStatic();\n\nexport { GraphQL };\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,kCAAkC;AACjE,SAASC,UAAU,EAAEC,MAAM,EAAEC,IAAI,EAAEC,UAAU,QAAQ,eAAe;;AAEpE;AACA,MAAMC,OAAO,CAAE;EAACC,WA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