Skip to content
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

otelslog: Handle nil values #6242

Closed
pellared opened this issue Oct 13, 2024 · 0 comments · Fixed by #6246
Closed

otelslog: Handle nil values #6242

pellared opened this issue Oct 13, 2024 · 0 comments · Fixed by #6246
Assignees
Labels
bridge: slog Related to the slog bridge bug Something isn't working
Milestone

Comments

@pellared
Copy link
Member

pellared commented Oct 13, 2024

Most likely otelslog does handle empty values (and nil) properly:

case slog.KindAny:
return log.StringValue(fmt.Sprintf("%+v", v.Any()))

@pellared pellared added bug Something isn't working bridge: slog Related to the slog bridge labels Oct 13, 2024
@pellared pellared self-assigned this Oct 13, 2024
@pellared pellared added this to the v1.32.0 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bridge: slog Related to the slog bridge bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant