0xPolygonHermez / zkevm-bridge-service

Other
68 stars 66 forks source link

Use context logger #590

Open trunghai95 opened 6 months ago

trunghai95 commented 6 months ago

Closes #.

What does this PR do?

Use a more "contextual" logger to make it easy to trace the logs that belong to the same context (e.g. one API request, or one monitorTx cycle). The main idea is to generate a random "traceID" and pass it down through the ctx object.

Reviewers

Main reviewers:

Codeowner reviewers:

cla-bot[bot] commented 6 months ago

We require contributors/corporates @trunghai95 to read our Contributor License Agreement, please check the Individual CLA document/Corporate CLA document

cla-bot[bot] commented 6 months ago

We require contributors/corporates @trunghai95 to read our Contributor License Agreement, please check the Individual CLA document/Corporate CLA document

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
12 New issues

Measures
0 Security Hotspots
No data about Coverage
0.5% Duplication on New Code

See analysis details on SonarCloud

trunghai95 commented 4 months ago

Hi team, can someone help to review this? It will take me a lot of time to resolve conflicts if this gets stuck here for too long...

ARR552 commented 1 week ago

Hi @trunghai95, can you fix the conflicts?? I will add you to cla bot verification once it is done