You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Unexpected package name in our own package.json: ${packageJson.name}, will not transmit telemetry.distro.version. This warning can be safely ignored.`,
60
-
);
54
+
55
+
if(packageJson){
56
+
// Since we read the package.json from two possible relative paths, we are extra-careful to make sure we actually are
57
+
// reading from our own package.json file, hence the name check.
58
+
if(packageJson.name==='@dash0hq/opentelemetry'){
59
+
version=packageJson.version;
60
+
}else{
61
+
printDebugStderr(
62
+
`Unexpected package name in our own package.json: ${packageJson.name}, will not transmit telemetry.distro.version. This warning can be safely ignored.`,
`Unexpected package name in our own package.json: ${packageJson.name}, will not transmit telemetry.distro.version. This warning can be safely ignored.`,
60
-
);
54
+
55
+
if(packageJson){
56
+
// Since we read the package.json from two possible relative paths, we are extra-careful to make sure we actually are
57
+
// reading from our own package.json file, hence the name check.
58
+
if(packageJson.name==='@dash0hq/opentelemetry'){
59
+
version=packageJson.version;
60
+
}else{
61
+
printDebugStderr(
62
+
`Unexpected package name in our own package.json: ${packageJson.name}, will not transmit telemetry.distro.version. This warning can be safely ignored.`,
0 commit comments