newrelic
Version:
New Relic agent
60 lines (56 loc) • 1.49 kB
JavaScript
/*
* Copyright 2026 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const agentRunAsync = {
path: './google-adk/agent-run-async.js',
instrumentations: [
{
channelName: 'nr_agentRunAsync',
module: { name: '@google/adk', versionRange: '>=1.1.0', filePath: 'dist/cjs/agents/base_agent.js' },
functionQuery: {
className: 'BaseAgent',
methodName: 'runAsync',
kind: 'Async'
}
},
{
channelName: 'nr_agentRunAsync',
module: { name: '@google/adk', versionRange: '>=1.1.0', filePath: 'dist/esm/agents/base_agent.js' },
functionQuery: {
className: 'BaseAgent',
methodName: 'runAsync',
kind: 'Async'
}
}
]
}
const toolRunAsync = {
path: './google-adk/tool-run-async.js',
instrumentations: [
{
channelName: 'nr_toolRunAsync',
module: { name: '@google/adk', versionRange: '>=1.1.0', filePath: 'dist/cjs/tools/function_tool.js' },
functionQuery: {
className: 'FunctionTool',
methodName: 'runAsync',
kind: 'Async'
}
},
{
channelName: 'nr_toolRunAsync',
module: { name: '@google/adk', versionRange: '>=1.1.0', filePath: 'dist/esm/tools/function_tool.js' },
functionQuery: {
className: 'FunctionTool',
methodName: 'runAsync',
kind: 'Async'
}
}
]
}
module.exports = {
'@google/adk': [
agentRunAsync,
toolRunAsync
]
}