@nextscope/next 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,152 @@
1
+ export interface InspectorTraceSummary {
2
+ traceId: string;
3
+ requestSegmentId: string;
4
+ revision: number;
5
+ updatedAt: string;
6
+ spanCount: number;
7
+ traceSpanCount: number;
8
+ segmentCount: number;
9
+ rootSpan: {
10
+ spanId: string;
11
+ name: string;
12
+ route?: string;
13
+ target?: string;
14
+ method?: string;
15
+ statusCode?: number;
16
+ spanType?: string;
17
+ startTimeUnixNano: string;
18
+ durationMs: number;
19
+ attributes?: Record<string, unknown>;
20
+ };
21
+ startTimeUnixNano: string;
22
+ timestamp: string;
23
+ durationMs: number;
24
+ statusBucket: string;
25
+ requestKind: string;
26
+ hasRsc: boolean;
27
+ hasPrefetch: boolean;
28
+ routeLabel: string;
29
+ errorSpanCount: number;
30
+ serviceNames: string[];
31
+ durationRangeMs: {
32
+ start: number;
33
+ end: number;
34
+ };
35
+ requestSegments: InspectorRequestSegment[];
36
+ topSlowSpans: InspectorDiagnosticSpan[];
37
+ firstError?: InspectorErrorSummary;
38
+ exceptionSummary?: InspectorExceptionSummary;
39
+ criticalPath: InspectorCriticalPath;
40
+ }
41
+ export interface InspectorTrace extends InspectorTraceSummary {
42
+ spans: InspectorSpan[];
43
+ }
44
+ export interface InspectorStatus {
45
+ route: string;
46
+ traceCount: number;
47
+ lastIngestAt?: string;
48
+ suppressedCount: number;
49
+ forwarding: {
50
+ configured: boolean;
51
+ enabled: boolean;
52
+ protocol?: string;
53
+ endpoint?: string;
54
+ lastSuccessAt?: string;
55
+ lastError?: string;
56
+ };
57
+ lastParseError?: string;
58
+ lastForwardError?: string;
59
+ lastError?: string;
60
+ }
61
+ export interface InspectorRequestSegment {
62
+ requestSegmentId: string;
63
+ rootSpan: InspectorTraceSummary['rootSpan'];
64
+ routeLabel: string;
65
+ statusBucket: string;
66
+ requestKind: string;
67
+ startOffsetMs: number;
68
+ endOffsetMs: number;
69
+ durationMs: number;
70
+ spanCount: number;
71
+ errorSpanCount: number;
72
+ topSlowSpans: InspectorDiagnosticSpan[];
73
+ firstError?: InspectorErrorSummary;
74
+ exceptionSummary?: InspectorExceptionSummary;
75
+ criticalPath: InspectorCriticalPath;
76
+ }
77
+ export interface InspectorDiagnosticSpan {
78
+ spanId: string;
79
+ name: string;
80
+ durationMs: number;
81
+ offsetMs: number;
82
+ serviceName?: string;
83
+ hasError: boolean;
84
+ }
85
+ export interface InspectorErrorSummary {
86
+ spanId: string;
87
+ name: string;
88
+ offsetMs: number;
89
+ statusCode?: number;
90
+ statusMessage?: string;
91
+ exceptionType?: string;
92
+ exceptionMessage?: string;
93
+ }
94
+ export interface InspectorExceptionSummary {
95
+ count: number;
96
+ firstMessage?: string;
97
+ firstType?: string;
98
+ }
99
+ export interface InspectorCriticalPath {
100
+ durationMs: number;
101
+ spanIds: string[];
102
+ names: string[];
103
+ }
104
+ export interface InspectorSpan {
105
+ spanId: string;
106
+ parentSpanId?: string;
107
+ name: string;
108
+ kind?: string | number;
109
+ startTimeUnixNano: string;
110
+ endTimeUnixNano: string;
111
+ durationMs: number;
112
+ offsetMs: number;
113
+ endOffsetMs: number;
114
+ serviceName?: string;
115
+ statusCode?: number;
116
+ hasError: boolean;
117
+ attributes: Record<string, unknown>;
118
+ resourceAttributes: Record<string, unknown>;
119
+ spanType?: string;
120
+ status?: {
121
+ code?: string | number;
122
+ message?: string;
123
+ };
124
+ events: InspectorSpanEvent[];
125
+ links: InspectorSpanLink[];
126
+ childCount: number;
127
+ errorChildCount: number;
128
+ children: InspectorSpan[];
129
+ }
130
+ export interface InspectorSpanEvent {
131
+ timeUnixNano: string;
132
+ offsetMs: number;
133
+ name: string;
134
+ attributes: Record<string, unknown>;
135
+ }
136
+ export interface InspectorSpanLink {
137
+ traceId?: string;
138
+ spanId?: string;
139
+ traceState?: string;
140
+ attributes: Record<string, unknown>;
141
+ }
142
+ export interface FlatSpanRow {
143
+ span: InspectorSpan;
144
+ depth: number;
145
+ index: number;
146
+ isLastChild: boolean;
147
+ ancestorLastChild: boolean[];
148
+ hasChildren: boolean;
149
+ isCollapsed: boolean;
150
+ isSearchMatch: boolean;
151
+ isSearchAncestor: boolean;
152
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/inspector/model/types.ts"],"names":[],"mappings":""}