package-analysis
package-analysis copied to clipboard
Apply the logging labels "ecosystem", "package" and "version" across all logging during an analysis run.
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.
Other related thoughts:
- as well as logging
ecosystem,packageandversionwe should also logmessage idacross all logs. A pubsub message is useful as a context ID across the life of an individual analysis request.
Note: this is now being implemented by using log/slog in Go v1.21 and passing the vars in a Context.
@calebbrown can this be closed now?
Yes!