File tree 3 files changed +7
-83
lines changed
autoinstrumentation/nodejs
3 files changed +7
-83
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,7 @@ FROM busybox
21
21
COPY --from=build /operator-build/build/workspace /autoinstrumentation
22
22
23
23
RUN chmod -R go+r /autoinstrumentation
24
+
25
+ # Backward compatibility with old operator version
26
+ RUN cp -r /autoinstrumentation/node_modules/@opentelemetry/auto-instrumentations-node/build/src/. /autoinstrumentation
27
+ RUN ln /autoinstrumentation/register.js /autoinstrumentation/autoinstrumentation.js
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"clean" : " rimraf build/*" ,
7
- "prepare" : " npm run compile" ,
8
- "compile" : " tsc -p ." ,
9
- "postcompile" : " copyfiles -f 'build/src/**' build/workspace/ && copyfiles 'node_modules/**' package.json build/workspace/ && npm -C build/workspace prune --omit=dev --no-package-lock"
7
+ "postinstall" : " copyfiles -f 'build/src/**' build/workspace/ && copyfiles 'node_modules/**' package.json build/workspace/ && npm -C build/workspace prune --omit=dev --no-package-lock"
10
8
},
11
9
"devDependencies" : {
12
10
"copyfiles" : " ^2.4.1" ,
13
11
"rimraf" : " ^6.0.1" ,
14
12
"typescript" : " ^5.6.3"
15
13
},
16
14
"dependencies" : {
17
- "@opentelemetry/exporter-metrics-otlp-grpc" : " 0.55.0" ,
18
- "@opentelemetry/auto-instrumentations-node" : " 0.53.0" ,
19
- "@opentelemetry/exporter-prometheus" : " 0.55.0"
15
+ "@opentelemetry/api" : " 1.9.0" ,
16
+ "@opentelemetry/auto-instrumentations-node" : " 0.56.0"
20
17
}
21
18
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments