-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
91 lines (91 loc) · 3.36 KB
/
Copy pathpackage.json
File metadata and controls
91 lines (91 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "@agentage/observability",
"version": "0.11.0",
"description": "Shared observability kit for agentage services: OTLP trace bootstrap (node --import), pino logger preset with trace correlation, one-call error capture, and the estate /health envelope.",
"type": "module",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/agentage/observability.git"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=22.13"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./bootstrap": {
"types": "./dist/bootstrap.d.ts",
"import": "./dist/bootstrap.js"
},
"./next": {
"types": "./dist/next.d.ts",
"import": "./dist/next.js"
},
"./health": {
"types": "./dist/health.d.ts",
"import": "./dist/health.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.build.json",
"type-check": "tsc --noEmit",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "vitest run",
"verify": "npm run type-check && npm run lint && npm run format:check && npm run test && npm run build && npm run smoke:dist",
"prepublishOnly": "npm run verify",
"smoke:dist": "node --input-type=module -e \"const k = await import('./dist/index.js'); if (typeof k.resolveTracingConfig !== 'function' || typeof k.createLogger !== 'function' || typeof k.captureError !== 'function' || k.logger !== k.createLogger) process.exit(1); const h = await import('./dist/health.js'); if (h.healthEnvelope('smoke').data.service !== 'smoke' || typeof h.createHealthHandler !== 'function' || typeof h.staticHealthJson !== 'function' || typeof h.health !== 'function' || h.nodeHealth !== h.createHealthHandler || h.staticHealth !== h.staticHealthJson) process.exit(1); await import('./dist/bootstrap.js'); console.log('dist smoke ok');\"",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@opentelemetry/api": "1.9.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
"@opentelemetry/instrumentation": "^0.221.0",
"@opentelemetry/instrumentation-amqplib": "^0.68.0",
"@opentelemetry/instrumentation-express": "^0.69.0",
"@opentelemetry/instrumentation-http": "^0.221.0",
"@opentelemetry/instrumentation-mongodb": "^0.74.0",
"@opentelemetry/instrumentation-pg": "^0.73.0",
"@opentelemetry/instrumentation-redis": "^0.69.0",
"@opentelemetry/instrumentation-undici": "^0.31.0",
"@opentelemetry/resources": "2.10.0",
"@opentelemetry/sdk-node": "^0.221.0",
"@opentelemetry/sdk-trace-base": "^2.2.0",
"@opentelemetry/semantic-conventions": "^1.43.0",
"pino": "^10.3.1"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^24.0.0",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@typescript-eslint/parser": "^8.46.4",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"prettier": "^3.6.2",
"typescript": "^5.9.3",
"vitest": "^4.0.18",
"@vercel/otel": "^2.1.3"
},
"peerDependencies": {
"@vercel/otel": ">=2"
},
"peerDependenciesMeta": {
"@vercel/otel": {
"optional": true
}
}
}