@spfn/monitor 0.1.0-beta.23 → 0.1.0-beta.25

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.
@@ -0,0 +1,7 @@
1
+ -- pg_trgm provides the gin_trgm_ops operator class used by the trigram GIN
2
+ -- indexes below (makes leading-wildcard ILIKE searches sargable). drizzle-kit
3
+ -- cannot generate CREATE EXTENSION, so it is added here by hand. Idempotent.
4
+ CREATE EXTENSION IF NOT EXISTS pg_trgm;--> statement-breakpoint
5
+ CREATE INDEX "monitor_eg_name_trgm_idx" ON "spfn_monitor"."error_groups" USING gin ("name" gin_trgm_ops);--> statement-breakpoint
6
+ CREATE INDEX "monitor_eg_message_trgm_idx" ON "spfn_monitor"."error_groups" USING gin ("message" gin_trgm_ops);--> statement-breakpoint
7
+ CREATE INDEX "monitor_eg_path_trgm_idx" ON "spfn_monitor"."error_groups" USING gin ("path" gin_trgm_ops);
@@ -0,0 +1,493 @@
1
+ {
2
+ "id": "c220e177-67d7-4ab6-99f3-b64f5ba7dcfc",
3
+ "prevId": "f36888a8-929e-41ba-ac25-e3ce942cba67",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "spfn_monitor.error_events": {
8
+ "name": "error_events",
9
+ "schema": "spfn_monitor",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "bigserial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "group_id": {
18
+ "name": "group_id",
19
+ "type": "bigint",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "request_id": {
24
+ "name": "request_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "status_code": {
36
+ "name": "status_code",
37
+ "type": "integer",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "headers": {
42
+ "name": "headers",
43
+ "type": "jsonb",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "query": {
48
+ "name": "query",
49
+ "type": "jsonb",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "stack_trace": {
54
+ "name": "stack_trace",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "metadata": {
60
+ "name": "metadata",
61
+ "type": "jsonb",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "created_at": {
66
+ "name": "created_at",
67
+ "type": "timestamp with time zone",
68
+ "primaryKey": false,
69
+ "notNull": true,
70
+ "default": "now()"
71
+ },
72
+ "updated_at": {
73
+ "name": "updated_at",
74
+ "type": "timestamp with time zone",
75
+ "primaryKey": false,
76
+ "notNull": true,
77
+ "default": "now()"
78
+ }
79
+ },
80
+ "indexes": {
81
+ "monitor_ee_group_id_idx": {
82
+ "name": "monitor_ee_group_id_idx",
83
+ "columns": [
84
+ {
85
+ "expression": "group_id",
86
+ "isExpression": false,
87
+ "asc": true,
88
+ "nulls": "last"
89
+ }
90
+ ],
91
+ "isUnique": false,
92
+ "concurrently": false,
93
+ "method": "btree",
94
+ "with": {}
95
+ },
96
+ "monitor_ee_created_at_idx": {
97
+ "name": "monitor_ee_created_at_idx",
98
+ "columns": [
99
+ {
100
+ "expression": "created_at",
101
+ "isExpression": false,
102
+ "asc": true,
103
+ "nulls": "last"
104
+ }
105
+ ],
106
+ "isUnique": false,
107
+ "concurrently": false,
108
+ "method": "btree",
109
+ "with": {}
110
+ },
111
+ "monitor_ee_user_id_idx": {
112
+ "name": "monitor_ee_user_id_idx",
113
+ "columns": [
114
+ {
115
+ "expression": "user_id",
116
+ "isExpression": false,
117
+ "asc": true,
118
+ "nulls": "last"
119
+ }
120
+ ],
121
+ "isUnique": false,
122
+ "concurrently": false,
123
+ "method": "btree",
124
+ "with": {}
125
+ }
126
+ },
127
+ "foreignKeys": {
128
+ "error_events_group_id_error_groups_id_fk": {
129
+ "name": "error_events_group_id_error_groups_id_fk",
130
+ "tableFrom": "error_events",
131
+ "tableTo": "error_groups",
132
+ "schemaTo": "spfn_monitor",
133
+ "columnsFrom": [
134
+ "group_id"
135
+ ],
136
+ "columnsTo": [
137
+ "id"
138
+ ],
139
+ "onDelete": "cascade",
140
+ "onUpdate": "no action"
141
+ }
142
+ },
143
+ "compositePrimaryKeys": {},
144
+ "uniqueConstraints": {},
145
+ "policies": {},
146
+ "checkConstraints": {},
147
+ "isRLSEnabled": false
148
+ },
149
+ "spfn_monitor.error_groups": {
150
+ "name": "error_groups",
151
+ "schema": "spfn_monitor",
152
+ "columns": {
153
+ "id": {
154
+ "name": "id",
155
+ "type": "bigserial",
156
+ "primaryKey": true,
157
+ "notNull": true
158
+ },
159
+ "fingerprint": {
160
+ "name": "fingerprint",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true
164
+ },
165
+ "name": {
166
+ "name": "name",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": true
170
+ },
171
+ "message": {
172
+ "name": "message",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": true
176
+ },
177
+ "path": {
178
+ "name": "path",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true
182
+ },
183
+ "method": {
184
+ "name": "method",
185
+ "type": "text",
186
+ "primaryKey": false,
187
+ "notNull": true
188
+ },
189
+ "status_code": {
190
+ "name": "status_code",
191
+ "type": "integer",
192
+ "primaryKey": false,
193
+ "notNull": true
194
+ },
195
+ "status": {
196
+ "name": "status",
197
+ "type": "text",
198
+ "primaryKey": false,
199
+ "notNull": true,
200
+ "default": "'active'"
201
+ },
202
+ "count": {
203
+ "name": "count",
204
+ "type": "integer",
205
+ "primaryKey": false,
206
+ "notNull": true,
207
+ "default": 1
208
+ },
209
+ "first_seen_at": {
210
+ "name": "first_seen_at",
211
+ "type": "timestamp with time zone",
212
+ "primaryKey": false,
213
+ "notNull": true
214
+ },
215
+ "last_seen_at": {
216
+ "name": "last_seen_at",
217
+ "type": "timestamp with time zone",
218
+ "primaryKey": false,
219
+ "notNull": true
220
+ },
221
+ "resolved_at": {
222
+ "name": "resolved_at",
223
+ "type": "timestamp with time zone",
224
+ "primaryKey": false,
225
+ "notNull": false
226
+ },
227
+ "created_at": {
228
+ "name": "created_at",
229
+ "type": "timestamp with time zone",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "default": "now()"
233
+ },
234
+ "updated_at": {
235
+ "name": "updated_at",
236
+ "type": "timestamp with time zone",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "default": "now()"
240
+ }
241
+ },
242
+ "indexes": {
243
+ "monitor_eg_fingerprint_idx": {
244
+ "name": "monitor_eg_fingerprint_idx",
245
+ "columns": [
246
+ {
247
+ "expression": "fingerprint",
248
+ "isExpression": false,
249
+ "asc": true,
250
+ "nulls": "last"
251
+ }
252
+ ],
253
+ "isUnique": false,
254
+ "concurrently": false,
255
+ "method": "btree",
256
+ "with": {}
257
+ },
258
+ "monitor_eg_status_idx": {
259
+ "name": "monitor_eg_status_idx",
260
+ "columns": [
261
+ {
262
+ "expression": "status",
263
+ "isExpression": false,
264
+ "asc": true,
265
+ "nulls": "last"
266
+ }
267
+ ],
268
+ "isUnique": false,
269
+ "concurrently": false,
270
+ "method": "btree",
271
+ "with": {}
272
+ },
273
+ "monitor_eg_last_seen_at_idx": {
274
+ "name": "monitor_eg_last_seen_at_idx",
275
+ "columns": [
276
+ {
277
+ "expression": "last_seen_at",
278
+ "isExpression": false,
279
+ "asc": true,
280
+ "nulls": "last"
281
+ }
282
+ ],
283
+ "isUnique": false,
284
+ "concurrently": false,
285
+ "method": "btree",
286
+ "with": {}
287
+ },
288
+ "monitor_eg_path_idx": {
289
+ "name": "monitor_eg_path_idx",
290
+ "columns": [
291
+ {
292
+ "expression": "path",
293
+ "isExpression": false,
294
+ "asc": true,
295
+ "nulls": "last"
296
+ }
297
+ ],
298
+ "isUnique": false,
299
+ "concurrently": false,
300
+ "method": "btree",
301
+ "with": {}
302
+ },
303
+ "monitor_eg_name_trgm_idx": {
304
+ "name": "monitor_eg_name_trgm_idx",
305
+ "columns": [
306
+ {
307
+ "expression": "\"name\" gin_trgm_ops",
308
+ "asc": true,
309
+ "isExpression": true,
310
+ "nulls": "last"
311
+ }
312
+ ],
313
+ "isUnique": false,
314
+ "concurrently": false,
315
+ "method": "gin",
316
+ "with": {}
317
+ },
318
+ "monitor_eg_message_trgm_idx": {
319
+ "name": "monitor_eg_message_trgm_idx",
320
+ "columns": [
321
+ {
322
+ "expression": "\"message\" gin_trgm_ops",
323
+ "asc": true,
324
+ "isExpression": true,
325
+ "nulls": "last"
326
+ }
327
+ ],
328
+ "isUnique": false,
329
+ "concurrently": false,
330
+ "method": "gin",
331
+ "with": {}
332
+ },
333
+ "monitor_eg_path_trgm_idx": {
334
+ "name": "monitor_eg_path_trgm_idx",
335
+ "columns": [
336
+ {
337
+ "expression": "\"path\" gin_trgm_ops",
338
+ "asc": true,
339
+ "isExpression": true,
340
+ "nulls": "last"
341
+ }
342
+ ],
343
+ "isUnique": false,
344
+ "concurrently": false,
345
+ "method": "gin",
346
+ "with": {}
347
+ }
348
+ },
349
+ "foreignKeys": {},
350
+ "compositePrimaryKeys": {},
351
+ "uniqueConstraints": {
352
+ "error_groups_fingerprint_unique": {
353
+ "name": "error_groups_fingerprint_unique",
354
+ "nullsNotDistinct": false,
355
+ "columns": [
356
+ "fingerprint"
357
+ ]
358
+ }
359
+ },
360
+ "policies": {},
361
+ "checkConstraints": {},
362
+ "isRLSEnabled": false
363
+ },
364
+ "spfn_monitor.logs": {
365
+ "name": "logs",
366
+ "schema": "spfn_monitor",
367
+ "columns": {
368
+ "id": {
369
+ "name": "id",
370
+ "type": "bigserial",
371
+ "primaryKey": true,
372
+ "notNull": true
373
+ },
374
+ "level": {
375
+ "name": "level",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true
379
+ },
380
+ "message": {
381
+ "name": "message",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": true
385
+ },
386
+ "source": {
387
+ "name": "source",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false
391
+ },
392
+ "request_id": {
393
+ "name": "request_id",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false
397
+ },
398
+ "user_id": {
399
+ "name": "user_id",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": false
403
+ },
404
+ "metadata": {
405
+ "name": "metadata",
406
+ "type": "jsonb",
407
+ "primaryKey": false,
408
+ "notNull": false
409
+ },
410
+ "created_at": {
411
+ "name": "created_at",
412
+ "type": "timestamp with time zone",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "default": "now()"
416
+ },
417
+ "updated_at": {
418
+ "name": "updated_at",
419
+ "type": "timestamp with time zone",
420
+ "primaryKey": false,
421
+ "notNull": true,
422
+ "default": "now()"
423
+ }
424
+ },
425
+ "indexes": {
426
+ "monitor_log_level_idx": {
427
+ "name": "monitor_log_level_idx",
428
+ "columns": [
429
+ {
430
+ "expression": "level",
431
+ "isExpression": false,
432
+ "asc": true,
433
+ "nulls": "last"
434
+ }
435
+ ],
436
+ "isUnique": false,
437
+ "concurrently": false,
438
+ "method": "btree",
439
+ "with": {}
440
+ },
441
+ "monitor_log_source_idx": {
442
+ "name": "monitor_log_source_idx",
443
+ "columns": [
444
+ {
445
+ "expression": "source",
446
+ "isExpression": false,
447
+ "asc": true,
448
+ "nulls": "last"
449
+ }
450
+ ],
451
+ "isUnique": false,
452
+ "concurrently": false,
453
+ "method": "btree",
454
+ "with": {}
455
+ },
456
+ "monitor_log_created_at_idx": {
457
+ "name": "monitor_log_created_at_idx",
458
+ "columns": [
459
+ {
460
+ "expression": "created_at",
461
+ "isExpression": false,
462
+ "asc": true,
463
+ "nulls": "last"
464
+ }
465
+ ],
466
+ "isUnique": false,
467
+ "concurrently": false,
468
+ "method": "btree",
469
+ "with": {}
470
+ }
471
+ },
472
+ "foreignKeys": {},
473
+ "compositePrimaryKeys": {},
474
+ "uniqueConstraints": {},
475
+ "policies": {},
476
+ "checkConstraints": {},
477
+ "isRLSEnabled": false
478
+ }
479
+ },
480
+ "enums": {},
481
+ "schemas": {
482
+ "spfn_monitor": "spfn_monitor"
483
+ },
484
+ "sequences": {},
485
+ "roles": {},
486
+ "policies": {},
487
+ "views": {},
488
+ "_meta": {
489
+ "columns": {},
490
+ "schemas": {},
491
+ "tables": {}
492
+ }
493
+ }
@@ -15,6 +15,13 @@
15
15
  "when": 1774403094404,
16
16
  "tag": "0001_bumpy_dark_beast",
17
17
  "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "7",
22
+ "when": 1782573013559,
23
+ "tag": "0002_magenta_proudstar",
24
+ "breakpoints": true
18
25
  }
19
26
  ]
20
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spfn/monitor",
3
- "version": "0.1.0-beta.23",
3
+ "version": "0.1.0-beta.25",
4
4
  "type": "module",
5
5
  "description": "Error tracking, log management, and monitoring dashboard for SPFN",
6
6
  "main": "./dist/index.js",
@@ -69,9 +69,9 @@
69
69
  "tsup": "^8.5.0",
70
70
  "typescript": "^5.3.3",
71
71
  "vitest": "^4.0.6",
72
+ "@spfn/core": "0.2.0-beta.57",
72
73
  "@spfn/auth": "0.2.0-beta.72",
73
- "@spfn/notification": "0.1.0-beta.24",
74
- "@spfn/core": "0.2.0-beta.56"
74
+ "@spfn/notification": "0.1.0-beta.25"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@spfn/auth": ">=0.2.0-beta.69",