dd-trace
Version:
Datadog APM tracing client for JavaScript
202 lines (200 loc) • 4.53 kB
JavaScript
'use strict'
module.exports = [
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'execution/execute.js',
},
functionQuery: {
functionName: 'execute',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'execution/execute.mjs',
},
functionQuery: {
functionName: 'execute',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/parser.js',
},
functionQuery: {
functionName: 'parse',
kind: 'Sync',
},
channelName: 'apm:graphql:parser',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/parser.mjs',
},
functionQuery: {
functionName: 'parse',
kind: 'Sync',
},
channelName: 'apm:graphql:parser',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'validation/validate.js',
},
functionQuery: {
functionName: 'validate',
kind: 'Sync',
},
channelName: 'apm:graphql:validate',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'validation/validate.mjs',
},
functionQuery: {
functionName: 'validate',
kind: 'Sync',
},
channelName: 'apm:graphql:validate',
},
// executeField / resolveField intentionally NOT instrumented here. Resolve spans
// are produced by wrapping user resolvers + the default field resolver at execute
// time (see packages/datadog-plugin-graphql/src/execute.js). That gives a zero-cost
// fast path when no subscribers are active, which per-field orchestrion hooks
// cannot offer (the publish is baked into graphql's compiled code).
{
module: {
name: '@graphql-tools/executor',
versionRange: '>=0.0.14',
filePath: 'cjs/execution/execute.js',
},
functionQuery: {
functionName: 'execute',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: '@graphql-tools/executor',
versionRange: '>=0.0.14',
filePath: 'esm/execution/execute.js',
},
functionQuery: {
functionName: 'execute',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: '@graphql-tools/executor',
versionRange: '>=0.0.14',
filePath: 'cjs/execution/normalizedExecutor.js',
},
functionQuery: {
functionName: 'normalizedExecutor',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: '@graphql-tools/executor',
versionRange: '>=0.0.14',
filePath: 'esm/execution/normalizedExecutor.js',
},
functionQuery: {
functionName: 'normalizedExecutor',
kind: 'Sync',
},
channelName: 'apm:graphql:execute',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/printer.js',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:printer:load',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/printer.mjs',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:printer:load',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/visitor.js',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:visitor:load',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'language/visitor.mjs',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:visitor:load',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'utilities/index.js',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:utilities:load',
},
{
module: {
name: 'graphql',
versionRange: '>=0.10',
filePath: 'utilities/index.mjs',
},
functionQuery: {
functionName: '__module_export__',
kind: 'Sync',
},
channelName: 'dd:graphql:utilities:load',
},
]