This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@lumigo/microservices-node-tracer
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

@lumigo/microservices-node-tracer 🌠

CircleCI semantic-release

This is @lumigo/microservices-node-tracer, Lumigo's Node.js agent for microservices distributed tracing and performance monitoring.

Supported NodeJS runtimes: 12.x, 14.x

Instrumenting Lumigo:

To configure Lumigo in your microservice:

  • First, install the @lumigo/microservices-node-tracer package using your preferred package manager:
$ npm i @lumigo/microservices-node-tracer

Instrumenting Lumigo programmatically:

  • Import “lumigo_warpper” in the first row of the file (to avoid conflicts):
// javascript
const lumigoWrapper = require("@lumigo/microservices-node-tracer");
  • To initiate the tracing call the trace method (note: replace YOUR-TOKEN-HERE with your Lumigo API token). You can retrieve the token by going to Settings -> Tracing -> Manual tracing:

  • Replace YOUR-SERVICE-NAME with some logical name (eg. todo-app)

lumigoWrapper.trace(‘YOUR-TOKEN-HERE’,‘YOUR-SERVICE-NAME’);

Instrumenting Lumigo as part of npm package.json start script:

"scripts":{
"start": "export LUMIGO_TOKEN=‘YOUR-TOKEN-HERE’ && export LUMIGO_SERVICE_NAME=‘YOUR-SERVICE-NAME’ && node -r @lumigo/microservices-node-tracer app.js"
}
  • Finally: Re-deploy your app.

Configuration

@lumigo/microservices-node-tracer offers several different configuration options. Pass these to the microservice as environment variables:

  • LUMIGO_DEBUG=TRUE - Enables debug logging
  • LUMIGO_SWITCH_OFF=TRUE - In the event a critical issue arises, this turns off all actions that Lumigo takes in response to your code.

Readme

Keywords

none

Package Sidebar

Install

npm i @lumigo/microservices-node-tracer

Weekly Downloads

1

Version

1.0.16

License

none

Unpacked Size

171 kB

Total Files

44

Last publish

Collaborators

  • moshe-shaham
  • mosesguy
  • lumigo-dev
  • doriaviram-lumigo