Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lumigo/microservices-node-tracer

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumigo/microservices-node-tracer

Lumigo wrapper to trace distributed architecture

  • 1.0.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

@lumigo/microservices-node-tracer :stars:

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.

FAQs

Package last updated on 25 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc