@vymalo/opencode-otel 0.12.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/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/config.d.ts +27 -0
- package/dist/config.js +224 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/instruments.d.ts +29 -0
- package/dist/instruments.js +102 -0
- package/dist/instruments.js.map +1 -0
- package/dist/lib.d.ts +8 -0
- package/dist/lib.js +8 -0
- package/dist/lib.js.map +1 -0
- package/dist/logging.d.ts +16 -0
- package/dist/logging.js +72 -0
- package/dist/logging.js.map +1 -0
- package/dist/opencode.d.ts +23 -0
- package/dist/opencode.js +141 -0
- package/dist/opencode.js.map +1 -0
- package/dist/propagation.d.ts +22 -0
- package/dist/propagation.js +55 -0
- package/dist/propagation.js.map +1 -0
- package/dist/providers.d.ts +55 -0
- package/dist/providers.js +179 -0
- package/dist/providers.js.map +1 -0
- package/dist/recorder.d.ts +85 -0
- package/dist/recorder.js +546 -0
- package/dist/recorder.js.map +1 -0
- package/dist/types.d.ts +76 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +81 -0
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vymalo/opencode-otel",
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "OpenTelemetry plugin for OpenCode: exports developer interactions as OTLP traces, metrics and logs — real USD cost, all five token types (including cache read/write and reasoning), tool results, permission decisions, API errors and lines of code. Configurable from opencode.json or standard OTEL_* environment variables.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "vymalo contributors",
|
|
7
|
+
"homepage": "https://github.com/ADORSYS-GIS/lightbridge-opencode-toolbeit#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/ADORSYS-GIS/lightbridge-opencode-toolbeit.git",
|
|
11
|
+
"directory": "packages/opencode-otel"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ADORSYS-GIS/lightbridge-opencode-toolbeit/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"opencode",
|
|
18
|
+
"opencode-plugin",
|
|
19
|
+
"opentelemetry",
|
|
20
|
+
"otel",
|
|
21
|
+
"otlp",
|
|
22
|
+
"observability",
|
|
23
|
+
"telemetry",
|
|
24
|
+
"tracing",
|
|
25
|
+
"metrics",
|
|
26
|
+
"cost-tracking",
|
|
27
|
+
"gen-ai",
|
|
28
|
+
"llm"
|
|
29
|
+
],
|
|
30
|
+
"type": "module",
|
|
31
|
+
"main": "dist/index.js",
|
|
32
|
+
"types": "dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./lib": {
|
|
39
|
+
"types": "./dist/lib.d.ts",
|
|
40
|
+
"import": "./dist/lib.js"
|
|
41
|
+
},
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=22"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@opencode-ai/plugin": "1.15.10",
|
|
56
|
+
"@opentelemetry/api": "^1.9.1",
|
|
57
|
+
"@opentelemetry/api-logs": "^0.221.0",
|
|
58
|
+
"@opentelemetry/core": "^2.10.0",
|
|
59
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.221.0",
|
|
60
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.221.0",
|
|
61
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.221.0",
|
|
62
|
+
"@opentelemetry/resources": "^2.10.0",
|
|
63
|
+
"@opentelemetry/sdk-logs": "^0.221.0",
|
|
64
|
+
"@opentelemetry/sdk-metrics": "^2.10.0",
|
|
65
|
+
"@opentelemetry/sdk-trace": "^2.10.0",
|
|
66
|
+
"@opentelemetry/semantic-conventions": "^1.43.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"vite": "^8.0.14",
|
|
70
|
+
"vitest": "^4.1.7"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsc -p tsconfig.json",
|
|
74
|
+
"lint": "biome lint .",
|
|
75
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
76
|
+
"test": "vitest run",
|
|
77
|
+
"coverage": "vitest run --coverage",
|
|
78
|
+
"format": "biome format --write .",
|
|
79
|
+
"format:check": "biome format ."
|
|
80
|
+
}
|
|
81
|
+
}
|