forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnr-hooks.js
34 lines (32 loc) · 1.02 KB
/
nr-hooks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright 2024 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const toolsInstrumentation = require('./tools')
const cbManagerInstrumentation = require('./callback-manager')
const runnableInstrumentation = require('./runnable')
const vectorstoreInstrumentation = require('./vectorstore')
const InstrumentationDescriptor = require('../../instrumentation-descriptor')
module.exports = [
{
type: InstrumentationDescriptor.TYPE_GENERIC,
moduleName: '@langchain/core/tools',
onRequire: toolsInstrumentation
},
{
type: InstrumentationDescriptor.TYPE_GENERIC,
moduleName: '@langchain/core/dist/callbacks/manager',
onRequire: cbManagerInstrumentation
},
{
type: InstrumentationDescriptor.TYPE_GENERIC,
moduleName: '@langchain/core/dist/runnables/base',
onRequire: runnableInstrumentation
},
{
type: InstrumentationDescriptor.TYPE_GENERIC,
moduleName: '@langchain/core/vectorstores',
onRequire: vectorstoreInstrumentation
}
]