Skip to content
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

help - problems updating opencensus #282

Open
DavidProf opened this issue Sep 18, 2021 · 0 comments
Open

help - problems updating opencensus #282

DavidProf opened this issue Sep 18, 2021 · 0 comments

Comments

@DavidProf
Copy link

DavidProf commented Sep 18, 2021

I was trying to deal with the issue #274 and the issue from pm2 Unitech/pm2#5134, that are related with the opencensus.

I forked this repo then started to update opencensus package and fix the errors, but I'm having some problems running the tests, (maybe I'm dumb, who knows). At first the problems were just typings so it was pretty easy to fix, but now

image

logs as text

[debug] "2021-09-18T19:03:56.976Z"  'starting to notify listeners the end of spans'
      1) should create multiple child spans for GET requests


  21 passing (246ms)
  1 failing

  1) HttpPlugin
       patchOutgoingRequest()
         should create multiple child spans for GET requests:

      AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

5 !== 0

      + expected - actual

      -5
      +0

      at Object.<anonymous> (src/census/plugins/__tests__/http.spec.ts:249:16)
      at Generator.next (<anonymous>)
      at fulfilled (node_modules/tslib/tslib.js:104:62)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)



npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pm2/io@5.0.0 unit: `npm run build && bash test.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pm2/io@5.0.0 unit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/david/.npm/_logs/2021-09-18T19_03_57_002Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pm2/io@5.0.0 test: `npm run unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pm2/io@5.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/david/.npm/_logs/2021-09-18T19_03_57_021Z-debug.log

I'm not that close with this project, so I lack in knowledge about how it works, I tried to run the tests with node 12, 14 & 16.
I tried to run with the project before the changes, but still got some errors, I am tired right now, so I came to ask for help.

My fork pm2-io-apm

@DavidProf DavidProf changed the title help - problems update opencensus help - problems updating opencensus Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant