-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support slog logger #26
Comments
The development of this feature is in progress. |
OTel Go maintainer here. @zstone12, I think you should considering supporting OTel Go Logs API: https://pkg.go.dev/go.opentelemetry.io/otel/log |
@pellared - just for my understanding, why can't the OTel Go Logs API be implemented as a |
Take a look at https://github.com/open-telemetry/opentelemetry-go/blob/main/log/DESIGN.md#reuse-slog Therefore, you can use Given this is an PS. Take my words with a grain of salt as I never used nor tried using PPS. Thanks to you I updated the design doc as I was outdated a little: open-telemetry/opentelemetry-go#6206 |
Describe the feature
Add support for the Structured Logging (
slog
) standard library in Go.Motivation
Implementing support for
slog
will align this module with Go's ecosystem standards, enhancing its portability and interoperability.note: This feature would also allow the module to accommodate other logging requests, as
slog
's backend interface (Handler) can be adapted to support various popular logging packages. For example, existing integrations include https://github.com/samber/slog-zap and https://github.com/samber/slog-zerolog.Related Issues
The text was updated successfully, but these errors were encountered: