prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
756 stars 311 forks source link

Create new error types in proc.go and use them to unify error messages #526

Closed conallob closed 1 year ago

conallob commented 1 year ago

Start using new errors to unify error messages, complete with groundwork for wrapping errors once Go v1.20+ is the default

This implements https://github.com/prometheus/procfs/issues/358

conallob commented 1 year ago

https://github.com/prometheus/procfs/issues/519 already exists to track wrapping errors, once Go v1.20 is the default version