@zintrust/trace 0.4.75 → 0.4.76
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/dist/build-manifest.json +171 -163
- package/dist/dashboard/routes.js +4 -4
- package/dist/index.js +25 -25
- package/dist/migrations/{20260331000001_create_zin_debugger_entries_table.d.ts → 20260331000001_create_zin_trace_entries_table.d.ts} +2 -2
- package/dist/migrations/{20260331000001_create_zin_debugger_entries_table.js → 20260331000001_create_zin_trace_entries_table.js} +4 -4
- package/dist/migrations/{20260331000002_create_zin_debugger_entries_tags_table.d.ts → 20260331000002_create_zin_trace_entries_tags_table.d.ts} +2 -2
- package/dist/migrations/{20260331000002_create_zin_debugger_entries_tags_table.js → 20260331000002_create_zin_trace_entries_tags_table.js} +5 -5
- package/dist/migrations/{20260331000003_create_zin_debugger_monitoring_table.d.ts → 20260331000003_create_zin_trace_monitoring_table.d.ts} +2 -2
- package/dist/migrations/{20260331000003_create_zin_debugger_monitoring_table.js → 20260331000003_create_zin_trace_monitoring_table.js} +4 -4
- package/dist/migrations/index.d.ts +3 -3
- package/dist/migrations/index.js +3 -3
- package/dist/register.js +23 -23
- package/dist/storage/DebuggerStorage.js +1 -1
- package/dist/storage/TraceStorage.js +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/ui.js +1 -1
- package/dist/utils/authTag.js +1 -1
- package/dist/utils/requestFilter.js +1 -1
- package/dist/watchers/AuthWatcher.js +3 -3
- package/dist/watchers/BatchWatcher.js +3 -3
- package/dist/watchers/CacheWatcher.js +5 -5
- package/dist/watchers/CommandWatcher.js +4 -4
- package/dist/watchers/DumpWatcher.js +3 -3
- package/dist/watchers/EventWatcher.js +4 -4
- package/dist/watchers/ExceptionWatcher.js +6 -6
- package/dist/watchers/GateWatcher.js +3 -3
- package/dist/watchers/HttpClientWatcher.js +5 -5
- package/dist/watchers/HttpWatcher.js +5 -5
- package/dist/watchers/JobWatcher.js +4 -4
- package/dist/watchers/LogWatcher.js +4 -4
- package/dist/watchers/MailWatcher.js +3 -3
- package/dist/watchers/MiddlewareWatcher.js +3 -3
- package/dist/watchers/ModelWatcher.js +3 -3
- package/dist/watchers/NotificationWatcher.js +4 -4
- package/dist/watchers/QueryWatcher.js +5 -5
- package/dist/watchers/RedisWatcher.js +4 -4
- package/dist/watchers/ScheduleWatcher.js +3 -3
- package/dist/watchers/ViewWatcher.js +3 -3
- package/package.json +2 -2
package/dist/build-manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@zintrust/
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"buildDate": "2026-04-
|
|
2
|
+
"name": "@zintrust/trace",
|
|
3
|
+
"version": "0.4.75",
|
|
4
|
+
"buildDate": "2026-04-07T17:29:43.050Z",
|
|
5
5
|
"buildEnvironment": {
|
|
6
|
-
"node": "
|
|
6
|
+
"node": "v25.6.1",
|
|
7
7
|
"platform": "darwin",
|
|
8
8
|
"arch": "arm64"
|
|
9
9
|
},
|
|
10
10
|
"git": {
|
|
11
|
-
"commit": "
|
|
11
|
+
"commit": "29c16e36",
|
|
12
12
|
"branch": "release"
|
|
13
13
|
},
|
|
14
14
|
"package": {
|
|
@@ -22,152 +22,160 @@
|
|
|
22
22
|
},
|
|
23
23
|
"files": {
|
|
24
24
|
"build-manifest.json": {
|
|
25
|
-
"size":
|
|
26
|
-
"sha256": "
|
|
25
|
+
"size": 12606,
|
|
26
|
+
"sha256": "3014938fc1038e55af4fee3be217c1bc269119354e32a89d7e5c5bfcdbd327a4"
|
|
27
27
|
},
|
|
28
28
|
"cli-register.d.ts": {
|
|
29
|
-
"size":
|
|
30
|
-
"sha256": "
|
|
29
|
+
"size": 255,
|
|
30
|
+
"sha256": "da8d689fe5ef32e97e755f28017e4d3cb1aa63489073a71907ea41ad5761ede9"
|
|
31
31
|
},
|
|
32
32
|
"cli-register.js": {
|
|
33
|
-
"size":
|
|
34
|
-
"sha256": "
|
|
33
|
+
"size": 1123,
|
|
34
|
+
"sha256": "c6de87d0a73df7ac66e18ecdc6f758b2652ec3abe9698e43620cf41135b33e4b"
|
|
35
35
|
},
|
|
36
36
|
"config.d.ts": {
|
|
37
|
-
"size":
|
|
38
|
-
"sha256": "
|
|
37
|
+
"size": 372,
|
|
38
|
+
"sha256": "e5ab491ec7f04a89fb13f9c89a410d9f0c49f1c1f081a9754747527c8c97dcd0"
|
|
39
39
|
},
|
|
40
40
|
"config.js": {
|
|
41
|
-
"size":
|
|
42
|
-
"sha256": "
|
|
41
|
+
"size": 1227,
|
|
42
|
+
"sha256": "4cafd0b6eb1218131fbf2abc7d053a863c31eb0a32055f8e97b4d4818d546caf"
|
|
43
43
|
},
|
|
44
44
|
"context.d.ts": {
|
|
45
|
-
"size":
|
|
46
|
-
"sha256": "
|
|
45
|
+
"size": 596,
|
|
46
|
+
"sha256": "4b8dade537b29dae3942d02c22e535f3b1ba1f0f6142e3a74203d4fa962a412b"
|
|
47
47
|
},
|
|
48
48
|
"context.js": {
|
|
49
|
-
"size":
|
|
50
|
-
"sha256": "
|
|
49
|
+
"size": 2520,
|
|
50
|
+
"sha256": "00a82a58e18fb33934f449a9fb379a2f90023570ceed1676eae0aed59b02ddeb"
|
|
51
51
|
},
|
|
52
52
|
"dashboard/handlers.d.ts": {
|
|
53
|
-
"size":
|
|
54
|
-
"sha256": "
|
|
53
|
+
"size": 993,
|
|
54
|
+
"sha256": "430f5b294d960e13e2ec39ed5c22f6655f85c46c2de9455c222505c67298ec6a"
|
|
55
55
|
},
|
|
56
56
|
"dashboard/handlers.js": {
|
|
57
|
-
"size":
|
|
58
|
-
"sha256": "
|
|
57
|
+
"size": 5390,
|
|
58
|
+
"sha256": "a8644a932c2da07231098f9adc31cfca00727b448524107ce23ad87a239f53f3"
|
|
59
59
|
},
|
|
60
60
|
"dashboard/routes.d.ts": {
|
|
61
|
-
"size":
|
|
62
|
-
"sha256": "
|
|
61
|
+
"size": 997,
|
|
62
|
+
"sha256": "0ac87bc54e57978e8a9ac5924d248e1f984927bb6c819ea5528ab1179b0b50b8"
|
|
63
63
|
},
|
|
64
64
|
"dashboard/routes.js": {
|
|
65
|
-
"size":
|
|
66
|
-
"sha256": "
|
|
65
|
+
"size": 2491,
|
|
66
|
+
"sha256": "c82eac2dc0edeb2dcbe02d7a63b13c275c57a6afc751c5573c08ad9839dacd8c"
|
|
67
67
|
},
|
|
68
68
|
"dashboard/ui.d.ts": {
|
|
69
69
|
"size": 117,
|
|
70
70
|
"sha256": "4862b41e0477f01afa0dbb446d4553b65c22ed774cd1e2db3489059ced392f94"
|
|
71
71
|
},
|
|
72
72
|
"dashboard/ui.js": {
|
|
73
|
-
"size":
|
|
74
|
-
"sha256": "
|
|
73
|
+
"size": 60952,
|
|
74
|
+
"sha256": "e23e82d187f834bfe270f89926cc9411e0745ddac50a96b048084ca333ece862"
|
|
75
75
|
},
|
|
76
76
|
"index.d.ts": {
|
|
77
|
-
"size":
|
|
78
|
-
"sha256": "
|
|
77
|
+
"size": 2227,
|
|
78
|
+
"sha256": "c0c856fbfdea4b500129e82674634970bb687adbfc1e88833a17996ce49522df"
|
|
79
79
|
},
|
|
80
80
|
"index.js": {
|
|
81
|
-
"size":
|
|
82
|
-
"sha256": "
|
|
81
|
+
"size": 2978,
|
|
82
|
+
"sha256": "d8304fc1d431fce445a3c2aed2635effbcae124299790a5999079ab86a885aaa"
|
|
83
83
|
},
|
|
84
|
-
"migrations/
|
|
85
|
-
"size":
|
|
86
|
-
"sha256": "
|
|
84
|
+
"migrations/20260331000001_create_zin_trace_entries_table.d.ts": {
|
|
85
|
+
"size": 304,
|
|
86
|
+
"sha256": "7d99b4d7c02855d6e68ad87e39dffff5fec83a406bdf2414665c23ba3ce8711d"
|
|
87
87
|
},
|
|
88
|
-
"migrations/
|
|
89
|
-
"size":
|
|
90
|
-
"sha256": "
|
|
88
|
+
"migrations/20260331000001_create_zin_trace_entries_table.js": {
|
|
89
|
+
"size": 952,
|
|
90
|
+
"sha256": "fa4065ba8fafbbf4294ad8f0e2fa51c923e39ac9ee4e91e17f6c4e686687bb1b"
|
|
91
91
|
},
|
|
92
|
-
"migrations/
|
|
93
|
-
"size":
|
|
94
|
-
"sha256": "
|
|
92
|
+
"migrations/20260331000002_create_zin_trace_entries_tags_table.d.ts": {
|
|
93
|
+
"size": 304,
|
|
94
|
+
"sha256": "6d07c135b0fa34acbda2f7f0788e4db657b00ba7c7459e2b203c8ded9c55b9dc"
|
|
95
95
|
},
|
|
96
|
-
"migrations/
|
|
97
|
-
"size":
|
|
98
|
-
"sha256": "
|
|
96
|
+
"migrations/20260331000002_create_zin_trace_entries_tags_table.js": {
|
|
97
|
+
"size": 737,
|
|
98
|
+
"sha256": "614280fc7f3a5826c3e8334e2a38d707b562217fb68a660aff0d9a6c072f7b2a"
|
|
99
99
|
},
|
|
100
|
-
"migrations/
|
|
101
|
-
"size":
|
|
102
|
-
"sha256": "
|
|
100
|
+
"migrations/20260331000003_create_zin_trace_monitoring_table.d.ts": {
|
|
101
|
+
"size": 308,
|
|
102
|
+
"sha256": "019e84f70cedf363eaf85a115d935abed841627b4a31d7fa34131352d402187a"
|
|
103
103
|
},
|
|
104
|
-
"migrations/
|
|
105
|
-
"size":
|
|
106
|
-
"sha256": "
|
|
104
|
+
"migrations/20260331000003_create_zin_trace_monitoring_table.js": {
|
|
105
|
+
"size": 522,
|
|
106
|
+
"sha256": "dd80ea1fdfe6ea7f57330b2dff530d97ee8054081436f41bbf234b814cb1df19"
|
|
107
107
|
},
|
|
108
108
|
"migrations/index.d.ts": {
|
|
109
|
-
"size":
|
|
110
|
-
"sha256": "
|
|
109
|
+
"size": 280,
|
|
110
|
+
"sha256": "0ba7bc9421754ff489f6947463c13e7e9c80558eb6611a818f3baab3b518a502"
|
|
111
111
|
},
|
|
112
112
|
"migrations/index.js": {
|
|
113
|
-
"size":
|
|
114
|
-
"sha256": "
|
|
113
|
+
"size": 386,
|
|
114
|
+
"sha256": "9c6729e47f61ec3e7678678ee44926ffd4dbb7d47017ea2b25f063346ffdd04f"
|
|
115
115
|
},
|
|
116
116
|
"plugin.d.ts": {
|
|
117
117
|
"size": 16,
|
|
118
118
|
"sha256": "71d366165dd36f1675aa253a76262b226fb6c62e5ab632746b8aea61c0c625fc"
|
|
119
119
|
},
|
|
120
120
|
"plugin.js": {
|
|
121
|
-
"size":
|
|
122
|
-
"sha256": "
|
|
121
|
+
"size": 128,
|
|
122
|
+
"sha256": "2d05bec517f57634276220b8a946125059fe0e320c42295b4f5a985431bb3d1c"
|
|
123
123
|
},
|
|
124
124
|
"register.d.ts": {
|
|
125
125
|
"size": 16,
|
|
126
126
|
"sha256": "71d366165dd36f1675aa253a76262b226fb6c62e5ab632746b8aea61c0c625fc"
|
|
127
127
|
},
|
|
128
128
|
"register.js": {
|
|
129
|
-
"size":
|
|
130
|
-
"sha256": "
|
|
129
|
+
"size": 6594,
|
|
130
|
+
"sha256": "52569e73b6b6a441e8aa816ec01b343c09976fab4e8daf0680db5a92f1a343e4"
|
|
131
131
|
},
|
|
132
132
|
"storage/DebuggerStorage.d.ts": {
|
|
133
|
-
"size":
|
|
134
|
-
"sha256": "
|
|
133
|
+
"size": 517,
|
|
134
|
+
"sha256": "c9c215aaa414f7b0c1fec6c82b054fc52bdf97af58f96f35c7f96672fb859c31"
|
|
135
135
|
},
|
|
136
136
|
"storage/DebuggerStorage.js": {
|
|
137
|
-
"size":
|
|
138
|
-
"sha256": "
|
|
137
|
+
"size": 7442,
|
|
138
|
+
"sha256": "5ecce0fcfcf695df587a7b90a7a5c7efd2e64ad13c9f2d104b392f89f34f0dc4"
|
|
139
|
+
},
|
|
140
|
+
"storage/TraceStorage.d.ts": {
|
|
141
|
+
"size": 517,
|
|
142
|
+
"sha256": "c9c215aaa414f7b0c1fec6c82b054fc52bdf97af58f96f35c7f96672fb859c31"
|
|
143
|
+
},
|
|
144
|
+
"storage/TraceStorage.js": {
|
|
145
|
+
"size": 7442,
|
|
146
|
+
"sha256": "5ecce0fcfcf695df587a7b90a7a5c7efd2e64ad13c9f2d104b392f89f34f0dc4"
|
|
139
147
|
},
|
|
140
148
|
"storage/index.d.ts": {
|
|
141
|
-
"size":
|
|
142
|
-
"sha256": "
|
|
149
|
+
"size": 100,
|
|
150
|
+
"sha256": "1f2c1529bd5fa9c7a026695e4a8b184973b80d149afc778a8d86bcd03cbe093c"
|
|
143
151
|
},
|
|
144
152
|
"storage/index.js": {
|
|
145
|
-
"size":
|
|
146
|
-
"sha256": "
|
|
153
|
+
"size": 50,
|
|
154
|
+
"sha256": "d916e8e3abb1b1087f6b184851b0e6265e53380d7857b008e745d566aad15d44"
|
|
147
155
|
},
|
|
148
156
|
"types.d.ts": {
|
|
149
|
-
"size":
|
|
150
|
-
"sha256": "
|
|
157
|
+
"size": 6938,
|
|
158
|
+
"sha256": "562c69ecad5866c46f6889145e2fe93d4a0dbb2eb37397cb91a06d99a3fa93c0"
|
|
151
159
|
},
|
|
152
160
|
"types.js": {
|
|
153
|
-
"size":
|
|
154
|
-
"sha256": "
|
|
161
|
+
"size": 696,
|
|
162
|
+
"sha256": "1cc1b7f7ff4760e6b4ccd642f6aa2f35453c4f40e6a360c3a525304729407836"
|
|
155
163
|
},
|
|
156
164
|
"ui.d.ts": {
|
|
157
|
-
"size":
|
|
158
|
-
"sha256": "
|
|
165
|
+
"size": 382,
|
|
166
|
+
"sha256": "d8b33d77c1c6ccd82e140db83a1bf57edb4d62c03cd15360c2c2d70bd2b392ee"
|
|
159
167
|
},
|
|
160
168
|
"ui.js": {
|
|
161
|
-
"size":
|
|
162
|
-
"sha256": "
|
|
169
|
+
"size": 285,
|
|
170
|
+
"sha256": "3a3cef493f0b9789a7198da620fd7e72ea2377fed3eba25572bb0d222155a446"
|
|
163
171
|
},
|
|
164
172
|
"utils/authTag.d.ts": {
|
|
165
173
|
"size": 150,
|
|
166
174
|
"sha256": "db7ed89155df453650ad2805d8cd7069a70b14eacac2d97c4b0bebd45df4bdd4"
|
|
167
175
|
},
|
|
168
176
|
"utils/authTag.js": {
|
|
169
|
-
"size":
|
|
170
|
-
"sha256": "
|
|
177
|
+
"size": 534,
|
|
178
|
+
"sha256": "0c506812967c17548162ce0f28d96089b023865883ee8cfd0824a94084580afb"
|
|
171
179
|
},
|
|
172
180
|
"utils/familyHash.d.ts": {
|
|
173
181
|
"size": 60,
|
|
@@ -178,20 +186,20 @@
|
|
|
178
186
|
"sha256": "f60526423e69fa5c461b0f5d8dac90b1f0c18149609cd1109226f1c8d985f223"
|
|
179
187
|
},
|
|
180
188
|
"utils/redact.d.ts": {
|
|
181
|
-
"size":
|
|
182
|
-
"sha256": "
|
|
189
|
+
"size": 366,
|
|
190
|
+
"sha256": "7fa4b2a84023d0851aa3e8769cb7689180a4f7bbbcdc85c27c9dd4e36510b1b5"
|
|
183
191
|
},
|
|
184
192
|
"utils/redact.js": {
|
|
185
|
-
"size":
|
|
186
|
-
"sha256": "
|
|
193
|
+
"size": 1623,
|
|
194
|
+
"sha256": "88feb439d34ce10ed8aa15e942fbd7627ff15eb1844ad7774779452987a30ad8"
|
|
187
195
|
},
|
|
188
196
|
"utils/requestFilter.d.ts": {
|
|
189
197
|
"size": 195,
|
|
190
198
|
"sha256": "467f6ed959bd25731649b4afc6d555d316c4724f9586e0bd922881af41ba6746"
|
|
191
199
|
},
|
|
192
200
|
"utils/requestFilter.js": {
|
|
193
|
-
"size":
|
|
194
|
-
"sha256": "
|
|
201
|
+
"size": 1020,
|
|
202
|
+
"sha256": "6432c94a0c9330a22a15c8ff81caaad177400f67f4aac1dc3de2155504bee852"
|
|
195
203
|
},
|
|
196
204
|
"utils/stackFrame.d.ts": {
|
|
197
205
|
"size": 149,
|
|
@@ -202,164 +210,164 @@
|
|
|
202
210
|
"sha256": "ca651d04eaea48a240ec7c5714a0f8f1d92f2fcdaa6e735df0009b56de8c29ed"
|
|
203
211
|
},
|
|
204
212
|
"watchers/AuthWatcher.d.ts": {
|
|
205
|
-
"size":
|
|
206
|
-
"sha256": "
|
|
213
|
+
"size": 225,
|
|
214
|
+
"sha256": "b062850fa3edd3d58bb293025b1dfc5491e39807b3ab3e4cc1c1aaa31316a7a3"
|
|
207
215
|
},
|
|
208
216
|
"watchers/AuthWatcher.js": {
|
|
209
|
-
"size":
|
|
210
|
-
"sha256": "
|
|
217
|
+
"size": 1326,
|
|
218
|
+
"sha256": "11a963deaf2b879a229d71af0bebc9d5b8be9bb094fb3c30e1676d5895c77845"
|
|
211
219
|
},
|
|
212
220
|
"watchers/BatchWatcher.d.ts": {
|
|
213
|
-
"size":
|
|
214
|
-
"sha256": "
|
|
221
|
+
"size": 277,
|
|
222
|
+
"sha256": "b1870a793f2dc7ed22705c8a2a6b6f970fa1bcd0229dbf12f185323b35f3bdcf"
|
|
215
223
|
},
|
|
216
224
|
"watchers/BatchWatcher.js": {
|
|
217
|
-
"size":
|
|
218
|
-
"sha256": "
|
|
225
|
+
"size": 1227,
|
|
226
|
+
"sha256": "879a739de9ce2c3c5b57bdad73eae2ce3de94ccdc7e666ca52a50b45b0bc9bfd"
|
|
219
227
|
},
|
|
220
228
|
"watchers/CacheWatcher.d.ts": {
|
|
221
|
-
"size":
|
|
222
|
-
"sha256": "
|
|
229
|
+
"size": 265,
|
|
230
|
+
"sha256": "cd30b7e8cd9ccd90a125073198dd2ad098706ab6e545f6152f94ccaeb616fa52"
|
|
223
231
|
},
|
|
224
232
|
"watchers/CacheWatcher.js": {
|
|
225
|
-
"size":
|
|
226
|
-
"sha256": "
|
|
233
|
+
"size": 1518,
|
|
234
|
+
"sha256": "1dae7cddf7940d7e6d478429d846390c9a862e30bd72bc68182b85f92b425dd0"
|
|
227
235
|
},
|
|
228
236
|
"watchers/CommandWatcher.d.ts": {
|
|
229
|
-
"size":
|
|
230
|
-
"sha256": "
|
|
237
|
+
"size": 267,
|
|
238
|
+
"sha256": "f1b3a3253e7265c7b56a74ba674cd23426ea5227a33abb1bde0d941e2a02e894"
|
|
231
239
|
},
|
|
232
240
|
"watchers/CommandWatcher.js": {
|
|
233
|
-
"size":
|
|
234
|
-
"sha256": "
|
|
241
|
+
"size": 1400,
|
|
242
|
+
"sha256": "5c1b2a1f090493ecb09c0c32bc0cedb0422e256fae0dbfbb65c032802a193b18"
|
|
235
243
|
},
|
|
236
244
|
"watchers/DumpWatcher.d.ts": {
|
|
237
|
-
"size":
|
|
238
|
-
"sha256": "
|
|
245
|
+
"size": 308,
|
|
246
|
+
"sha256": "13f81df217258b0827027cbba35b5ad549453fe2709bd4fcc66d845b065500ec"
|
|
239
247
|
},
|
|
240
248
|
"watchers/DumpWatcher.js": {
|
|
241
|
-
"size":
|
|
242
|
-
"sha256": "
|
|
249
|
+
"size": 1330,
|
|
250
|
+
"sha256": "ebeddd7077f881001af25c01983946b98d8d3855f7fe686f2768b5947b871051"
|
|
243
251
|
},
|
|
244
252
|
"watchers/EventWatcher.d.ts": {
|
|
245
|
-
"size":
|
|
246
|
-
"sha256": "
|
|
253
|
+
"size": 223,
|
|
254
|
+
"sha256": "f5a173b0f92490e417d175011d4191d8eafe9ff75d712adb55cece5368753ef6"
|
|
247
255
|
},
|
|
248
256
|
"watchers/EventWatcher.js": {
|
|
249
|
-
"size":
|
|
250
|
-
"sha256": "
|
|
257
|
+
"size": 1188,
|
|
258
|
+
"sha256": "ff32b44b48b6e313d15ba4370a845faf74ff8b03504a6336c19f183ff91a90dc"
|
|
251
259
|
},
|
|
252
260
|
"watchers/ExceptionWatcher.d.ts": {
|
|
253
|
-
"size":
|
|
254
|
-
"sha256": "
|
|
261
|
+
"size": 144,
|
|
262
|
+
"sha256": "d1b5f5668a2fa3069b5b9f9c8852b66e1ef6489e5d1f47381bde582d6e406960"
|
|
255
263
|
},
|
|
256
264
|
"watchers/ExceptionWatcher.js": {
|
|
257
|
-
"size":
|
|
258
|
-
"sha256": "
|
|
265
|
+
"size": 3451,
|
|
266
|
+
"sha256": "e4fe3d1df1c7d547b740bdf993503f43b80b6cc55aa151fe0cdc0f59b4442491"
|
|
259
267
|
},
|
|
260
268
|
"watchers/GateWatcher.d.ts": {
|
|
261
|
-
"size":
|
|
262
|
-
"sha256": "
|
|
269
|
+
"size": 262,
|
|
270
|
+
"sha256": "2fb8699f8679d2442aa322d40fb5cd4bb4e944804bdc6b094a9daf406a407abf"
|
|
263
271
|
},
|
|
264
272
|
"watchers/GateWatcher.js": {
|
|
265
|
-
"size":
|
|
266
|
-
"sha256": "
|
|
273
|
+
"size": 1219,
|
|
274
|
+
"sha256": "f318cdeec954ce0bba97be1dc11a6dff935b081e6b6a417c614be1934fa47f04"
|
|
267
275
|
},
|
|
268
276
|
"watchers/HttpClientWatcher.d.ts": {
|
|
269
|
-
"size":
|
|
270
|
-
"sha256": "
|
|
277
|
+
"size": 283,
|
|
278
|
+
"sha256": "1b48661bff79b2f72464c978ad7e6dcf011197ca4a3014e64e99b70437b3e5a1"
|
|
271
279
|
},
|
|
272
280
|
"watchers/HttpClientWatcher.js": {
|
|
273
|
-
"size":
|
|
274
|
-
"sha256": "
|
|
281
|
+
"size": 1585,
|
|
282
|
+
"sha256": "f1b71876adca3aff24bb0ccb3977672fab37c9babfb0088da1f44fa8eb1bca1e"
|
|
275
283
|
},
|
|
276
284
|
"watchers/HttpWatcher.d.ts": {
|
|
277
|
-
"size":
|
|
278
|
-
"sha256": "
|
|
285
|
+
"size": 96,
|
|
286
|
+
"sha256": "ce9a95a670f755193fd74ce721dbfa4b30f20c879a6566ebb35229b3b2435429"
|
|
279
287
|
},
|
|
280
288
|
"watchers/HttpWatcher.js": {
|
|
281
|
-
"size":
|
|
282
|
-
"sha256": "
|
|
289
|
+
"size": 2631,
|
|
290
|
+
"sha256": "7f2e735930dca72dbf34675c6f484b6a2a65259f935c809c0084881f980ec001"
|
|
283
291
|
},
|
|
284
292
|
"watchers/JobWatcher.d.ts": {
|
|
285
|
-
"size":
|
|
286
|
-
"sha256": "
|
|
293
|
+
"size": 441,
|
|
294
|
+
"sha256": "097c043678ac6b218096c9b04bc5922fc8ed2a31e9f53abc36f6e0d6f63180f0"
|
|
287
295
|
},
|
|
288
296
|
"watchers/JobWatcher.js": {
|
|
289
|
-
"size":
|
|
290
|
-
"sha256": "
|
|
297
|
+
"size": 3206,
|
|
298
|
+
"sha256": "6d38f51c490b26f3770777c251535c8053bcf17609f00f24900a1796e7cbca16"
|
|
291
299
|
},
|
|
292
300
|
"watchers/LogWatcher.d.ts": {
|
|
293
|
-
"size":
|
|
294
|
-
"sha256": "
|
|
301
|
+
"size": 95,
|
|
302
|
+
"sha256": "f3ddc5f8b58c6c86ac6b464dd48e5a55e79ab2bf2e735feacffc7480e4ccc0c4"
|
|
295
303
|
},
|
|
296
304
|
"watchers/LogWatcher.js": {
|
|
297
|
-
"size":
|
|
298
|
-
"sha256": "
|
|
305
|
+
"size": 1670,
|
|
306
|
+
"sha256": "15b0ce1344465b6526e1db1d92434eb8813e274b1b0b4fb9197dc68b7af92ea0"
|
|
299
307
|
},
|
|
300
308
|
"watchers/MailWatcher.d.ts": {
|
|
301
|
-
"size":
|
|
302
|
-
"sha256": "
|
|
309
|
+
"size": 214,
|
|
310
|
+
"sha256": "aa4a677b61f231cc29c314d3091dfecf45cac30f164f6ac5e99f0f3d1e714154"
|
|
303
311
|
},
|
|
304
312
|
"watchers/MailWatcher.js": {
|
|
305
|
-
"size":
|
|
306
|
-
"sha256": "
|
|
313
|
+
"size": 1214,
|
|
314
|
+
"sha256": "2bc8cb264822107cfc29d0341559f517186190492e594cb7ab1942b6ae28ea56"
|
|
307
315
|
},
|
|
308
316
|
"watchers/MiddlewareWatcher.d.ts": {
|
|
309
|
-
"size":
|
|
310
|
-
"sha256": "
|
|
317
|
+
"size": 259,
|
|
318
|
+
"sha256": "5a28b472c835bd0f79ec9d3670516544bc5b6da9f1f1bed5159be0cba39304a1"
|
|
311
319
|
},
|
|
312
320
|
"watchers/MiddlewareWatcher.js": {
|
|
313
|
-
"size":
|
|
314
|
-
"sha256": "
|
|
321
|
+
"size": 1133,
|
|
322
|
+
"sha256": "90cb56a6266e5793a6f1b93b769ad74caf83bef1cf80fa4cc67a87185c401d19"
|
|
315
323
|
},
|
|
316
324
|
"watchers/ModelWatcher.d.ts": {
|
|
317
|
-
"size":
|
|
318
|
-
"sha256": "
|
|
325
|
+
"size": 285,
|
|
326
|
+
"sha256": "4c05112af855a92b3f3f97c6b61bf1b07444bcb7d5a17f3e0ae19da4a85faf1c"
|
|
319
327
|
},
|
|
320
328
|
"watchers/ModelWatcher.js": {
|
|
321
|
-
"size":
|
|
322
|
-
"sha256": "
|
|
329
|
+
"size": 1130,
|
|
330
|
+
"sha256": "de3d1e379c7b1289167fe0b1dbf2aa5a54137b841df17c8d397ee656d9ce37fd"
|
|
323
331
|
},
|
|
324
332
|
"watchers/NotificationWatcher.d.ts": {
|
|
325
|
-
"size":
|
|
326
|
-
"sha256": "
|
|
333
|
+
"size": 237,
|
|
334
|
+
"sha256": "02fdf20e32ab8c93c10ce5c93a88b2349e73a30e9eb391413b8a401899d1053e"
|
|
327
335
|
},
|
|
328
336
|
"watchers/NotificationWatcher.js": {
|
|
329
|
-
"size":
|
|
330
|
-
"sha256": "
|
|
337
|
+
"size": 1242,
|
|
338
|
+
"sha256": "e72cc2fcc622f44b907560ca664a3f88a388ac444c7a0c290c00e95899b123a3"
|
|
331
339
|
},
|
|
332
340
|
"watchers/QueryWatcher.d.ts": {
|
|
333
|
-
"size":
|
|
334
|
-
"sha256": "
|
|
341
|
+
"size": 97,
|
|
342
|
+
"sha256": "6832a282b1658398264ede770d41c6aa86cb13625a3a87dac27fbaf7d2f7be6a"
|
|
335
343
|
},
|
|
336
344
|
"watchers/QueryWatcher.js": {
|
|
337
|
-
"size":
|
|
338
|
-
"sha256": "
|
|
345
|
+
"size": 2642,
|
|
346
|
+
"sha256": "76a7fdd42a340141810f541ed89845c303f5498db7bdcfa29d8d576cf36c8efb"
|
|
339
347
|
},
|
|
340
348
|
"watchers/RedisWatcher.d.ts": {
|
|
341
|
-
"size":
|
|
342
|
-
"sha256": "
|
|
349
|
+
"size": 294,
|
|
350
|
+
"sha256": "0a0f0ef387cb02a20cb9a4308a87b48dbfbf1076b7e3090801fef7c9c794ec84"
|
|
343
351
|
},
|
|
344
352
|
"watchers/RedisWatcher.js": {
|
|
345
|
-
"size":
|
|
346
|
-
"sha256": "
|
|
353
|
+
"size": 1238,
|
|
354
|
+
"sha256": "e242b2d02403e3b6dbee53645ecf70d7bd4c011148fdef6864807538f6ed2b27"
|
|
347
355
|
},
|
|
348
356
|
"watchers/ScheduleWatcher.d.ts": {
|
|
349
|
-
"size":
|
|
350
|
-
"sha256": "
|
|
357
|
+
"size": 291,
|
|
358
|
+
"sha256": "1d049cfc2472876bf11c4d091c2a889b948bfb2ac714da2aed8affd965f311a6"
|
|
351
359
|
},
|
|
352
360
|
"watchers/ScheduleWatcher.js": {
|
|
353
|
-
"size":
|
|
354
|
-
"sha256": "
|
|
361
|
+
"size": 1282,
|
|
362
|
+
"sha256": "4eec3209ee19f6e3b2d8e6ebfa0966a3e86c006d015d896c19ea18973bf2d89e"
|
|
355
363
|
},
|
|
356
364
|
"watchers/ViewWatcher.d.ts": {
|
|
357
|
-
"size":
|
|
358
|
-
"sha256": "
|
|
365
|
+
"size": 202,
|
|
366
|
+
"sha256": "980ac30b405d135cd754de1462722147944a37b4f5271ce769afb6b71fa748b1"
|
|
359
367
|
},
|
|
360
368
|
"watchers/ViewWatcher.js": {
|
|
361
|
-
"size":
|
|
362
|
-
"sha256": "
|
|
369
|
+
"size": 1069,
|
|
370
|
+
"sha256": "76fb157123788c5eef67324b712f7217a4ad55163769bbeea39e0e66d7df9e0c"
|
|
363
371
|
}
|
|
364
372
|
}
|
|
365
373
|
}
|
package/dist/dashboard/routes.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Auth is NOT applied here — callers add middleware via routeOptions.
|
|
5
5
|
*/
|
|
6
6
|
import { appConfig, Router, useDatabase } from '@zintrust/core';
|
|
7
|
-
import { TraceConfig } from '../config';
|
|
8
|
-
import { TraceStorage } from '../storage';
|
|
9
|
-
import { addMonitoring, clearEntries, getBatch, getEntry, getMonitoring, getStats, listEntries, removeMonitoring, setHandlerStorage, } from './handlers';
|
|
10
|
-
import { buildDashboardHtml } from './ui';
|
|
7
|
+
import { TraceConfig } from '../config.js';
|
|
8
|
+
import { TraceStorage } from '../storage/index.js';
|
|
9
|
+
import { addMonitoring, clearEntries, getBatch, getEntry, getMonitoring, getStats, listEntries, removeMonitoring, setHandlerStorage, } from './handlers.js';
|
|
10
|
+
import { buildDashboardHtml } from './ui.js';
|
|
11
11
|
const resolveDashboardConnectionName = (connectionName) => {
|
|
12
12
|
const explicitConnection = connectionName?.trim();
|
|
13
13
|
if (explicitConnection !== undefined && explicitConnection !== '') {
|
package/dist/index.js
CHANGED
|
@@ -8,43 +8,43 @@
|
|
|
8
8
|
// ---------------------------------------------------------------------------
|
|
9
9
|
// Config
|
|
10
10
|
// ---------------------------------------------------------------------------
|
|
11
|
-
export { TraceConfig } from './config';
|
|
11
|
+
export { TraceConfig } from './config.js';
|
|
12
12
|
// ---------------------------------------------------------------------------
|
|
13
13
|
// Storage
|
|
14
14
|
// ---------------------------------------------------------------------------
|
|
15
|
-
export { TraceStorage } from './storage';
|
|
15
|
+
export { TraceStorage } from './storage/index.js';
|
|
16
16
|
// ---------------------------------------------------------------------------
|
|
17
17
|
// Context
|
|
18
18
|
// ---------------------------------------------------------------------------
|
|
19
|
-
export { TraceContext } from './context';
|
|
19
|
+
export { TraceContext } from './context.js';
|
|
20
20
|
// ---------------------------------------------------------------------------
|
|
21
21
|
// Dashboard
|
|
22
22
|
// ---------------------------------------------------------------------------
|
|
23
|
-
export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes';
|
|
23
|
+
export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes.js';
|
|
24
24
|
// ---------------------------------------------------------------------------
|
|
25
25
|
// Watchers (named re-exports for use with custom wiring)
|
|
26
26
|
// ---------------------------------------------------------------------------
|
|
27
|
-
export { AuthWatcher } from './watchers/AuthWatcher';
|
|
28
|
-
export { BatchWatcher } from './watchers/BatchWatcher';
|
|
29
|
-
export { CacheWatcher } from './watchers/CacheWatcher';
|
|
30
|
-
export { CommandWatcher } from './watchers/CommandWatcher';
|
|
31
|
-
export { DumpWatcher } from './watchers/DumpWatcher';
|
|
32
|
-
export { EventWatcher } from './watchers/EventWatcher';
|
|
33
|
-
export { ExceptionWatcher } from './watchers/ExceptionWatcher';
|
|
34
|
-
export { GateWatcher } from './watchers/GateWatcher';
|
|
35
|
-
export { HttpClientWatcher } from './watchers/HttpClientWatcher';
|
|
36
|
-
export { HttpWatcher } from './watchers/HttpWatcher';
|
|
37
|
-
export { JobWatcher } from './watchers/JobWatcher';
|
|
38
|
-
export { LogWatcher } from './watchers/LogWatcher';
|
|
39
|
-
export { MailWatcher } from './watchers/MailWatcher';
|
|
40
|
-
export { MiddlewareWatcher } from './watchers/MiddlewareWatcher';
|
|
41
|
-
export { ModelWatcher } from './watchers/ModelWatcher';
|
|
42
|
-
export { NotificationWatcher } from './watchers/NotificationWatcher';
|
|
43
|
-
export { QueryWatcher } from './watchers/QueryWatcher';
|
|
44
|
-
export { RedisWatcher } from './watchers/RedisWatcher';
|
|
45
|
-
export { ScheduleWatcher } from './watchers/ScheduleWatcher';
|
|
46
|
-
export { ViewWatcher } from './watchers/ViewWatcher';
|
|
27
|
+
export { AuthWatcher } from './watchers/AuthWatcher.js';
|
|
28
|
+
export { BatchWatcher } from './watchers/BatchWatcher.js';
|
|
29
|
+
export { CacheWatcher } from './watchers/CacheWatcher.js';
|
|
30
|
+
export { CommandWatcher } from './watchers/CommandWatcher.js';
|
|
31
|
+
export { DumpWatcher } from './watchers/DumpWatcher.js';
|
|
32
|
+
export { EventWatcher } from './watchers/EventWatcher.js';
|
|
33
|
+
export { ExceptionWatcher } from './watchers/ExceptionWatcher.js';
|
|
34
|
+
export { GateWatcher } from './watchers/GateWatcher.js';
|
|
35
|
+
export { HttpClientWatcher } from './watchers/HttpClientWatcher.js';
|
|
36
|
+
export { HttpWatcher } from './watchers/HttpWatcher.js';
|
|
37
|
+
export { JobWatcher } from './watchers/JobWatcher.js';
|
|
38
|
+
export { LogWatcher } from './watchers/LogWatcher.js';
|
|
39
|
+
export { MailWatcher } from './watchers/MailWatcher.js';
|
|
40
|
+
export { MiddlewareWatcher } from './watchers/MiddlewareWatcher.js';
|
|
41
|
+
export { ModelWatcher } from './watchers/ModelWatcher.js';
|
|
42
|
+
export { NotificationWatcher } from './watchers/NotificationWatcher.js';
|
|
43
|
+
export { QueryWatcher } from './watchers/QueryWatcher.js';
|
|
44
|
+
export { RedisWatcher } from './watchers/RedisWatcher.js';
|
|
45
|
+
export { ScheduleWatcher } from './watchers/ScheduleWatcher.js';
|
|
46
|
+
export { ViewWatcher } from './watchers/ViewWatcher.js';
|
|
47
47
|
// ---------------------------------------------------------------------------
|
|
48
48
|
// Types
|
|
49
49
|
// ---------------------------------------------------------------------------
|
|
50
|
-
export { EntryType } from './types';
|
|
50
|
+
export { EntryType } from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the main entries table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceEntriesTable
|
|
3
|
+
* Creates the main entries table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { type IDatabase } from '@zintrust/core';
|
|
6
6
|
export interface Migration {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the main entries table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceEntriesTable
|
|
3
|
+
* Creates the main entries table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { MigrationSchema } from '@zintrust/core';
|
|
6
6
|
export const migration = {
|
|
7
7
|
async up(db) {
|
|
8
8
|
const schema = MigrationSchema.create(db);
|
|
9
|
-
await schema.create('
|
|
9
|
+
await schema.create('zin_trace_entries', (table) => {
|
|
10
10
|
table.id();
|
|
11
11
|
table.uuid('uuid').unique();
|
|
12
12
|
table.string('batch_id');
|
|
@@ -23,6 +23,6 @@ export const migration = {
|
|
|
23
23
|
},
|
|
24
24
|
async down(db) {
|
|
25
25
|
const schema = MigrationSchema.create(db);
|
|
26
|
-
await schema.dropIfExists('
|
|
26
|
+
await schema.dropIfExists('zin_trace_entries');
|
|
27
27
|
},
|
|
28
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the tag join table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceEntriesTagsTable
|
|
3
|
+
* Creates the tag join table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { type IDatabase } from '@zintrust/core';
|
|
6
6
|
export interface Migration {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the tag join table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceEntriesTagsTable
|
|
3
|
+
* Creates the tag join table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { MigrationSchema } from '@zintrust/core';
|
|
6
6
|
export const migration = {
|
|
7
7
|
async up(db) {
|
|
8
8
|
const schema = MigrationSchema.create(db);
|
|
9
|
-
await schema.create('
|
|
9
|
+
await schema.create('zin_trace_entries_tags', (table) => {
|
|
10
10
|
table.string('entry_uuid');
|
|
11
11
|
table.string('tag');
|
|
12
12
|
table.unique(['entry_uuid', 'tag']);
|
|
13
13
|
table.index('tag');
|
|
14
|
-
table.foreign('entry_uuid').references('uuid').on('
|
|
14
|
+
table.foreign('entry_uuid').references('uuid').on('zin_trace_entries').onDelete('CASCADE');
|
|
15
15
|
});
|
|
16
16
|
},
|
|
17
17
|
async down(db) {
|
|
18
18
|
const schema = MigrationSchema.create(db);
|
|
19
|
-
await schema.dropIfExists('
|
|
19
|
+
await schema.dropIfExists('zin_trace_entries_tags');
|
|
20
20
|
},
|
|
21
21
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the tag watchlist table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceMonitoringTable
|
|
3
|
+
* Creates the tag watchlist table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { type IDatabase } from '@zintrust/core';
|
|
6
6
|
export interface Migration {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration:
|
|
3
|
-
* Creates the tag watchlist table for @zintrust/
|
|
2
|
+
* Migration: CreateZinTraceMonitoringTable
|
|
3
|
+
* Creates the tag watchlist table for @zintrust/trace
|
|
4
4
|
*/
|
|
5
5
|
import { MigrationSchema } from '@zintrust/core';
|
|
6
6
|
export const migration = {
|
|
7
7
|
async up(db) {
|
|
8
8
|
const schema = MigrationSchema.create(db);
|
|
9
|
-
await schema.create('
|
|
9
|
+
await schema.create('zin_trace_monitoring', (table) => {
|
|
10
10
|
table.string('tag').primary();
|
|
11
11
|
});
|
|
12
12
|
},
|
|
13
13
|
async down(db) {
|
|
14
14
|
const schema = MigrationSchema.create(db);
|
|
15
|
-
await schema.dropIfExists('
|
|
15
|
+
await schema.dropIfExists('zin_trace_monitoring');
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migrations index for @zintrust/
|
|
2
|
+
* Migrations index for @zintrust/trace
|
|
3
3
|
* Export all migrations as an ordered array.
|
|
4
4
|
*/
|
|
5
|
-
export type { Migration } from './
|
|
6
|
-
export declare const migrations: import("./
|
|
5
|
+
export type { Migration } from './20260331000001_create_zin_trace_entries_table';
|
|
6
|
+
export declare const migrations: import("./20260331000001_create_zin_trace_entries_table").Migration[];
|
package/dist/migrations/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { migration as createEntries } from './
|
|
2
|
-
import { migration as createEntriesTags } from './
|
|
3
|
-
import { migration as createMonitoring } from './
|
|
1
|
+
import { migration as createEntries } from './20260331000001_create_zin_trace_entries_table.js';
|
|
2
|
+
import { migration as createEntriesTags } from './20260331000002_create_zin_trace_entries_tags_table.js';
|
|
3
|
+
import { migration as createMonitoring } from './20260331000003_create_zin_trace_monitoring_table.js';
|
|
4
4
|
export const migrations = [createEntries, createEntriesTags, createMonitoring];
|
package/dist/register.js
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* middleware: ['admin'],
|
|
20
20
|
* });
|
|
21
21
|
*/
|
|
22
|
-
import { TraceConfig } from './config';
|
|
23
|
-
import { TraceContext } from './context';
|
|
24
|
-
import { TraceStorage } from './storage';
|
|
22
|
+
import { TraceConfig } from './config.js';
|
|
23
|
+
import { TraceContext } from './context.js';
|
|
24
|
+
import { TraceStorage } from './storage/index.js';
|
|
25
25
|
const globalTraceRegisterState = globalThis;
|
|
26
26
|
globalTraceRegisterState.__zintrust_system_trace_plugin_requested__ = true;
|
|
27
27
|
const traceAlreadyInitialized = globalTraceRegisterState.__zintrust_system_trace_register_initialized__ === true;
|
|
@@ -84,26 +84,26 @@ if (!traceAlreadyInitialized && Env) {
|
|
|
84
84
|
TraceContext.setRequestContextImpl(core.RequestContext);
|
|
85
85
|
}
|
|
86
86
|
const [{ HttpWatcher }, { QueryWatcher }, { LogWatcher }, { ExceptionWatcher }, { JobWatcher }, { CacheWatcher }, { ScheduleWatcher }, { MailWatcher }, { AuthWatcher }, { EventWatcher }, { ModelWatcher }, { NotificationWatcher }, { RedisWatcher }, { GateWatcher }, { MiddlewareWatcher }, { CommandWatcher }, { BatchWatcher }, { DumpWatcher }, { ViewWatcher }, { HttpClientWatcher },] = await Promise.all([
|
|
87
|
-
import('./watchers/HttpWatcher'),
|
|
88
|
-
import('./watchers/QueryWatcher'),
|
|
89
|
-
import('./watchers/LogWatcher'),
|
|
90
|
-
import('./watchers/ExceptionWatcher'),
|
|
91
|
-
import('./watchers/JobWatcher'),
|
|
92
|
-
import('./watchers/CacheWatcher'),
|
|
93
|
-
import('./watchers/ScheduleWatcher'),
|
|
94
|
-
import('./watchers/MailWatcher'),
|
|
95
|
-
import('./watchers/AuthWatcher'),
|
|
96
|
-
import('./watchers/EventWatcher'),
|
|
97
|
-
import('./watchers/ModelWatcher'),
|
|
98
|
-
import('./watchers/NotificationWatcher'),
|
|
99
|
-
import('./watchers/RedisWatcher'),
|
|
100
|
-
import('./watchers/GateWatcher'),
|
|
101
|
-
import('./watchers/MiddlewareWatcher'),
|
|
102
|
-
import('./watchers/CommandWatcher'),
|
|
103
|
-
import('./watchers/BatchWatcher'),
|
|
104
|
-
import('./watchers/DumpWatcher'),
|
|
105
|
-
import('./watchers/ViewWatcher'),
|
|
106
|
-
import('./watchers/HttpClientWatcher'),
|
|
87
|
+
import('./watchers/HttpWatcher.js'),
|
|
88
|
+
import('./watchers/QueryWatcher.js'),
|
|
89
|
+
import('./watchers/LogWatcher.js'),
|
|
90
|
+
import('./watchers/ExceptionWatcher.js'),
|
|
91
|
+
import('./watchers/JobWatcher.js'),
|
|
92
|
+
import('./watchers/CacheWatcher.js'),
|
|
93
|
+
import('./watchers/ScheduleWatcher.js'),
|
|
94
|
+
import('./watchers/MailWatcher.js'),
|
|
95
|
+
import('./watchers/AuthWatcher.js'),
|
|
96
|
+
import('./watchers/EventWatcher.js'),
|
|
97
|
+
import('./watchers/ModelWatcher.js'),
|
|
98
|
+
import('./watchers/NotificationWatcher.js'),
|
|
99
|
+
import('./watchers/RedisWatcher.js'),
|
|
100
|
+
import('./watchers/GateWatcher.js'),
|
|
101
|
+
import('./watchers/MiddlewareWatcher.js'),
|
|
102
|
+
import('./watchers/CommandWatcher.js'),
|
|
103
|
+
import('./watchers/BatchWatcher.js'),
|
|
104
|
+
import('./watchers/DumpWatcher.js'),
|
|
105
|
+
import('./watchers/ViewWatcher.js'),
|
|
106
|
+
import('./watchers/HttpClientWatcher.js'),
|
|
107
107
|
]);
|
|
108
108
|
const watcherArgs = { storage, config, db };
|
|
109
109
|
HttpWatcher.register({ ...watcherArgs, registerMiddleware: resolveRegisterMiddleware() });
|
package/dist/storage/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TraceStorage } from './TraceStorage';
|
|
1
|
+
export { TraceStorage } from './TraceStorage.js';
|
package/dist/ui.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* Import this subpath when you only need trace dashboard registration
|
|
5
5
|
* without pulling in the package root re-export surface.
|
|
6
6
|
*/
|
|
7
|
-
export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes';
|
|
7
|
+
export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes.js';
|
package/dist/utils/authTag.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* AuthWatcher — records login/logout/failed auth events.
|
|
3
3
|
* Credentials are never stored; only the outcome.
|
|
4
4
|
*/
|
|
5
|
-
import { TraceContext } from '../context';
|
|
6
|
-
import { EntryType } from '../types';
|
|
7
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
5
|
+
import { TraceContext } from '../context.js';
|
|
6
|
+
import { EntryType } from '../types.js';
|
|
7
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
8
8
|
let _storage = null;
|
|
9
9
|
let _ignoreRoutes = [];
|
|
10
10
|
const emit = (event, userId) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _ignoreRoutes = [];
|
|
6
6
|
const emit = (name, total, processed, failed, status) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* CacheWatcher — records cache operations.
|
|
3
3
|
* Call CacheWatcher.emit() from within your cache driver instrumentation.
|
|
4
4
|
*/
|
|
5
|
-
import { TraceContext } from '../context';
|
|
6
|
-
import { EntryType } from '../types';
|
|
7
|
-
import { AuthTag } from '../utils/authTag';
|
|
8
|
-
import { redactString } from '../utils/redact';
|
|
9
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
5
|
+
import { TraceContext } from '../context.js';
|
|
6
|
+
import { EntryType } from '../types.js';
|
|
7
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
8
|
+
import { redactString } from '../utils/redact.js';
|
|
9
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
10
10
|
let _storage = null;
|
|
11
11
|
let _redactionFields = [];
|
|
12
12
|
let _ignoreRoutes = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { redactObject } from '../utils/redact';
|
|
4
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { redactObject } from '../utils/redact.js';
|
|
4
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
5
5
|
let _storage = null;
|
|
6
6
|
let _redactKeys = [];
|
|
7
7
|
let _ignoreRoutes = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _enabled = false;
|
|
6
6
|
let _ignoreRoutes = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { AuthTag } from '../utils/authTag';
|
|
4
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
4
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
5
5
|
let _storage = null;
|
|
6
6
|
let _ignoreRoutes = [];
|
|
7
7
|
const emit = (name, listenerCount, payload) => {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* from within its error handler, or the register() side-effect adds a
|
|
5
5
|
* process-level unhandledRejection/uncaughtException listener as fallback.
|
|
6
6
|
*/
|
|
7
|
-
import { TraceContext } from '../context';
|
|
8
|
-
import { EntryType } from '../types';
|
|
9
|
-
import { AuthTag } from '../utils/authTag';
|
|
10
|
-
import { familyHash } from '../utils/familyHash';
|
|
11
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
12
|
-
import { parseStackFrameLine } from '../utils/stackFrame';
|
|
7
|
+
import { TraceContext } from '../context.js';
|
|
8
|
+
import { EntryType } from '../types.js';
|
|
9
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
10
|
+
import { familyHash } from '../utils/familyHash.js';
|
|
11
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
12
|
+
import { parseStackFrameLine } from '../utils/stackFrame.js';
|
|
13
13
|
const getLinePreview = (_file, _line) => {
|
|
14
14
|
return {};
|
|
15
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _ignoreRoutes = [];
|
|
6
6
|
const emit = (ability, result, userId, subject) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { AuthTag } from '../utils/authTag';
|
|
4
|
-
import { redactHeaders } from '../utils/redact';
|
|
5
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
4
|
+
import { redactHeaders } from '../utils/redact.js';
|
|
5
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
6
6
|
let _storage = null;
|
|
7
7
|
let _redactHeaderNames = [];
|
|
8
8
|
let _ignoreRoutes = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { AuthTag } from '../utils/authTag';
|
|
4
|
-
import { redactHeaders, redactObject } from '../utils/redact';
|
|
5
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
4
|
+
import { redactHeaders, redactObject } from '../utils/redact.js';
|
|
5
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
6
6
|
const normalizeHeaders = (headers) => {
|
|
7
7
|
if (!headers)
|
|
8
8
|
return {};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Subsystems must call JobWatcher.onDispatch / onProcess / onFail from
|
|
4
4
|
* within their queue implementation for full tracking.
|
|
5
5
|
*/
|
|
6
|
-
import { TraceContext } from '../context';
|
|
7
|
-
import { EntryType } from '../types';
|
|
8
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
9
|
-
import { parseStackFrameLine } from '../utils/stackFrame';
|
|
6
|
+
import { TraceContext } from '../context.js';
|
|
7
|
+
import { EntryType } from '../types.js';
|
|
8
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
9
|
+
import { parseStackFrameLine } from '../utils/stackFrame.js';
|
|
10
10
|
// Module-level storage ref so emit helpers can be called from outside.
|
|
11
11
|
let _storage = null;
|
|
12
12
|
let _ignoreRoutes = [];
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* LogWatcher — captures Logger output via Logger.addSink().
|
|
3
3
|
*/
|
|
4
4
|
import { Logger } from '@zintrust/core';
|
|
5
|
-
import { TraceContext } from '../context';
|
|
6
|
-
import { EntryType } from '../types';
|
|
7
|
-
import { AuthTag } from '../utils/authTag';
|
|
8
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
5
|
+
import { TraceContext } from '../context.js';
|
|
6
|
+
import { EntryType } from '../types.js';
|
|
7
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
8
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
9
9
|
const LEVEL_PRIORITY = {
|
|
10
10
|
debug: 0,
|
|
11
11
|
info: 1,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* MailWatcher — records mail dispatch intent.
|
|
3
3
|
* Body is never captured; only to/subject/template.
|
|
4
4
|
*/
|
|
5
|
-
import { TraceContext } from '../context';
|
|
6
|
-
import { EntryType } from '../types';
|
|
7
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
5
|
+
import { TraceContext } from '../context.js';
|
|
6
|
+
import { EntryType } from '../types.js';
|
|
7
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
8
8
|
let _storage = null;
|
|
9
9
|
let _ignoreRoutes = [];
|
|
10
10
|
const emit = (to, subject, template) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _ignoreRoutes = [];
|
|
6
6
|
const emit = (name, event, duration) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _ignoreRoutes = [];
|
|
6
6
|
const emit = (action, model, id, changes) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { AuthTag } from '../utils/authTag';
|
|
4
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
4
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
5
5
|
let _storage = null;
|
|
6
6
|
let _ignoreRoutes = [];
|
|
7
7
|
const emit = (notification, channels, notifiable) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* QueryWatcher — hooks into Database.onAfterQuery to record SQL entries.
|
|
3
3
|
*/
|
|
4
|
-
import { TraceContext } from '../context';
|
|
5
|
-
import { TraceStorage } from '../storage';
|
|
6
|
-
import { EntryType } from '../types';
|
|
7
|
-
import { AuthTag } from '../utils/authTag';
|
|
8
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
4
|
+
import { TraceContext } from '../context.js';
|
|
5
|
+
import { TraceStorage } from '../storage/index.js';
|
|
6
|
+
import { EntryType } from '../types.js';
|
|
7
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
8
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
9
9
|
const bindingsInterpolated = (sql, params) => {
|
|
10
10
|
// Inline params for display only — safe, not for re-execution.
|
|
11
11
|
let i = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { AuthTag } from '../utils/authTag';
|
|
4
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { AuthTag } from '../utils/authTag.js';
|
|
4
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
5
5
|
let _storage = null;
|
|
6
6
|
let _ignoreRoutes = [];
|
|
7
7
|
/** Emit a redis command trace. Key/value payload is intentionally omitted for security. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ScheduleWatcher — records scheduled task runs and outcomes.
|
|
3
3
|
*/
|
|
4
|
-
import { TraceContext } from '../context';
|
|
5
|
-
import { EntryType } from '../types';
|
|
6
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
4
|
+
import { TraceContext } from '../context.js';
|
|
5
|
+
import { EntryType } from '../types.js';
|
|
6
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
7
7
|
let _storage = null;
|
|
8
8
|
let _ignoreRoutes = [];
|
|
9
9
|
const emit = (name, expression, status, duration, output) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TraceContext } from '../context';
|
|
2
|
-
import { EntryType } from '../types';
|
|
3
|
-
import { RequestFilter } from '../utils/requestFilter';
|
|
1
|
+
import { TraceContext } from '../context.js';
|
|
2
|
+
import { EntryType } from '../types.js';
|
|
3
|
+
import { RequestFilter } from '../utils/requestFilter.js';
|
|
4
4
|
let _storage = null;
|
|
5
5
|
let _ignoreRoutes = [];
|
|
6
6
|
const emit = (template, duration) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/trace",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.76",
|
|
4
4
|
"description": "Trace assistant for ZinTrust: logs requests, queries, exceptions, jobs, and more.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"telescope"
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "
|
|
56
|
+
"build": "tsc -p tsconfig.json && tsc -p tsconfig.migrations.json && node ../../scripts/fix-dist-esm-imports.mjs dist",
|
|
57
57
|
"prepublishOnly": "npm run build"
|
|
58
58
|
}
|
|
59
59
|
}
|