@chatlayer/tracer v2.0.0
@chatlayer/tracer
Node.js APM Tracer
APM tracing client for Node.js. Adapted from the Datadog tracer to be compatible with the opentelemtry tracing api.
Requirements
Since this project supports multiple Node versions, using a version manager such as nvm is recommended.
We use yarn for its workspace functionality, so make sure to install that as well.
To get started once you have Node and yarn installed, run:
$ yarnTesting
Before running the tests, the data stores need to be running. The easiest way to start all of them is to use the provided docker-compose configuration:
$ docker-compose up -d -V --remove-orphans --force-recreateUnit Tests
To run the unit tests, use:
$ yarn testTo run the unit tests continuously in watch mode while developing, use:
$ yarn tddMemory Leaks
To run the memory leak tests, use:
$ yarn leakPlease note that memory leak tests only run on Node >=8.
Linting
We use ESLint to make sure that new code is conform to our coding standards.
To run the linter, use:
$ yarn lintBenchmarks
When two or more approaches must be compared, please write a benchmark
in the benchmark/index.js module so that we can keep track of the
most efficient algorithm. To run your benchmark, just:
$ yarn bench4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago