package-analysis icon indicating copy to clipboard operation
package-analysis copied to clipboard

Apply the logging labels "ecosystem", "package" and "version" across all logging during an analysis run.

Open calebbrown opened this issue 4 years ago • 1 comments

This will make it easier to filter logs in GCloud based on what is happening.

We likely need to refactor the logging to support this and may eventually need to pass a "logger" between various components.

calebbrown avatar Dec 02 '21 02:12 calebbrown

Other related thoughts:

  • as well as logging ecosystem, package and version we should also log message id across all logs. A pubsub message is useful as a context ID across the life of an individual analysis request.

calebbrown avatar Dec 06 '21 05:12 calebbrown

Note: this is now being implemented by using log/slog in Go v1.21 and passing the vars in a Context.

calebbrown avatar Aug 30 '23 10:08 calebbrown

@calebbrown can this be closed now?

maxfisher-g avatar Oct 18 '23 04:10 maxfisher-g

Yes!

calebbrown avatar Oct 24 '23 01:10 calebbrown