Skip to content
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

Tracing instrument tagging #284

Closed

Conversation

ceyhunsen
Copy link
Member

@ceyhunsen ceyhunsen commented Sep 6, 2024

Description

This PR adds #[tracing::instrument] tag to some core functions. Aims to provide context to debug information.

Old log example:

2024-09-06T14:59:51.593660Z TRACE bitcoincore_rpc: JSON-RPC response for sendrawtransaction: "8fdeea20c10c134b1be2e87548dadefb5e558e3eda787935627b5430dec93c60"

New log example:

2024-09-06T14:57:45.870395Z TRACE send_to_address{address=bcrt1plr5908qjdayaa5ehcxwy7hcur9glqafpvtt2v8c2nc24s4v5899s50wnte amount_sats=10000000}: bitcoincore_rpc: JSON-RPC response for sendtoaddress: "42bd0cbe5ea480e70cf834cf57c9d65063769d33caf978c3cbadaec575e52ce4"    

@ceyhunsen ceyhunsen added the enhancement New feature or request label Sep 6, 2024
@ceyhunsen ceyhunsen self-assigned this Sep 6, 2024
@ceyhunsen ceyhunsen changed the base branch from main to ceyhun/tracing_improvements September 6, 2024 14:54
@ceyhunsen
Copy link
Member Author

This weirdly results some logs to disappear. Disappeared logs are located in server functions. No need to investigate, closing.

@ceyhunsen ceyhunsen closed this Sep 9, 2024
@ceyhunsen ceyhunsen deleted the ceyhun/tracing_instrument_tagging branch September 9, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant