-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@opentelemetry/auto-instrumentations-node@0.39.2 unit tests are failing #2324
Comments
@swaruparameshpajju can you provide some more detail about how this error came up? Is there a way we can reproduce this to understand what may need to be changed? |
Also it looks like you are using an older version; are you able to try the latest version to see if you still have trouble? |
Hi, need to use same version. can u suggest how to go ahead to resolve |
I agree with @JamieDanielson. You should try to update the package. Maybe I'm going to do a lot of assumptions. It would be good if you can confirm them.
Based on that the the somple
We see this log
and
I've checked out the same TAG > @opentelemetry/contrib-test-utils@0.34.1 compile
> tsc -p .
src/resource-assertions.ts:201:20 - error TS2339: Property 'NAME' does not exist on type '{ "telemetry.sdk.name": string; "process.runtime.name": string; "telemetry.sdk.language": string; "telemetry.sdk.version": string; }'.
201 name: SDK_INFO.NAME,
~~~~
src/resource-assertions.ts:202:24 - error TS2339: Property 'LANGUAGE' does not exist on type '{ "telemetry.sdk.name": string; "process.runtime.name": string; "telemetry.sdk.language": string; "telemetry.sdk.version": string; }'.
202 language: SDK_INFO.LANGUAGE,
~~~~~~~~
src/resource-assertions.ts:203:23 - error TS2339: Property 'VERSION' does not exist on type '{ "telemetry.sdk.name": string; "process.runtime.name": string; "telemetry.sdk.language": string; "telemetry.sdk.version": string; }'.
203 version: SDK_INFO.VERSION,
~~~~~~~ Problem here is that So the May I ask why exactly you need that version? And why do you have to build it by yourself since its already available in npm registry? |
What happened?
2024-07-10 10:40:58,968 [ INFO ] oos_automation.build.@opentelemetry/auto-instrumentations-node@0.39.2 | log_utils.py | 175 :: Environment
+----------------------+------------------------------------------------------------------------------------------------------+
| ENV | VALUE |
|----------------------+------------------------------------------------------------------------------------------------------|
| PACKAGE | @opentelemetry/auto-instrumentations-node@0.39.2 |
| LANGUAGE | node |
| FRAMEWORK | node |
| BUILD_CMD | npm run build |
| OS_NAME | Oracle Linux Server |
| OS_VERSION | 8.8 |
| COMPILER/INTERPRETER | node |
| PYTHON_VERSION | 3.9.6 |
| JAVA_VERSION | 1.8.0_382 |
| MAVEN_VERSION | 3.9.4 |
| GRADLE_VERSION | 8.2.1 |
| ANT_VERSION | 1.10.14 |
| NODE_VERSION | 16.20.2 |
| CPP_VERSION | 8.5.0 |
| GO_VERSION | go1.22.0 |
| CARGO_VERSION | 1.75.0 |
| HTTP_PROXY | www-proxy.us.oracle.com |
| HTTPS_PROXY | www-proxy.us.oracle.com |
| JAVA_HOME | /opt/jdk8u382-b05 |
| PATH | /opt/node-v16.20.2-linux-x64/bin:/opt/jdk8u382-b05/bin:/opt/apache-ant-1.10.14/bin:/opt/apache-maven |
| | -3.9.4/bin:/opt/gradle-8.2.1/bin:/opt/sbt/bin:/opt/python3.9/bin:/opt/node-v16.20.2-linux-x64/bin:/o |
| | pt/go1.22.0/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
+----------------------+------------------------------------------------------------------------------------------------------+
2024-07-10 10:40:58,968 [ DEBUG ] oos_automation.build.@opentelemetry/auto-instrumentations-node@0.39.2 | package.py | 679 :: Current dir: /builds/5G-Common/cnc-opensource/cnc-opensource-build
2024-07-10 10:40:58,968 [ INFO ] oos_automation.build.@opentelemetry/auto-instrumentations-node@0.39.2 | package.py | 831 :: Got some command in build cmds, executing it
2024-07-10 10:40:58,969 [ DEBUG ] oos_automation.build.@opentelemetry/auto-instrumentations-node@0.39.2 | cmd.py | 51 :: version='1', cmd_type='live', running command=npm run build, supress_exception=True
2024-07-10 10:40:58,976 [ INFO ] oos_automation.build.@opentelemetry/auto-instrumentations-node@0.39.2 | cmd.py | 62 :: Waiting for cmd out...
[10 10:40:59.505] | npm WARN config
_auth
,_authToken
,username
and_password
must be scoped to a registry. seenpm help npmrc
for more information.[10 10:40:59.529] | npm ERR! Missing script: "build"
[10 10:40:59.529] | npm ERR!
[10 10:40:59.529] | npm ERR! To see a list of scripts, run:
[10 10:40:59.529] | npm ERR! npm run
[10 10:40:59.531] |
[10 10:40:59.532] | npm ERR! A complete log of this run can be found in:
[10 10:40:59.532] | npm ERR! /root/.npm/_logs/2024-07-10T10_40_59_465Z-debug-0.log
OpenTelemetry Setup Code
No response
package.json
No response
Relevant log output
The text was updated successfully, but these errors were encountered: