@nathapp/nestjs-observability 3.3.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +11 -11
  2. package/.eslintrc.js +0 -8
  3. package/.nax/features/nestjs-observability/.nax-acceptance.test.ts +0 -797
  4. package/.turbo/turbo-build.log +0 -4
  5. package/CHANGELOG.md +0 -15
  6. package/lib/constant/index.ts +0 -1
  7. package/lib/constant/observability.constants.ts +0 -21
  8. package/lib/index.ts +0 -17
  9. package/lib/interface/index.ts +0 -2
  10. package/lib/interface/observability-module-options.interface.ts +0 -47
  11. package/lib/interface/tracing-bootstrap-options.interface.ts +0 -17
  12. package/lib/metrics/http-metrics.interceptor.ts +0 -174
  13. package/lib/metrics/index.ts +0 -7
  14. package/lib/metrics/metrics.providers.ts +0 -134
  15. package/lib/module/index.ts +0 -1
  16. package/lib/module/observability.module.ts +0 -236
  17. package/lib/tracing/index.ts +0 -4
  18. package/lib/tracing/init-tracing.ts +0 -92
  19. package/lib/tracing/shutdown.ts +0 -28
  20. package/lib/tracing/trace-context.interceptor.ts +0 -42
  21. package/lib/tracing/trace-internal.ts +0 -19
  22. package/lib/tracing/trace.decorator.ts +0 -63
  23. package/lib/tracing/trace.service.ts +0 -48
  24. package/test/jest-nax.json +0 -27
  25. package/test/jest-test.json +0 -28
  26. package/test/metrics/http-metrics.interceptor.spec.ts +0 -453
  27. package/test/metrics/metrics.providers.spec.ts +0 -97
  28. package/test/module/observability.module.spec.ts +0 -229
  29. package/test/tracing/build-node-sdk.spec.ts +0 -224
  30. package/test/tracing/init-tracing.idempotency.spec.ts +0 -64
  31. package/test/tracing/init-tracing.shutdown.spec.ts +0 -88
  32. package/test/tracing/shutdown.spec.ts +0 -109
  33. package/test/tracing/trace-context.interceptor.spec.ts +0 -221
  34. package/test/tracing/trace.decorator.spec.ts +0 -153
  35. package/test/tracing/trace.service.spec.ts +0 -205
  36. package/tsconfig.json +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-observability",
3
- "version": "3.3.0",
3
+ "version": "4.0.1",
4
4
  "description": "First-party metrics (Prometheus) and distributed tracing (OpenTelemetry) for NestJS, joined to the nathapp correlation-id context",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "author": "William Khoo",
19
19
  "license": "ISC",
20
20
  "engines": {
21
- "node": ">=16"
21
+ "node": "^20.19.0 || >=22.12.0"
22
22
  },
23
23
  "dependencies": {
24
24
  "@opentelemetry/api": "^1.9.1",
@@ -32,26 +32,26 @@
32
32
  "prom-client": "^15.1.3"
33
33
  },
34
34
  "peerDependencies": {
35
- "@nathapp/nestjs-common": "^3.0.0",
36
- "@nathapp/nestjs-logging": "^3.0.0",
37
- "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
38
- "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
35
+ "@nathapp/nestjs-common": "^4.0.0-rc.0",
36
+ "@nathapp/nestjs-logging": "^4.0.0-rc.0",
37
+ "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
38
+ "@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
39
39
  "rxjs": "^7.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@nathapp/eslint-config": "1.0.1",
43
- "@nathapp/nestjs-common": "^3.3.0",
44
- "@nathapp/nestjs-logging": "^3.3.0",
43
+ "@nathapp/nestjs-common": "^4.0.1",
44
+ "@nathapp/nestjs-logging": "^4.0.1",
45
45
  "@nathapp/typescript-config": "1.0.1",
46
46
  "@nestjs/common": "^11.0.0",
47
47
  "@nestjs/core": "^11.0.0",
48
48
  "@nestjs/testing": "^11.0.0",
49
- "@types/jest": "^29.5.2",
49
+ "@types/jest": "^30.0.0",
50
50
  "eslint": "^8.57.0",
51
- "jest": "^29.5.0",
51
+ "jest": "^30.5.2",
52
52
  "reflect-metadata": "^0.1.13",
53
53
  "rxjs": "^7.8.0",
54
- "ts-jest": "^29.1.0",
54
+ "ts-jest": "^29.4.14",
55
55
  "typescript": "^5"
56
56
  },
57
57
  "directories": {
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ["@nathapp/eslint-config/library.js"],
4
- parser: "@typescript-eslint/parser",
5
- parserOptions: {
6
- project: true,
7
- },
8
- };