convex-tracer 0.1.0 → 0.1.1
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/client/helpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +24 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +18 -1
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/component.d.ts +55 -10
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/lib.d.ts +58 -25
- package/dist/component/lib.d.ts.map +1 -1
- package/dist/component/lib.js +60 -21
- package/dist/component/lib.js.map +1 -1
- package/dist/component/schema.d.ts +25 -18
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +6 -1
- package/dist/component/schema.js.map +1 -1
- package/dist/component/types.d.ts +138 -80
- package/dist/component/types.d.ts.map +1 -1
- package/dist/component/types.js +2 -0
- package/dist/component/types.js.map +1 -1
- package/package.json +1 -1
- package/src/client/helpers.ts +11 -1
- package/src/client/index.ts +42 -9
- package/src/component/_generated/component.ts +61 -10
- package/src/component/lib.ts +72 -28
- package/src/component/schema.ts +6 -1
- package/src/component/types.ts +4 -0
- package/dist/client/_generated/_ignore.d.ts +0 -1
- package/dist/client/_generated/_ignore.d.ts.map +0 -1
- package/dist/client/_generated/_ignore.js +0 -3
- package/dist/client/_generated/_ignore.js.map +0 -1
- package/dist/client/helpers.d.ts +0 -31
- package/dist/client/helpers.js +0 -177
- package/dist/client/helpers.js.map +0 -1
- package/dist/client/tracer-api/index.d.ts +0 -27
- package/dist/client/tracer-api/index.js +0 -177
- package/dist/client/tracer-api/index.js.map +0 -1
- package/dist/client/tracer-api/types.d.ts +0 -143
- package/dist/client/tracer-api/types.js +0 -2
- package/dist/client/tracer-api/types.js.map +0 -1
- package/dist/client/types.d.ts +0 -168
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/component/_generated/api.d.ts +0 -36
- package/dist/component/_generated/api.js +0 -31
- package/dist/component/_generated/api.js.map +0 -1
- package/dist/component/_generated/dataModel.d.ts +0 -46
- package/dist/component/_generated/dataModel.js +0 -11
- package/dist/component/_generated/dataModel.js.map +0 -1
- package/dist/component/_generated/server.d.ts +0 -121
- package/dist/component/_generated/server.js +0 -78
- package/dist/component/_generated/server.js.map +0 -1
- package/dist/component/convex.config.d.ts +0 -3
- package/dist/component/convex.config.d.ts.map +0 -1
- package/dist/component/convex.config.js +0 -3
- package/dist/component/convex.config.js.map +0 -1
- package/dist/react/index.d.ts +0 -6
- package/dist/react/index.js +0 -11
- package/dist/react/index.js.map +0 -1
- package/dist/react/types.d.ts +0 -8
- package/dist/react/types.js +0 -2
- package/dist/react/types.js.map +0 -1
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
export declare const statusValidator: import("convex/values").VUnion<"
|
|
1
|
+
export declare const statusValidator: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
2
2
|
export declare const sourceValidator: import("convex/values").VUnion<"frontend" | "backend", [import("convex/values").VLiteral<"frontend", "required">, import("convex/values").VLiteral<"backend", "required">], "required", never>;
|
|
3
|
-
export declare const severityValidator: import("convex/values").VUnion<"
|
|
3
|
+
export declare const severityValidator: import("convex/values").VUnion<"error" | "info" | "warn", [import("convex/values").VLiteral<"info", "required">, import("convex/values").VLiteral<"warn", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
4
4
|
declare const _default: import("convex/server").SchemaDefinition<{
|
|
5
5
|
traces: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
6
|
+
preserve?: boolean | undefined;
|
|
6
7
|
metadata?: Record<string, any> | undefined;
|
|
8
|
+
functionName?: string | undefined;
|
|
7
9
|
userId?: string | undefined;
|
|
8
|
-
|
|
9
|
-
status: "error" | "success" | "pending";
|
|
10
|
+
status: "pending" | "success" | "error";
|
|
10
11
|
sampleRate: number;
|
|
11
12
|
updatedAt: number;
|
|
12
13
|
}, {
|
|
13
|
-
status: import("convex/values").VUnion<"
|
|
14
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
14
15
|
sampleRate: import("convex/values").VFloat64<number, "required">;
|
|
15
16
|
preserve: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
16
17
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
17
18
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
19
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
18
20
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
19
|
-
}, "required", "status" | "
|
|
21
|
+
}, "required", "status" | "sampleRate" | "preserve" | "updatedAt" | "metadata" | "functionName" | "userId" | `metadata.${string}`>, {
|
|
20
22
|
by_status: ["status", "_creationTime"];
|
|
21
23
|
by_userId: ["userId", "_creationTime"];
|
|
22
24
|
by_status_and_userId: ["status", "userId", "_creationTime"];
|
|
23
|
-
}, {
|
|
25
|
+
}, {
|
|
26
|
+
by_function_name: {
|
|
27
|
+
searchField: "functionName";
|
|
28
|
+
filterFields: "status" | "userId";
|
|
29
|
+
};
|
|
30
|
+
}, {}>;
|
|
24
31
|
spans: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
25
32
|
error?: string | undefined;
|
|
26
|
-
duration?: number | undefined;
|
|
27
|
-
endTime?: number | undefined;
|
|
28
|
-
result?: any;
|
|
29
33
|
metadata?: Record<string, any> | undefined;
|
|
30
|
-
parentSpanId?: import("convex/values").GenericId<"spans"> | undefined;
|
|
31
34
|
functionName?: string | undefined;
|
|
35
|
+
parentSpanId?: import("convex/values").GenericId<"spans"> | undefined;
|
|
36
|
+
endTime?: number | undefined;
|
|
37
|
+
duration?: number | undefined;
|
|
32
38
|
args?: any;
|
|
33
|
-
|
|
34
|
-
status: "
|
|
39
|
+
result?: any;
|
|
40
|
+
status: "pending" | "success" | "error";
|
|
35
41
|
source: "frontend" | "backend";
|
|
42
|
+
traceId: import("convex/values").GenericId<"traces">;
|
|
36
43
|
spanName: string;
|
|
37
44
|
startTime: number;
|
|
38
45
|
}, {
|
|
@@ -43,30 +50,30 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
43
50
|
startTime: import("convex/values").VFloat64<number, "required">;
|
|
44
51
|
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
45
52
|
duration: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
46
|
-
status: import("convex/values").VUnion<"
|
|
53
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
47
54
|
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
48
55
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
49
56
|
result: import("convex/values").VAny<any, "optional", string>;
|
|
50
57
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
51
58
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
52
|
-
}, "required", "error" | "
|
|
59
|
+
}, "required", "error" | "status" | "metadata" | "functionName" | `metadata.${string}` | "source" | "traceId" | "parentSpanId" | "spanName" | "startTime" | "endTime" | "duration" | "args" | "result" | `args.${string}` | `result.${string}`>, {
|
|
53
60
|
by_traceId: ["traceId", "_creationTime"];
|
|
54
61
|
by_parentSpanId: ["parentSpanId", "_creationTime"];
|
|
55
62
|
by_status: ["status", "_creationTime"];
|
|
56
63
|
}, {}, {}>;
|
|
57
64
|
logs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
58
65
|
metadata?: Record<string, any> | undefined;
|
|
66
|
+
severity: "error" | "info" | "warn";
|
|
59
67
|
spanId: import("convex/values").GenericId<"spans">;
|
|
60
|
-
severity: "info" | "warn" | "error";
|
|
61
68
|
timestamp: number;
|
|
62
69
|
message: string;
|
|
63
70
|
}, {
|
|
64
71
|
spanId: import("convex/values").VId<import("convex/values").GenericId<"spans">, "required">;
|
|
65
72
|
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
66
|
-
severity: import("convex/values").VUnion<"
|
|
73
|
+
severity: import("convex/values").VUnion<"error" | "info" | "warn", [import("convex/values").VLiteral<"info", "required">, import("convex/values").VLiteral<"warn", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
67
74
|
message: import("convex/values").VString<string, "required">;
|
|
68
75
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
69
|
-
}, "required", "
|
|
76
|
+
}, "required", "metadata" | `metadata.${string}` | "severity" | "spanId" | "timestamp" | "message">, {
|
|
70
77
|
by_spanId: ["spanId", "_creationTime"];
|
|
71
78
|
by_severity: ["severity", "_creationTime"];
|
|
72
79
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+PAI3B,CAAC;AAEF,eAAO,MAAM,eAAe,gMAG3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mPAI7B,CAAC
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+PAI3B,CAAC;AAEF,eAAO,MAAM,eAAe,gMAG3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mPAI7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBA8CG"}
|
package/dist/component/schema.js
CHANGED
|
@@ -10,11 +10,16 @@ export default defineSchema({
|
|
|
10
10
|
preserve: v.optional(v.boolean()),
|
|
11
11
|
updatedAt: v.number(),
|
|
12
12
|
metadata: v.optional(v.record(v.string(), v.any())),
|
|
13
|
+
functionName: v.optional(v.string()),
|
|
13
14
|
userId: v.optional(v.string()),
|
|
14
15
|
})
|
|
15
16
|
.index("by_status", ["status"])
|
|
16
17
|
.index("by_userId", ["userId"])
|
|
17
|
-
.index("by_status_and_userId", ["status", "userId"])
|
|
18
|
+
.index("by_status_and_userId", ["status", "userId"])
|
|
19
|
+
.searchIndex("by_function_name", {
|
|
20
|
+
searchField: "functionName",
|
|
21
|
+
filterFields: ["status", "userId"],
|
|
22
|
+
}),
|
|
18
23
|
spans: defineTable({
|
|
19
24
|
traceId: v.id("traces"),
|
|
20
25
|
parentSpanId: v.optional(v.id("spans")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CACpC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CACpC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EACjB,CAAC,CAAC,OAAO,C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AC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC;SAC9B,KAAK,CAAC,aAAa,EAAE,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC,CAAC"}
|
|
@@ -1,286 +1,344 @@
|
|
|
1
1
|
import { type Infer } from "convex/values";
|
|
2
2
|
export declare const vTrace: import("convex/values").VObject<{
|
|
3
|
+
preserve?: boolean | undefined;
|
|
3
4
|
metadata?: Record<string, any> | undefined;
|
|
5
|
+
functionName?: string | undefined;
|
|
4
6
|
userId?: string | undefined;
|
|
5
|
-
|
|
6
|
-
status: "error" | "success" | "pending";
|
|
7
|
+
status: "pending" | "success" | "error";
|
|
7
8
|
sampleRate: number;
|
|
8
9
|
updatedAt: number;
|
|
9
10
|
_creationTime: number;
|
|
10
11
|
_id: string;
|
|
11
12
|
}, {
|
|
12
|
-
status: import("convex/values").VUnion<"
|
|
13
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
13
14
|
sampleRate: import("convex/values").VFloat64<number, "required">;
|
|
14
15
|
preserve: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
15
16
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
16
17
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
18
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
17
19
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
18
20
|
_id: import("convex/values").VString<string, "required">;
|
|
19
21
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
20
|
-
}, "required", "status" | "
|
|
22
|
+
}, "required", "status" | "sampleRate" | "preserve" | "updatedAt" | "metadata" | "functionName" | "userId" | `metadata.${string}` | "_creationTime" | "_id">;
|
|
23
|
+
export declare const vPaginatedTraces: import("convex/values").VObject<{
|
|
24
|
+
splitCursor?: string | null;
|
|
25
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
26
|
+
page: {
|
|
27
|
+
preserve?: boolean | undefined;
|
|
28
|
+
metadata?: Record<string, any> | undefined;
|
|
29
|
+
functionName?: string | undefined;
|
|
30
|
+
userId?: string | undefined;
|
|
31
|
+
status: "pending" | "success" | "error";
|
|
32
|
+
sampleRate: number;
|
|
33
|
+
updatedAt: number;
|
|
34
|
+
_creationTime: number;
|
|
35
|
+
_id: string;
|
|
36
|
+
}[];
|
|
37
|
+
continueCursor: string;
|
|
38
|
+
isDone: boolean;
|
|
39
|
+
}, {
|
|
40
|
+
page: import("convex/values").VArray<{
|
|
41
|
+
preserve?: boolean | undefined;
|
|
42
|
+
metadata?: Record<string, any> | undefined;
|
|
43
|
+
functionName?: string | undefined;
|
|
44
|
+
userId?: string | undefined;
|
|
45
|
+
status: "pending" | "success" | "error";
|
|
46
|
+
sampleRate: number;
|
|
47
|
+
updatedAt: number;
|
|
48
|
+
_creationTime: number;
|
|
49
|
+
_id: string;
|
|
50
|
+
}[], import("convex/values").VObject<{
|
|
51
|
+
preserve?: boolean | undefined;
|
|
52
|
+
metadata?: Record<string, any> | undefined;
|
|
53
|
+
functionName?: string | undefined;
|
|
54
|
+
userId?: string | undefined;
|
|
55
|
+
status: "pending" | "success" | "error";
|
|
56
|
+
sampleRate: number;
|
|
57
|
+
updatedAt: number;
|
|
58
|
+
_creationTime: number;
|
|
59
|
+
_id: string;
|
|
60
|
+
}, {
|
|
61
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
62
|
+
sampleRate: import("convex/values").VFloat64<number, "required">;
|
|
63
|
+
preserve: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
64
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
65
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
66
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
67
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
68
|
+
_id: import("convex/values").VString<string, "required">;
|
|
69
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
70
|
+
}, "required", "status" | "sampleRate" | "preserve" | "updatedAt" | "metadata" | "functionName" | "userId" | `metadata.${string}` | "_creationTime" | "_id">, "required">;
|
|
71
|
+
continueCursor: import("convex/values").VString<string, "required">;
|
|
72
|
+
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
73
|
+
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
74
|
+
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
75
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus">;
|
|
21
76
|
export declare const vSpan: import("convex/values").VObject<{
|
|
22
77
|
error?: string | undefined;
|
|
23
|
-
|
|
24
|
-
endTime?: number | undefined;
|
|
25
|
-
result?: any;
|
|
26
|
-
status: "error" | "success" | "pending";
|
|
78
|
+
status: "pending" | "success" | "error";
|
|
27
79
|
metadata?: Record<string, any> | undefined;
|
|
80
|
+
functionName?: string | undefined;
|
|
28
81
|
source: "frontend" | "backend";
|
|
29
82
|
spanName: string;
|
|
30
83
|
startTime: number;
|
|
31
|
-
|
|
84
|
+
endTime?: number | undefined;
|
|
85
|
+
duration?: number | undefined;
|
|
32
86
|
args?: any;
|
|
87
|
+
result?: any;
|
|
33
88
|
parentSpanId?: string | undefined;
|
|
34
|
-
traceId: string;
|
|
35
89
|
_creationTime: number;
|
|
90
|
+
traceId: string;
|
|
36
91
|
_id: string;
|
|
37
92
|
}, {
|
|
38
93
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
39
|
-
|
|
40
|
-
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
41
|
-
result: import("convex/values").VAny<any, "optional", string>;
|
|
42
|
-
status: import("convex/values").VUnion<"error" | "success" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
94
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
43
95
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
96
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
44
97
|
source: import("convex/values").VUnion<"frontend" | "backend", [import("convex/values").VLiteral<"frontend", "required">, import("convex/values").VLiteral<"backend", "required">], "required", never>;
|
|
45
98
|
spanName: import("convex/values").VString<string, "required">;
|
|
46
99
|
startTime: import("convex/values").VFloat64<number, "required">;
|
|
47
|
-
|
|
100
|
+
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
101
|
+
duration: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
48
102
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
103
|
+
result: import("convex/values").VAny<any, "optional", string>;
|
|
49
104
|
_id: import("convex/values").VString<string, "required">;
|
|
50
105
|
traceId: import("convex/values").VString<string, "required">;
|
|
51
106
|
parentSpanId: import("convex/values").VString<string | undefined, "optional">;
|
|
52
107
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
53
|
-
}, "required", "error" | "
|
|
108
|
+
}, "required", "error" | "status" | "metadata" | "functionName" | `metadata.${string}` | "_creationTime" | "source" | "traceId" | "parentSpanId" | "spanName" | "startTime" | "endTime" | "duration" | "args" | "result" | `args.${string}` | `result.${string}` | "_id">;
|
|
54
109
|
export declare const vLog: import("convex/values").VObject<{
|
|
55
110
|
metadata?: Record<string, any> | undefined;
|
|
56
|
-
severity: "
|
|
111
|
+
severity: "error" | "info" | "warn";
|
|
57
112
|
timestamp: number;
|
|
58
113
|
message: string;
|
|
59
|
-
spanId: string;
|
|
60
114
|
_creationTime: number;
|
|
115
|
+
spanId: string;
|
|
61
116
|
_id: string;
|
|
62
117
|
}, {
|
|
63
118
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
64
|
-
severity: import("convex/values").VUnion<"
|
|
119
|
+
severity: import("convex/values").VUnion<"error" | "info" | "warn", [import("convex/values").VLiteral<"info", "required">, import("convex/values").VLiteral<"warn", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
65
120
|
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
66
121
|
message: import("convex/values").VString<string, "required">;
|
|
67
122
|
_id: import("convex/values").VString<string, "required">;
|
|
68
123
|
spanId: import("convex/values").VString<string, "required">;
|
|
69
124
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
70
|
-
}, "required", "
|
|
125
|
+
}, "required", "metadata" | `metadata.${string}` | "_creationTime" | "severity" | "spanId" | "timestamp" | "message" | "_id">;
|
|
71
126
|
export declare const vSpanWithLogs: import("convex/values").VObject<{
|
|
72
127
|
error?: string | undefined;
|
|
73
|
-
|
|
74
|
-
endTime?: number | undefined;
|
|
75
|
-
result?: any;
|
|
76
|
-
status: "error" | "success" | "pending";
|
|
128
|
+
status: "pending" | "success" | "error";
|
|
77
129
|
metadata?: Record<string, any> | undefined;
|
|
130
|
+
functionName?: string | undefined;
|
|
78
131
|
source: "frontend" | "backend";
|
|
79
132
|
spanName: string;
|
|
80
133
|
startTime: number;
|
|
81
|
-
|
|
134
|
+
endTime?: number | undefined;
|
|
135
|
+
duration?: number | undefined;
|
|
82
136
|
args?: any;
|
|
137
|
+
result?: any;
|
|
83
138
|
parentSpanId?: string | undefined;
|
|
84
|
-
traceId: string;
|
|
85
139
|
_creationTime: number;
|
|
140
|
+
traceId: string;
|
|
86
141
|
_id: string;
|
|
87
142
|
logs?: {
|
|
88
143
|
metadata?: Record<string, any> | undefined;
|
|
89
|
-
severity: "
|
|
144
|
+
severity: "error" | "info" | "warn";
|
|
90
145
|
timestamp: number;
|
|
91
146
|
message: string;
|
|
92
|
-
spanId: string;
|
|
93
147
|
_creationTime: number;
|
|
148
|
+
spanId: string;
|
|
94
149
|
_id: string;
|
|
95
150
|
}[] | undefined;
|
|
96
151
|
children?: any[] | undefined;
|
|
97
152
|
}, {
|
|
98
153
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
99
|
-
|
|
100
|
-
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
101
|
-
result: import("convex/values").VAny<any, "optional", string>;
|
|
102
|
-
status: import("convex/values").VUnion<"error" | "success" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
154
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
103
155
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
156
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
104
157
|
source: import("convex/values").VUnion<"frontend" | "backend", [import("convex/values").VLiteral<"frontend", "required">, import("convex/values").VLiteral<"backend", "required">], "required", never>;
|
|
105
158
|
spanName: import("convex/values").VString<string, "required">;
|
|
106
159
|
startTime: import("convex/values").VFloat64<number, "required">;
|
|
107
|
-
|
|
160
|
+
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
161
|
+
duration: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
108
162
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
163
|
+
result: import("convex/values").VAny<any, "optional", string>;
|
|
109
164
|
_id: import("convex/values").VString<string, "required">;
|
|
110
165
|
traceId: import("convex/values").VString<string, "required">;
|
|
111
166
|
parentSpanId: import("convex/values").VString<string | undefined, "optional">;
|
|
112
167
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
113
168
|
logs: import("convex/values").VArray<{
|
|
114
169
|
metadata?: Record<string, any> | undefined;
|
|
115
|
-
severity: "
|
|
170
|
+
severity: "error" | "info" | "warn";
|
|
116
171
|
timestamp: number;
|
|
117
172
|
message: string;
|
|
118
|
-
spanId: string;
|
|
119
173
|
_creationTime: number;
|
|
174
|
+
spanId: string;
|
|
120
175
|
_id: string;
|
|
121
176
|
}[] | undefined, import("convex/values").VObject<{
|
|
122
177
|
metadata?: Record<string, any> | undefined;
|
|
123
|
-
severity: "
|
|
178
|
+
severity: "error" | "info" | "warn";
|
|
124
179
|
timestamp: number;
|
|
125
180
|
message: string;
|
|
126
|
-
spanId: string;
|
|
127
181
|
_creationTime: number;
|
|
182
|
+
spanId: string;
|
|
128
183
|
_id: string;
|
|
129
184
|
}, {
|
|
130
185
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
131
|
-
severity: import("convex/values").VUnion<"
|
|
186
|
+
severity: import("convex/values").VUnion<"error" | "info" | "warn", [import("convex/values").VLiteral<"info", "required">, import("convex/values").VLiteral<"warn", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
132
187
|
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
133
188
|
message: import("convex/values").VString<string, "required">;
|
|
134
189
|
_id: import("convex/values").VString<string, "required">;
|
|
135
190
|
spanId: import("convex/values").VString<string, "required">;
|
|
136
191
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
137
|
-
}, "required", "
|
|
192
|
+
}, "required", "metadata" | `metadata.${string}` | "_creationTime" | "severity" | "spanId" | "timestamp" | "message" | "_id">, "optional">;
|
|
138
193
|
children: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
139
|
-
}, "required", "error" | "
|
|
194
|
+
}, "required", "error" | "status" | "metadata" | "functionName" | `metadata.${string}` | "_creationTime" | "source" | "traceId" | "parentSpanId" | "spanName" | "startTime" | "endTime" | "duration" | "args" | "result" | `args.${string}` | `result.${string}` | "logs" | "_id" | "children">;
|
|
140
195
|
export declare const vCompleteTrace: import("convex/values").VObject<{
|
|
196
|
+
preserve?: boolean | undefined;
|
|
141
197
|
metadata?: Record<string, any> | undefined;
|
|
198
|
+
functionName?: string | undefined;
|
|
142
199
|
userId?: string | undefined;
|
|
143
|
-
|
|
144
|
-
status: "error" | "success" | "pending";
|
|
200
|
+
status: "pending" | "success" | "error";
|
|
145
201
|
sampleRate: number;
|
|
146
202
|
updatedAt: number;
|
|
147
203
|
_creationTime: number;
|
|
148
204
|
_id: string;
|
|
149
205
|
spans: {
|
|
150
206
|
error?: string | undefined;
|
|
151
|
-
|
|
152
|
-
endTime?: number | undefined;
|
|
153
|
-
result?: any;
|
|
154
|
-
status: "error" | "success" | "pending";
|
|
207
|
+
status: "pending" | "success" | "error";
|
|
155
208
|
metadata?: Record<string, any> | undefined;
|
|
209
|
+
functionName?: string | undefined;
|
|
156
210
|
source: "frontend" | "backend";
|
|
157
211
|
spanName: string;
|
|
158
212
|
startTime: number;
|
|
159
|
-
|
|
213
|
+
endTime?: number | undefined;
|
|
214
|
+
duration?: number | undefined;
|
|
160
215
|
args?: any;
|
|
216
|
+
result?: any;
|
|
161
217
|
parentSpanId?: string | undefined;
|
|
162
|
-
traceId: string;
|
|
163
218
|
_creationTime: number;
|
|
219
|
+
traceId: string;
|
|
164
220
|
_id: string;
|
|
165
221
|
logs?: {
|
|
166
222
|
metadata?: Record<string, any> | undefined;
|
|
167
|
-
severity: "
|
|
223
|
+
severity: "error" | "info" | "warn";
|
|
168
224
|
timestamp: number;
|
|
169
225
|
message: string;
|
|
170
|
-
spanId: string;
|
|
171
226
|
_creationTime: number;
|
|
227
|
+
spanId: string;
|
|
172
228
|
_id: string;
|
|
173
229
|
}[] | undefined;
|
|
174
230
|
children?: any[] | undefined;
|
|
175
231
|
}[];
|
|
176
232
|
}, {
|
|
177
|
-
status: import("convex/values").VUnion<"
|
|
233
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
178
234
|
sampleRate: import("convex/values").VFloat64<number, "required">;
|
|
179
235
|
preserve: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
180
236
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
181
237
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
238
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
182
239
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
183
240
|
_id: import("convex/values").VString<string, "required">;
|
|
184
241
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
185
242
|
spans: import("convex/values").VArray<{
|
|
186
243
|
error?: string | undefined;
|
|
187
|
-
|
|
188
|
-
endTime?: number | undefined;
|
|
189
|
-
result?: any;
|
|
190
|
-
status: "error" | "success" | "pending";
|
|
244
|
+
status: "pending" | "success" | "error";
|
|
191
245
|
metadata?: Record<string, any> | undefined;
|
|
246
|
+
functionName?: string | undefined;
|
|
192
247
|
source: "frontend" | "backend";
|
|
193
248
|
spanName: string;
|
|
194
249
|
startTime: number;
|
|
195
|
-
|
|
250
|
+
endTime?: number | undefined;
|
|
251
|
+
duration?: number | undefined;
|
|
196
252
|
args?: any;
|
|
253
|
+
result?: any;
|
|
197
254
|
parentSpanId?: string | undefined;
|
|
198
|
-
traceId: string;
|
|
199
255
|
_creationTime: number;
|
|
256
|
+
traceId: string;
|
|
200
257
|
_id: string;
|
|
201
258
|
logs?: {
|
|
202
259
|
metadata?: Record<string, any> | undefined;
|
|
203
|
-
severity: "
|
|
260
|
+
severity: "error" | "info" | "warn";
|
|
204
261
|
timestamp: number;
|
|
205
262
|
message: string;
|
|
206
|
-
spanId: string;
|
|
207
263
|
_creationTime: number;
|
|
264
|
+
spanId: string;
|
|
208
265
|
_id: string;
|
|
209
266
|
}[] | undefined;
|
|
210
267
|
children?: any[] | undefined;
|
|
211
268
|
}[], import("convex/values").VObject<{
|
|
212
269
|
error?: string | undefined;
|
|
213
|
-
|
|
214
|
-
endTime?: number | undefined;
|
|
215
|
-
result?: any;
|
|
216
|
-
status: "error" | "success" | "pending";
|
|
270
|
+
status: "pending" | "success" | "error";
|
|
217
271
|
metadata?: Record<string, any> | undefined;
|
|
272
|
+
functionName?: string | undefined;
|
|
218
273
|
source: "frontend" | "backend";
|
|
219
274
|
spanName: string;
|
|
220
275
|
startTime: number;
|
|
221
|
-
|
|
276
|
+
endTime?: number | undefined;
|
|
277
|
+
duration?: number | undefined;
|
|
222
278
|
args?: any;
|
|
279
|
+
result?: any;
|
|
223
280
|
parentSpanId?: string | undefined;
|
|
224
|
-
traceId: string;
|
|
225
281
|
_creationTime: number;
|
|
282
|
+
traceId: string;
|
|
226
283
|
_id: string;
|
|
227
284
|
logs?: {
|
|
228
285
|
metadata?: Record<string, any> | undefined;
|
|
229
|
-
severity: "
|
|
286
|
+
severity: "error" | "info" | "warn";
|
|
230
287
|
timestamp: number;
|
|
231
288
|
message: string;
|
|
232
|
-
spanId: string;
|
|
233
289
|
_creationTime: number;
|
|
290
|
+
spanId: string;
|
|
234
291
|
_id: string;
|
|
235
292
|
}[] | undefined;
|
|
236
293
|
children?: any[] | undefined;
|
|
237
294
|
}, {
|
|
238
295
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
239
|
-
|
|
240
|
-
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
241
|
-
result: import("convex/values").VAny<any, "optional", string>;
|
|
242
|
-
status: import("convex/values").VUnion<"error" | "success" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
296
|
+
status: import("convex/values").VUnion<"pending" | "success" | "error", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
243
297
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
298
|
+
functionName: import("convex/values").VString<string | undefined, "optional">;
|
|
244
299
|
source: import("convex/values").VUnion<"frontend" | "backend", [import("convex/values").VLiteral<"frontend", "required">, import("convex/values").VLiteral<"backend", "required">], "required", never>;
|
|
245
300
|
spanName: import("convex/values").VString<string, "required">;
|
|
246
301
|
startTime: import("convex/values").VFloat64<number, "required">;
|
|
247
|
-
|
|
302
|
+
endTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
303
|
+
duration: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
248
304
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
305
|
+
result: import("convex/values").VAny<any, "optional", string>;
|
|
249
306
|
_id: import("convex/values").VString<string, "required">;
|
|
250
307
|
traceId: import("convex/values").VString<string, "required">;
|
|
251
308
|
parentSpanId: import("convex/values").VString<string | undefined, "optional">;
|
|
252
309
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
253
310
|
logs: import("convex/values").VArray<{
|
|
254
311
|
metadata?: Record<string, any> | undefined;
|
|
255
|
-
severity: "
|
|
312
|
+
severity: "error" | "info" | "warn";
|
|
256
313
|
timestamp: number;
|
|
257
314
|
message: string;
|
|
258
|
-
spanId: string;
|
|
259
315
|
_creationTime: number;
|
|
316
|
+
spanId: string;
|
|
260
317
|
_id: string;
|
|
261
318
|
}[] | undefined, import("convex/values").VObject<{
|
|
262
319
|
metadata?: Record<string, any> | undefined;
|
|
263
|
-
severity: "
|
|
320
|
+
severity: "error" | "info" | "warn";
|
|
264
321
|
timestamp: number;
|
|
265
322
|
message: string;
|
|
266
|
-
spanId: string;
|
|
267
323
|
_creationTime: number;
|
|
324
|
+
spanId: string;
|
|
268
325
|
_id: string;
|
|
269
326
|
}, {
|
|
270
327
|
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
271
|
-
severity: import("convex/values").VUnion<"
|
|
328
|
+
severity: import("convex/values").VUnion<"error" | "info" | "warn", [import("convex/values").VLiteral<"info", "required">, import("convex/values").VLiteral<"warn", "required">, import("convex/values").VLiteral<"error", "required">], "required", never>;
|
|
272
329
|
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
273
330
|
message: import("convex/values").VString<string, "required">;
|
|
274
331
|
_id: import("convex/values").VString<string, "required">;
|
|
275
332
|
spanId: import("convex/values").VString<string, "required">;
|
|
276
333
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
277
|
-
}, "required", "
|
|
334
|
+
}, "required", "metadata" | `metadata.${string}` | "_creationTime" | "severity" | "spanId" | "timestamp" | "message" | "_id">, "optional">;
|
|
278
335
|
children: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
279
|
-
}, "required", "error" | "
|
|
280
|
-
}, "required", "status" | "
|
|
336
|
+
}, "required", "error" | "status" | "metadata" | "functionName" | `metadata.${string}` | "_creationTime" | "source" | "traceId" | "parentSpanId" | "spanName" | "startTime" | "endTime" | "duration" | "args" | "result" | `args.${string}` | `result.${string}` | "logs" | "_id" | "children">, "required">;
|
|
337
|
+
}, "required", "status" | "sampleRate" | "preserve" | "updatedAt" | "metadata" | "functionName" | "userId" | `metadata.${string}` | "_creationTime" | "spans" | "_id">;
|
|
281
338
|
export type Trace = Infer<typeof vTrace>;
|
|
282
339
|
export type Span = Infer<typeof vSpan>;
|
|
283
340
|
export type Log = Infer<typeof vLog>;
|
|
284
341
|
export type SpanWithLogs = Infer<typeof vSpanWithLogs>;
|
|
285
342
|
export type CompleteTrace = Infer<typeof vCompleteTrace>;
|
|
343
|
+
export type paginatedTraces = Infer<typeof vPaginatedTraces>;
|
|
286
344
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/component/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/component/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAK,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;4JAGjB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mFAAoC,CAAC;AAElE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yQAQd,CAAC;AAEL,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;6HAIf,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+RAGxB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sKAEzB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AACvC,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACrC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/component/types.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { paginationResultValidator } from "convex/server";
|
|
1
2
|
import { v } from "convex/values";
|
|
2
3
|
import schema from "./schema";
|
|
3
4
|
export const vTrace = schema.tables.traces.validator.extend({
|
|
4
5
|
_id: v.string(),
|
|
5
6
|
_creationTime: v.number(),
|
|
6
7
|
});
|
|
8
|
+
export const vPaginatedTraces = paginationResultValidator(vTrace);
|
|
7
9
|
export const vSpan = schema.tables.spans.validator
|
|
8
10
|
.omit("parentSpanId")
|
|
9
11
|
.omit("traceId")
|