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 d16f350 commit 2713ee9Copy full SHA for 2713ee9
lib/instrumentation/index.js
@@ -291,7 +291,7 @@ Instrumentation.prototype._startHook = function () {
291
if (!isHandlingLambda && basedir) {
292
pkg = path.join(basedir, 'package.json')
293
try {
294
- version = JSON.parse(fs.readFileSync(pkg)).version
+ version = JSON.parse(fs.readFileSync(pkg, 'utf8')).version
295
} catch (e) {
296
self._agent.logger.debug('could not shim %s module: %s', name, e.message)
297
return exports
0 commit comments