Skip to content

Commit fc8f9a2

Browse files
committed
test: test
1 parent 8e92dfa commit fc8f9a2

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
},
5858
"homepage": "https://github.com/instana/nodejs/blob/main/packages/core/README.md",
5959
"dependencies": {
60-
"@opentelemetry/api": "1.9.0",
6160
"@opentelemetry/context-async-hooks": "1.25.0",
6261
"@opentelemetry/instrumentation-fs": "0.26.0",
6362
"@opentelemetry/instrumentation-oracledb": "0.32.0",
@@ -76,5 +75,8 @@
7675
},
7776
"overrides": {
7877
"debug": "^4.4.3"
78+
},
79+
"peerDependencies": {
80+
"@opentelemetry/api": ">=1.3.0 <1.10.0"
7981
}
8082
}

packages/core/src/tracing/opentelemetry-instrumentations/fs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
'use strict';
66

77
// NOTE: otel fs instrumentation does not capture the file name currently
8-
module.exports.init = cls => {
8+
module.exports.init = ({ cls, api }) => {
99
const constants = require('../constants');
10-
const api = require('./opentelemetry-api');
1110
const { NonRecordingSpan } = require('./files/NonRecordingSpan');
1211
const { FsInstrumentation } = require('@opentelemetry/instrumentation-fs');
1312

packages/core/src/tracing/opentelemetry-instrumentations/wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports.init = (_config, cls) => {
3535
Object.keys(instrumentations).forEach(k => {
3636
const value = instrumentations[k];
3737
const instrumentation = require(`./${value.name}`);
38-
instrumentation.init(cls);
38+
instrumentation.init({ cls: cls, api: api });
3939
value.module = instrumentation;
4040
});
4141

0 commit comments

Comments
 (0)