We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2080b1f commit ee81429Copy full SHA for ee81429
index.js
@@ -40,7 +40,7 @@ if (require.cache.__NR_cache) {
40
}
41
42
function initApi({ agent, apiPath }) {
43
- const API = require(apiPath)
+ const API = require(`./${apiPath}`)
44
45
const api = new API(agent)
46
require.cache.__NR_cache = module.exports = api
@@ -115,7 +115,7 @@ function initialize() {
115
/* eslint-enable no-console */
116
117
118
- const api = agent ? initApi({ agent, apiPath: './api' }) : initApi({ apiPath: './stub_api' })
+ const api = agent ? initApi({ agent, apiPath: 'api' }) : initApi({ apiPath: 'stub_api' })
119
120
// If we loaded an agent, record a startup time for the agent.
121
// NOTE: Metrics are recorded in seconds, so divide the value by 1000.
0 commit comments