-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Structured logs for relayer logic #1491
Merged
Merged
Changes from 6 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
a29c9c7
More structure in logs, pass 1
adizere 4df293f
Pass 2
adizere 5ae8e42
Pass 3
adizere 50ff524
Resolving todos, refactoring
adizere 794a7bf
Better config.toml comment
adizere cc5e158
Merge branch 'master' into adi/structured_logs
adizere d75c832
Post-merge fixes
adizere 9d17f44
Merge branch 'master' into adi/structured_logs
mzabaluev a2c3311
Post-merge fix
mzabaluev 5906035
Sketch: printing tx hashes from SendPacket events.
adizere 74913b7
log the tx hashes in ibc_channel event SendPacket
mzabaluev dcf662a
Improve code to print out the tx hash
mzabaluev f9ca4db
Actually enter the tracing span
mzabaluev 5de3f2b
Apply suggestions from code review
adizere 1d15085
Comment explaining TrackedMsgs
adizere 60e66e6
Removed use of TrackedEvents Display impl
adizere 4d94d54
Merge branch 'master' into adi/structured_logs
mzabaluev d189d2c
Erase Display impl for TrackedMsgs
mzabaluev 3166f76
Allow passing IDs without copy in TrackedMsgs
mzabaluev c93249b
Different tracking ids for creation flows
mzabaluev 1bba81b
Redo displaying for OperationalData
mzabaluev 6df6b63
Deabbreviate an info level log message
mzabaluev 85c60fa
Improve logging of operational data
mzabaluev b8e9c7c
Merge branch 'master' into adi/structured_logs
mzabaluev d84bccd
Remove verbose wording on TrackedMsgs IDs
mzabaluev c5f7d87
Merge branch 'master' into adi/structured_logs
mzabaluev 0507161
Fix typos in descriptions of RunError variants
mzabaluev 914373c
Use a tracing span for task log messages
mzabaluev d1ae093
Rework tracing spans for background tasks
mzabaluev 108d081
Merge branch 'master' into adi/structured_logs
mzabaluev e6b41f9
Erase Display impl on RelayPath, use spans instead
mzabaluev 73d135e
Shorten or remove span IDs for supervisor tasks
mzabaluev 6cb9023
Erase [rest] prefixes from log messages
mzabaluev c69aa81
Merge branch 'master' into adi/structured_logs
mzabaluev 7ae8880
Simplification & consolidation w/ Mikhail
adizere bfec7d6
Changelog entry for #1491
mzabaluev 45a9761
Merge branch 'master' into adi/structured_logs
mzabaluev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -768,7 +768,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
pub fn build_conn_init_and_send(&self) -> Result<IbcEvent, ConnectionError> { | ||
let dst_msgs = self.build_conn_init()?; | ||
|
||
let tm = TrackedMsgs::new(dst_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(dst_msgs, "create connection with ConnectionOpenInit"); | ||
mzabaluev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
let events = self | ||
.dst_chain() | ||
|
@@ -828,7 +828,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
.map_err(|e| ConnectionError::chain_query(self.dst_chain().id(), e))?; | ||
let client_msgs = self.build_update_client_on_src(src_client_target_height)?; | ||
|
||
let tm = TrackedMsgs::new(client_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(client_msgs, "update client on source for ConnectionOpenTry"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't think of a shorter way to formulate this without losing context. I guess we can keep it as it is. |
||
self.src_chain() | ||
.send_messages_and_wait_commit(tm) | ||
.map_err(|e| ConnectionError::submit(self.src_chain().id(), e))?; | ||
|
@@ -899,7 +899,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
pub fn build_conn_try_and_send(&self) -> Result<IbcEvent, ConnectionError> { | ||
let dst_msgs = self.build_conn_try()?; | ||
|
||
let tm = TrackedMsgs::new(dst_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(dst_msgs, "create connection with ConnectionOpenTry"); | ||
mzabaluev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
let events = self | ||
.dst_chain() | ||
|
@@ -949,7 +949,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
.map_err(|e| ConnectionError::chain_query(self.dst_chain().id(), e))?; | ||
let client_msgs = self.build_update_client_on_src(src_client_target_height)?; | ||
|
||
let tm = TrackedMsgs::new(client_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(client_msgs, "update client on source for ConnectionOpenAck"); | ||
|
||
self.src_chain() | ||
.send_messages_and_wait_commit(tm) | ||
|
@@ -995,7 +995,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
pub fn build_conn_ack_and_send(&self) -> Result<IbcEvent, ConnectionError> { | ||
let dst_msgs = self.build_conn_ack()?; | ||
|
||
let tm = TrackedMsgs::new(dst_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(dst_msgs, "create connection with ConnectionOpenAck"); | ||
mzabaluev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
let events = self | ||
.dst_chain() | ||
|
@@ -1074,7 +1074,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Connection<ChainA, ChainB> { | |
pub fn build_conn_confirm_and_send(&self) -> Result<IbcEvent, ConnectionError> { | ||
let dst_msgs = self.build_conn_confirm()?; | ||
|
||
let tm = TrackedMsgs::new(dst_msgs, "create connection"); | ||
let tm = TrackedMsgs::new(dst_msgs, "create connection with ConnectionOpenConfirm"); | ||
mzabaluev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
let events = self | ||
.dst_chain() | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is clearer!