grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.45k stars 216 forks source link

Update internal logging to expose the slog logger to components #2076

Open wildum opened 1 week ago

wildum commented 1 week ago

Context:

We use slog but we are passing a go-kit logger interface to the components for compatibility. Ideally we would like to be able to pass the slog logger to the components that can support it.

The solution might be to pass our internal logger down to the components because it supports both go-kit and slog but it would require to implement the log.With equivalent.

The blast radius is important with this change.