Coder Social home page Coder Social logo

lisk-newrelic's People

Contributors

2snem6 avatar diego-g avatar francoilol avatar karmacoma avatar maciejbaj avatar nazarhussain avatar shuse2 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lisk-newrelic's Issues

Update Node.js to version 10.15.3

Expected behavior

Use same Node.js version as Core, see LiskHQ/lisk-sdk#3124

Actual behavior

Node.js version 10.14.1 is set in package.json.

Steps to reproduce

Run npm install

Which version(s) does this affect? (Environment, OS, etc...)

0.1.0

Wrong API controllers path

Expected behavior

Instrumentation path for API Controllers should framework/src/modules/http_api/controllers

Actual behavior

API Controllers path is wrong and it's pointing to the old 1.5.0folder structure: api/controllers whereas now is framework/src/modules/http_api/controllers

Steps to reproduce

Which version(s) does this affect? (Environment, OS, etc...)

1.6

Archive me :(

As we decided to remove newrelic and we want to provide our own implementation of monitor a node for SDK.

Remove unused instrumentWeb method

Expected behavior

The interface instrumentWeb interface method should record HTTP activity http_api module with new structure.

Actual behavior

Due to file restructuring 1.6 this method is broken. It seems much better to remove that method from this repository and keep the module specific instrumentation inside respective modules. We must keep shared instruments still in here.

Wrapping preventing jobsQueue from detecting async functions

Expected behavior

I'm not sure how this should work, but probably it shouldn't modify existing behavior in such a way.

Actual behavior

It's wrapping functions passed to jobsQueue:

New job registered: broadcasterReleaseQueue, isAsync: false, type: function wrappedJob(cb) {
				newrelic.startBackgroundTransaction(name, 'jobQueue', () => {
					const transaction = newrelic.getTransaction();
					originalJob.call(this, () => {
						transaction.end();
						cb.call(this);
					});
				});
			}

so making this check to fail:
https://github.com/LiskHQ/lisk-sdk/blob/4ac6c58536c1b52883ed9c528bda1794b4fc1463/framework/src/modules/chain/helpers/jobs_queue.js#L68-L70

Steps to reproduce

Add:

console.log(`New job registered: ${name}, isAsync: ${util.types.isAsyncFunction(job)}, type: ${job}`);

here:
https://github.com/LiskHQ/lisk-sdk/blob/4ac6c58536c1b52883ed9c528bda1794b4fc1463/framework/src/modules/chain/helpers/jobs_queue.js#L48
Enable New Relic, run the node.

Which version(s) does this affect? (Environment, OS, etc...)

2.0.0-alpha.2

Please use LTS version of node

Expected behavior

Expect to be able to build lisk in an environment that has a policy of using LTS node versions.

Actual behavior

Unable to build.


npm info it worked if it ends with ok
--
  | npm info using [email protected]
  | npm info using [email protected]
  | npm info lifecycle [email protected]~preinstall: [email protected]
  | npm timing stage:loadCurrentTree Completed in 11ms
  | npm timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
  | npm timing stage:loadIdealTree:loadShrinkwrap Completed in 1010ms
  | npm http fetch GET 200 https://registry.npmjs.org/axios  521ms
  | npm http fetch GET 200 https://registry.npmjs.org/is-buffer  36ms
  | npm info lifecycle [email protected]~prepack: [email protected]
  | npm info lifecycle [email protected]~postpack: [email protected]
  | npm timing stage:rollbackFailedOptional Completed in 0ms
  | npm timing stage:runTopLevelLifecycles Completed in 4567ms
  | npm ERR! code ENOTSUP
  | npm ERR! notsup Unsupported engine for [email protected]: wanted: {"node":"10.15.3","npm":"6.4.1"} (current: {"node":"10.16.0","npm":"6.9.0"})
  | npm ERR! notsup Not compatible with your version of node/npm: [email protected]
  | npm ERR! notsup Not compatible with your version of node/npm: [email protected]
  | npm ERR! notsup Required: {"node":"10.15.3","npm":"6.4.1"}
  | npm ERR! notsup Actual:   {"npm":"6.9.0","node":"10.16.0"}
  | npm timing npm Completed in 5421ms


Steps to reproduce

Try building with a where a LTS version is required, eg, using node s2i ( eg https://github.com/nodeshift/centos7-s2i-nodejs or https://github.com/sclorg/s2i-nodejs-container/tree/master/10) .

I have the same issue in the Lisq-core project (see LiskHQ/lisk-core#79).

Questions

I can see that newrelic-lisk is used at https://github.com/LiskHQ/lisk-sdk/blob/942d320795d13cf0ad83e33d8e78c07357ae8700/framework/src/modules/chain/utils/newrelic_lisk.js#L20 but cannot see where, in which package.json file this module is specified.

  • How does it get loaded into the project?
  • Which project uses lisk-newrelic?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.