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

add trace_id to substreams logger #4868

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

mangas
Copy link
Contributor

@mangas mangas commented Sep 15, 2023

No description provided.

message: Option<SubstreamsMessage>,
) -> Result<Option<BlockStreamEvent<Chain>>, SubstreamsError> {
match message {
Some(SubstreamsMessage::Session(session_init)) => {
*logger = logger.new(o!("trace_id" => session_init.trace_id));
return Ok(None);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add right away also a log line saying that session is initialized logging every pieces found in SessionInit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just saw that some new fields in SessionInit are not re-surfaced, let's not delay that more and will had in another PR.

@mangas mangas merged commit 70a2c99 into master Sep 15, 2023
6 checks passed
@mangas mangas deleted the filipe/log-substreams-trace-id branch September 15, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants