Skip to content

Commit

Permalink
Update log bridge packages comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Oct 15, 2024
1 parent e20c2d5 commit 5c5fbac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bridges/otellogrus/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// - [logrus.PanicLevel] is transformed to [log.SeverityFatal4]
//
// Field values are transformed based on their type into log attributes, or
// into a string value if there is no matching type.
// into a string value encoded using [fmt.Sprintf] if there is no matching type.
//
// [OpenTelemetry]: https://opentelemetry.io/docs/concepts/signals/logs/
package otellogrus // import "go.opentelemetry.io/contrib/bridges/otellogrus"
Expand Down
5 changes: 2 additions & 3 deletions bridges/otelslog/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
//
// Attribute values are transformed based on their [slog.Kind]:
//
// - [slog.KindAny] non-nil values are transformed to [log.StringValue]
// encoded using [fmt.Sprintf].
// Nil values are transformed to a zero value of [log.Value].
// - [slog.KindAny] values are transformed based on their type or
// into a string value encoded using [fmt.Sprintf] if there is no matching type.
// - [slog.KindBool] are transformed to [log.BoolValue] directly.
// - [slog.KindDuration] are transformed to [log.Int64Value] as nanoseconds.
// - [slog.KindFloat64] are transformed to [log.Float64Value] directly.
Expand Down
3 changes: 2 additions & 1 deletion bridges/otelzap/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
// - [zapcore.PanicLevel] is transformed to [log.SeverityFatal2]
// - [zapcore.FatalLevel] is transformed to [log.SeverityFatal3]
//
// Fields are transformed based on their type into log attributes, or into a string value if there is no matching type.
// Fields are transformed based on their type into log attributes, or
// into a string value encoded using [fmt.Sprintf] if there is no matching type.
//
// [OpenTelemetry]: https://opentelemetry.io/docs/concepts/signals/logs/
package otelzap // import "go.opentelemetry.io/contrib/bridges/otelzap"
Expand Down

0 comments on commit 5c5fbac

Please sign in to comment.