Skip to content
Serverless monitoring and troubleshooting plugin to easily apply distributed tracing
JavaScript Shell
Branch: master
Clone or download
Latest commit d249e17 Sep 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci ci: added codecov (#6) Jul 31, 2019
scripts fix(ci): update config Jul 30, 2019
src fix: add missing 'return' to Python boilerplate Aug 18, 2019
.editorconfig style: set up linting and fixed linting errors Jul 9, 2019
.eslintignore style: set up linting and fixed linting errors Jul 9, 2019
.eslintrc.json style: set up linting and fixed linting errors Jul 9, 2019
.gitignore feat: add support for python Jul 17, 2019
LICENSE Feature/RD-928 : add README (#4) Jul 30, 2019
README.md docs: update python Sep 4, 2019
commitlint.config.js style: set up linting and fixed linting errors Jul 9, 2019
jest.config.js style: set up linting and fixed linting errors Jul 9, 2019
package-lock.json
package.json ci: added codecov (#6) Jul 31, 2019

README.md

serverless-lumigo

serverless version License codecov

Serverless framework plugin to auto-install the Lumigo tracer for Node.js and Python functions.

TOC

Install

Run npm install in your Serverless project.

$ npm install --save-dev serverless-lumigo

Add the plugin to your serverless.yml file

plugins:
  - serverless-lumigo

Node.js functions

For Node.js functions, the plugin would install the latest version of the Lumigo tracer for Node.js during serverless package and serverless deploy. It would also wrap your functions as well, so you only need to configure your Lumigo token in a custom section inside the serverless.yml.

For example:

provider:
  name: aws
  runtime: nodejs10.x

custom:
  lumigo:
    token: <YOUR TOKEN GOES HERE>

Python functions

For Python functions, we recommend using the serverless-python-requirements plugin to help you manage your dependencies. You should have the following in your requirements.txt:

lumigo_tracer

This installs the Lumigo tracer for Python, and this plugin would wrap your functions during serverless package and serverless deploy.

You also need to configure the Lumigo token in a custom section in the serverless.yml.

provider:
  name: aws
  runtime: python3.7
custom:
  lumigo:
    token: <YOUR TOKEN GOES HERE>
You can’t perform that action at this time.