UNPKG

nestjs-otel

Version:
99 lines (98 loc) 2.63 kB
{ "name": "nestjs-otel", "version": "7.0.0", "description": "NestJS OpenTelemetry Library", "main": "lib/index.js", "typings": "lib/index", "engines": { "node": ">= 20" }, "scripts": { "prebuild": "rimraf lib", "build": "tsc", "lint": "prettier --check ./**/*.{js,json,ts}", "format": "prettier --write ./**/*.{js,json,ts}", "test": "npm run test:unit && npm run test:e2e", "test:coverage": "jest --coverage", "test:unit": "jest", "test:watch": "jest --watch", "test:e2e": "jest --config ./tests/jest-e2e.json --runInBand --forceExit", "test:e2e:watch": "jest --config ./tests/jest-e2e.json --runInBand --watch", "prepare": "husky" }, "repository": { "type": "git", "url": "git+https://github.com/pragmaticivan/nestjs-otel.git" }, "keywords": [ "nestjs", "opentelemetry", "otel", "tracing", "observability" ], "author": "pragmaticivan@gmail.com", "license": "Apache-2.0", "bugs": { "url": "https://github.com/pragmaticivan/nestjs-otel/issues" }, "homepage": "https://github.com/pragmaticivan/nestjs-otel#readme", "dependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/host-metrics": "^0.36.0", "response-time": "^2.3.3" }, "devDependencies": { "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@nestjs/common": "^11.1.1", "@nestjs/core": "^11.1.1", "@nestjs/platform-express": "^11.1.1", "@nestjs/platform-fastify": "^11.1.1", "@nestjs/testing": "^11.1.1", "@opentelemetry/exporter-prometheus": "^0.201.1", "@opentelemetry/sdk-metrics": "^2.0.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "@types/jest": "^29.5.14", "@types/node": "^22.15.18", "@types/response-time": "^2.3.8", "@types/supertest": "^6.0.3", "husky": "^9.1.7", "jest": "^29.7.0", "lint-staged": "^16.0.0", "prettier": "^3.5.3", "reflect-metadata": "^0.2.2", "rimraf": "^6.0.1", "rxjs": "^7.8.2", "supertest": "^7.1.1", "ts-jest": "^29.3.3", "typescript": "5.8.3" }, "peerDependencies": { "@nestjs/common": ">= 11 < 12", "@nestjs/core": ">= 11 < 12" }, "jest": { "moduleFileExtensions": [ "js", "json", "ts", "node" ], "rootDir": "./src", "reporters": [ "default" ], "testRegex": ".spec.ts$", "transform": { "^.+\\.(t|j)s$": "ts-jest" }, "coverageDirectory": "./test-results/coverage", "testEnvironment": "node" }, "lint-staged": { "**/*.{js,ts,json}": [ "prettier --write" ] } }