-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console-api,console-subscriber,tokio-console: implement stack traces …
…for tasks The task detail view of console now shows the tree of extant consequences stemming from that task; i.e., which spans are open beneath the task. The leaves of the task, in a sense, reflect what the task is busy doing at that moment.
- Loading branch information
Showing
22 changed files
with
742 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
syntax = "proto3"; | ||
|
||
package rs.tokio.console.consequences; | ||
|
||
import "common.proto"; | ||
|
||
message Causality { | ||
oneof update { | ||
Extant extant = 1; | ||
OpenDirect open_direct = 2; | ||
NewIndirect new_indirect = 3; | ||
CloseDirect close_direct = 4; | ||
CloseIndirect close_indirect = 5; | ||
CloseCyclic close_cyclic = 6; | ||
} | ||
} | ||
|
||
message Span { | ||
common.SpanId span_id = 1; | ||
common.MetaId metadata_id = 2; | ||
} | ||
|
||
message Extant { | ||
Span cause = 1; | ||
repeated Span direct_consequences = 2; | ||
repeated Span indirect_consequences = 3; | ||
} | ||
|
||
message OpenDirect { | ||
Span cause = 1; | ||
Span direct_consequences = 2; | ||
} | ||
|
||
message NewIndirect { | ||
Span cause = 1; | ||
Span indirect_consequences = 3; | ||
} | ||
|
||
message CloseDirect { | ||
Span span = 1; | ||
optional Span direct_cause = 2; | ||
} | ||
|
||
message CloseIndirect { | ||
Span span = 1; | ||
repeated Span indirect_causes = 3; | ||
} | ||
|
||
message CloseCyclic { | ||
Span span = 1; | ||
optional Span direct_cause = 2; | ||
repeated Span indirect_causes = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include!("generated/rs.tokio.console.consequences.rs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.