@atrim/instrument-node 1.0.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/README.md +30 -0
- package/package.json +130 -0
- package/target/dist/index.cjs +1133 -0
- package/target/dist/index.cjs.map +1 -0
- package/target/dist/index.d.cts +548 -0
- package/target/dist/index.d.ts +548 -0
- package/target/dist/index.js +1095 -0
- package/target/dist/index.js.map +1 -0
- package/target/dist/integrations/effect/index.cjs +705 -0
- package/target/dist/integrations/effect/index.cjs.map +1 -0
- package/target/dist/integrations/effect/index.js +669 -0
- package/target/dist/integrations/effect/index.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @atrim/instrument-node
|
|
2
|
+
|
|
3
|
+
OpenTelemetry instrumentation for Node.js with centralized YAML configuration.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @atrim/instrument-node
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { initializeInstrumentation } from '@atrim/instrument-node'
|
|
13
|
+
|
|
14
|
+
// Zero-config initialization
|
|
15
|
+
await initializeInstrumentation()
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Documentation
|
|
19
|
+
|
|
20
|
+
Full documentation is available in the [main repository](https://github.com/atrim-ai/instrumentation):
|
|
21
|
+
|
|
22
|
+
- 📖 [Getting Started](../../docs/getting-started.md)
|
|
23
|
+
- ⚙️ [Configuration](../../docs/configuration.md)
|
|
24
|
+
- 📋 [Examples](../../docs/EXAMPLES.md)
|
|
25
|
+
- 🔧 [Troubleshooting](../../docs/TROUBLESHOOTING.md)
|
|
26
|
+
- 📚 [API Reference](../../docs/api-reference.md)
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT © Atrim AI
|
package/package.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atrim/instrument-node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenTelemetry instrumentation for Node.js with centralized YAML configuration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Atrim AI",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/atrim-ai/instrumentation.git",
|
|
11
|
+
"directory": "packages/node"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/atrim-ai/instrumentation/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/atrim-ai/instrumentation#readme",
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"opentelemetry",
|
|
22
|
+
"instrumentation",
|
|
23
|
+
"tracing",
|
|
24
|
+
"observability",
|
|
25
|
+
"nodejs",
|
|
26
|
+
"bun",
|
|
27
|
+
"deno",
|
|
28
|
+
"effect",
|
|
29
|
+
"express",
|
|
30
|
+
"fastify"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=20.0.0",
|
|
34
|
+
"bun": ">=1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./target/dist/index.d.ts",
|
|
39
|
+
"import": "./target/dist/index.js",
|
|
40
|
+
"require": "./target/dist/index.cjs"
|
|
41
|
+
},
|
|
42
|
+
"./effect": {
|
|
43
|
+
"types": "./target/dist/integrations/effect/index.d.ts",
|
|
44
|
+
"import": "./target/dist/integrations/effect/index.js",
|
|
45
|
+
"require": "./target/dist/integrations/effect/index.cjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"main": "./target/dist/index.js",
|
|
49
|
+
"module": "./target/dist/index.js",
|
|
50
|
+
"types": "./target/dist/index.d.ts",
|
|
51
|
+
"files": [
|
|
52
|
+
"target/dist",
|
|
53
|
+
"README.md",
|
|
54
|
+
"LICENSE"
|
|
55
|
+
],
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsup",
|
|
58
|
+
"dev": "tsup --watch",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"test:integration": "OTEL_BSP_SCHEDULE_DELAY=500 vitest run --config vitest.integration.config.ts",
|
|
63
|
+
"test:all": "pnpm test && pnpm test:integration",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"lint": "eslint src",
|
|
66
|
+
"lint:fix": "eslint src --fix",
|
|
67
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
68
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
69
|
+
"clean": "rm -rf target",
|
|
70
|
+
"publish:dev:version": "npm version $(git describe --tags --abbrev=0 | sed 's/^v//')-$(git rev-parse --short HEAD)-$(date -u +%Y%m%d%H%M%S) --no-git-tag-version",
|
|
71
|
+
"publish:dev:save": "node -p \"require('./package.json').version\" > .version",
|
|
72
|
+
"publish:dev:publish": "pnpm build && npm publish --tag dev --access public",
|
|
73
|
+
"publish:dev:reset": "npm version 1.0.0 --no-git-tag-version",
|
|
74
|
+
"publish:dev": "pnpm publish:dev:version && pnpm publish:dev:save && pnpm publish:dev:publish && pnpm publish:dev:reset"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@opentelemetry/auto-instrumentations-node": "^0.67.0",
|
|
78
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.208.0",
|
|
79
|
+
"@opentelemetry/instrumentation": "^0.208.0",
|
|
80
|
+
"@opentelemetry/sdk-node": "^0.208.0",
|
|
81
|
+
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
82
|
+
"effect": "^3.19.0",
|
|
83
|
+
"yaml": "^2.3.0",
|
|
84
|
+
"zod": "^3.22.0"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@atrim/instrument-core": "workspace:*",
|
|
88
|
+
"@effect/opentelemetry": "^0.59.0",
|
|
89
|
+
"@effect/platform": "^0.93.0",
|
|
90
|
+
"@opentelemetry/api": "^1.9.0",
|
|
91
|
+
"@opentelemetry/resources": "^2.2.0",
|
|
92
|
+
"@opentelemetry/sdk-logs": "^0.208.0",
|
|
93
|
+
"@opentelemetry/sdk-metrics": "^2.2.0",
|
|
94
|
+
"@opentelemetry/sdk-trace-node": "^2.2.0",
|
|
95
|
+
"@opentelemetry/sdk-trace-web": "^2.2.0",
|
|
96
|
+
"@opentelemetry/semantic-conventions": "^1.38.0",
|
|
97
|
+
"@types/node": "^20.10.0",
|
|
98
|
+
"@vitest/coverage-v8": "^4.0.8",
|
|
99
|
+
"effect": "^3.19.0",
|
|
100
|
+
"testcontainers": "^11.8.1",
|
|
101
|
+
"tsup": "^8.0.1",
|
|
102
|
+
"tsx": "^4.7.0",
|
|
103
|
+
"typescript": "^5.7.2",
|
|
104
|
+
"vitest": "^4.0.8"
|
|
105
|
+
},
|
|
106
|
+
"peerDependencies": {
|
|
107
|
+
"@effect/opentelemetry": ">=0.40.0",
|
|
108
|
+
"@effect/platform": ">=0.70.0",
|
|
109
|
+
"@opentelemetry/api": "^1.0.0",
|
|
110
|
+
"@opentelemetry/sdk-trace-base": "^1.0.0",
|
|
111
|
+
"effect": "^3.0.0"
|
|
112
|
+
},
|
|
113
|
+
"peerDependenciesMeta": {
|
|
114
|
+
"@opentelemetry/api": {
|
|
115
|
+
"optional": false
|
|
116
|
+
},
|
|
117
|
+
"@opentelemetry/sdk-trace-base": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"effect": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"@effect/opentelemetry": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"@effect/platform": {
|
|
127
|
+
"optional": true
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|