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

fix: add log severity #10835

Merged
merged 2 commits into from
Dec 18, 2024
Merged

fix: add log severity #10835

merged 2 commits into from
Dec 18, 2024

Conversation

alexghr
Copy link
Contributor

@alexghr alexghr commented Dec 18, 2024

An attempt to get log levels recognized by Google's Log Explorer service

Comment on lines 80 to 86
case 'debug':
case 'verbose':
severity = 'DEBUG';
break;
case 'info':
severity = 'INFO';
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

WDYT about mapping debug to DEBUG, verbose to INFO, and info to NOTICE, so we keep that extra granularity? It may be confusing that our infos get propagated as notice instead of info though...

Comment on lines +108 to +110
formatters: {
level: levelToSeverityFormatter,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a way to apply this formatter to the stdio transport only? We don't need to make this change in the OTEL transport.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to the pino docs, no. But I'm not sure if that means we can't customize the log level at all or if we can't customize it per transport.

https://github.com/pinojs/pino/blob/main/docs/api.md#level

Copy link
Contributor

Changes to circuit sizes

Generated at commit: 1f1224b7f537b95504156fd55eee4f9e54913297, compared to commit: b13bc93ae3e2d71259adc1a23c8cea462084ec08

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_empty -2 ✅ -0.21% +36,995 ❌ +4.28%
parity_root 0 ➖ 0.00% +148,083 ❌ +4.25%
rollup_merge 0 ➖ 0.00% +74,025 ❌ +4.24%
rollup_root 0 ➖ 0.00% +74,057 ❌ +3.90%
rollup_block_merge 0 ➖ 0.00% +74,057 ❌ +3.90%
rollup_block_root 0 ➖ 0.00% +111,087 ❌ +2.59%
rollup_base_private -172 ✅ -0.00% +36,564 ❌ +0.33%
rollup_base_public 0 ➖ 0.00% +37,017 ❌ +0.29%
private_kernel_reset -4 ✅ -0.00% -4 ✅ -0.00%
private_kernel_reset_4_4_4_4_4_4_4_4_4 -4 ✅ -0.01% -6 ✅ -0.01%
private_kernel_tail_to_public -4 ✅ -0.03% -2 ✅ -0.01%
private_kernel_inner -6 ✅ -0.01% -6 ✅ -0.01%
private_kernel_tail -4 ✅ -0.07% -2 ✅ -0.01%
private_kernel_init -9 ✅ -0.03% -9 ✅ -0.02%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
private_kernel_empty 965 (-2) -0.21% 902,000 (+36,995) +4.28%
parity_root 4,290 (0) 0.00% 3,636,016 (+148,083) +4.25%
rollup_merge 1,791 (0) 0.00% 1,818,977 (+74,025) +4.24%
rollup_root 32,390 (0) 0.00% 1,974,844 (+74,057) +3.90%
rollup_block_merge 32,406 (0) 0.00% 1,974,858 (+74,057) +3.90%
rollup_block_root 682,326 (0) 0.00% 4,404,486 (+111,087) +2.59%
rollup_base_private 3,619,601 (-172) -0.00% 11,261,503 (+36,564) +0.33%
rollup_base_public 3,851,252 (0) 0.00% 12,654,734 (+37,017) +0.29%
private_kernel_reset 97,775 (-4) -0.00% 634,161 (-4) -0.00%
private_kernel_reset_4_4_4_4_4_4_4_4_4 36,611 (-4) -0.01% 92,090 (-6) -0.01%
private_kernel_tail_to_public 15,892 (-4) -0.03% 30,039 (-2) -0.01%
private_kernel_inner 46,254 (-6) -0.01% 64,360 (-6) -0.01%
private_kernel_tail 5,338 (-4) -0.07% 15,187 (-2) -0.01%
private_kernel_init 27,944 (-9) -0.03% 40,474 (-9) -0.02%

@alexghr alexghr enabled auto-merge (squash) December 18, 2024 13:18
@alexghr alexghr merged commit c9e2f82 into master Dec 18, 2024
72 checks passed
@alexghr alexghr deleted the ag/log-severity branch December 18, 2024 13:38
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