newrelic
Version:
New Relic agent
27 lines (23 loc) • 1.1 kB
JavaScript
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const InstrumentationDescriptor = require('./instrumentation-descriptor')
// Return a new copy of this array every time we're called
module.exports = function instrumentations() {
return {
'@azure/functions': { type: InstrumentationDescriptor.TYPE_GENERIC },
'@hapi/hapi': { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK },
'@hapi/vision': { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK },
'@prisma/client': { type: InstrumentationDescriptor.TYPE_DATASTORE },
'aws-sdk': { module: './instrumentation/aws-sdk' },
connect: { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK },
fastify: { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK },
kafkajs: { type: InstrumentationDescriptor.TYPE_MESSAGE },
koa: { module: './instrumentation/koa' },
mongodb: { type: InstrumentationDescriptor.TYPE_DATASTORE },
next: { module: './instrumentation/nextjs' },
restify: { type: InstrumentationDescriptor.TYPE_WEB_FRAMEWORK }
}
}