You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default provider.New sets up the structured/text slog.Logger for use out of the box. These logs are printed to stderr and as per the host otel documentation these aren't exported to otel. The otel logger which is setup in the provider also doesn't forward them. I propose that if remote logs are enabled then the p.Logger should automatically forward them.
The library github.com/samber/slog-multi allows you to fanout to multiple slog.Handler. The code would look something like the following:
Description
The default
provider.New
sets up the structured/textslog.Logger
for use out of the box. These logs are printed tostderr
and as per the host otel documentation these aren't exported to otel. The otel logger which is setup in the provider also doesn't forward them. I propose that if remote logs are enabled then thep.Logger
should automatically forward them.The library
github.com/samber/slog-multi
allows you to fanout to multipleslog.Handler
. The code would look something like the following:Would anyone have any objections to this or is it preferred for logs to be exported to otel manually?
The text was updated successfully, but these errors were encountered: