pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

[Logging] Streamline logging methodologies #600

Open Olshansk opened 1 year ago

Olshansk commented 1 year ago

Objective

Document/consolidate/fix all the different ways of labelling.

Origin Document

While debugging, I found myself looking at this screen and am unsure why things are different as a core contributor to the project:

Screenshot 2023-03-21 at 12 27 28 PM

Example:

This logline: p.logger.Info().Int64("height", p.Height).Msg("About to release context") Has this output: {"level":"info","module":"persistence","height":0,"time":"2023-03-22T16:14:03Z","message":"About to release context"}

This logline: m.logger.Warn().Fields(m.sharedLoggingFields()).Msgf("⏰ Interrupt ⏰ due to: %s", reason) Has this output: level=WARN ⏰ Interrupt ⏰ due to: pacemaker timeout height=0 module=pacemaker round=7 step=1

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: @Olshansk Co-Owners: @okdas

jessicadaugherty commented 1 year ago

Hey! This is currently in up next but hasn't been discussed in planning for a while. Do we want to resurface the conversation or move this to the backlog?

Olshansk commented 1 year ago

Hey! This is currently in up next but hasn't been discussed in planning for a while. Do we want to resurface the conversation or move this to the backlog?

Moved to backlog

okdas commented 1 year ago

I moved this to the Devnet of Servicers milestone as we're focusing on observability at the moment.

Olshansk commented 1 year ago

@okdas Added this deliverable: - [ ] Make sure all the documentation and details from #189 are readily available and accessible