@backendkit-labs/observability 0.1.0

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.
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@backendkit-labs/observability",
3
+ "version": "0.1.0",
4
+ "description": "Structured logging, metrics, correlation ID propagation, and exception handling for NestJS — no OTel SDK required",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": ["dist", "README.md", "LICENSE"],
17
+ "scripts": {
18
+ "build": "tsup",
19
+ "dev": "tsup --watch",
20
+ "test": "vitest run",
21
+ "test:watch": "vitest",
22
+ "test:coverage": "vitest run --coverage",
23
+ "typecheck": "tsc --noEmit",
24
+ "lint": "eslint src/",
25
+ "prepublishOnly": "npm run build && npm run test && npm run lint"
26
+ },
27
+ "keywords": [
28
+ "observability", "logging", "metrics", "correlation-id", "nestjs",
29
+ "winston", "opentelemetry", "tracing", "structured-logging", "node"
30
+ ],
31
+ "author": "Mairon José Cuello Martínez",
32
+ "license": "MIT",
33
+ "homepage": "https://github.com/backendkit-dev/backendkit-monorepo/tree/master/packages/observability#readme",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/backendkit-dev/backendkit-monorepo.git",
37
+ "directory": "packages/observability"
38
+ },
39
+ "bugs": { "url": "https://github.com/backendkit-dev/backendkit-monorepo/issues" },
40
+ "sideEffects": false,
41
+ "engines": { "node": ">=18" },
42
+ "dependencies": {
43
+ "@backendkit-labs/circuit-breaker": "*",
44
+ "axios": "^1.7.0",
45
+ "winston": "^3.11.0",
46
+ "winston-transport": "^4.7.0"
47
+ },
48
+ "peerDependencies": {
49
+ "@nestjs/common": ">=10.0.0",
50
+ "@nestjs/core": ">=10.0.0",
51
+ "@opentelemetry/api": ">=1.0.0",
52
+ "rxjs": ">=7.0.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "@opentelemetry/api": { "optional": true }
56
+ },
57
+ "devDependencies": {
58
+ "@eslint/js": "^9.39.4",
59
+ "@nestjs/common": "^10.0.0",
60
+ "@nestjs/core": "^10.0.0",
61
+ "@opentelemetry/api": "^1.9.0",
62
+ "@types/express": "^4.17.21",
63
+ "@types/node": "^22.0.0",
64
+ "eslint": "^9.0.0",
65
+ "reflect-metadata": "^0.2.0",
66
+ "rxjs": "^7.8.0",
67
+ "tsup": "^8.0.0",
68
+ "typescript": "^5.5.0",
69
+ "typescript-eslint": "^8.59.3",
70
+ "vitest": "^2.0.0"
71
+ }
72
+ }