feat: visualize attached events on the trace widget (#190)

This commit is contained in:
Fine0830
2022-11-24 11:19:25 +08:00
committed by GitHub
parent da1db8def6
commit 7d802d490e
13 changed files with 263 additions and 24 deletions

17
src/types/trace.d.ts vendored
View File

@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface Trace {
duration: number;
isError: boolean;
@@ -85,3 +84,19 @@ export class TraceTreeRef {
segmentMap: Map<string, Span>;
segmentIdGroup: string[];
}
type Instant = {
seconds: number;
nanos: number;
};
type KeyValue = {
key: string;
value: string | number;
};
export interface SpanAttachedEvent {
startTime: Instant;
endTime: Instant;
event: string;
tags: KeyValue[];
summary: KeyValue[];
}