Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
remychantenay committed Sep 12, 2023
1 parent bef8f68 commit 900c589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![GoDoc](https://godoc.org/github.com/remychantenay/slog-otel?status.svg)](https://godoc.org/github.com/remychantenay/slog-otel)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Go package that provides an implementation of `log/slog` [Handler interface](https://pkg.go.dev/log/slog#Handler) to ensure a strong correlation between log records and [Open-Telemetry spans](https://opentelemetry.io/docs/concepts/signals/traces/#spans) by...
Go package that provides an implementation of `log/slog`'s [Handler interface](https://pkg.go.dev/log/slog#Handler) that ensures a strong correlation between log records and [Open-Telemetry spans](https://opentelemetry.io/docs/concepts/signals/traces/#spans) by...

1. Adding span and trace IDs to the log record.
2. Adding context baggage members to the log record.
Expand Down
2 changes: 1 addition & 1 deletion slog_otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (h OtelHandler) WithGroup(name string) slog.Handler {
}

// Enabled reports whether the logger emits log records at the given context and level.
// Note: We handover the decision down to the next middleware.
// Note: We handover the decision down to the next handler.
func (h OtelHandler) Enabled(ctx context.Context, level slog.Level) bool {
return h.Next.Enabled(ctx, level)
}
Expand Down

0 comments on commit 900c589

Please sign in to comment.