@opentelemetry/instrumentation-mongodb

v0.38.0
OpenTelemetry mongodb automatic instrumentation package.
mongodb nodejs opentelemetry plugin profiling tracing

tdd

npm run test -- --watch-extensions ts --watch

lint

eslint . --ext .ts

test

npm run test-v3

clean

rimraf build/*

watch

tsc -w

compile

tsc -p .

test-v3

nyc ts-mocha -p tsconfig.json --require '@opentelemetry/contrib-test-utils' 'test/**/mongodb-v3.test.ts'

test-v4

nyc ts-mocha -p tsconfig.json --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v4.test.ts'

lint:fix

eslint . --ext .ts --fix

prewatch

npm run precompile

precompile

tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-mongodb --include-dependencies

test-v5-v6

nyc ts-mocha -p tsconfig.json --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v5-v6.test.ts'

docker:start

docker run -e MONGODB_DB=opentelemetry-tests -e MONGODB_PORT=27017 -e MONGODB_HOST=127.0.0.1 -p 27017:27017 --rm mongo

prepublishOnly

npm run compile

version:update

node ../../../scripts/version-update.js

compile:examples

cd examples && npm run compile

test-all-versions

tav
npm i @opentelemetry/[email protected]

Metadata

Downloads