version: Add a slog helper (#886)
Add a function to enable structured logging of version info.
Example use:
```go
logger := promslog.New(promslog.Config{})
logger.Info("Starting Prometheus Server", version.Slog()...)
```
Signed-off-by: SuperQ <superq@gmail.com>This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.
context.Context