Skip to content

Commit

Permalink
make comment more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed May 7, 2024
1 parent 02e1890 commit cece13a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions bridges/otellogrus/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@
// - [slog.LevelWarn] is transformed to [log.SeverityWarn]
// - [slog.LevelError] is transformed to [log.SeverityError]
//
// Attribute values are transformed based on type:
//
// - booleans are transformed into [log.Bool]
// - byte arrays are transformed into [log.Bytes]
// - float64 are transformed into [log.Float64]
// - int are transformed into [log.Int]
// - int64 are transformed into [log.Int64]
// - string are transformed into [log.String]
//
// Any other type is transformed into a string using [fmt.Sprintf].
// Attribute values are transformed based on their type into log attributes, or
// into a string attribute if there were no matching type.
//
// [OpenTelemetry]: https://opentelemetry.io/docs/concepts/signals/logs/
package otellogrus // import "go.opentelemetry.io/contrib/bridges/otellogrus"
Expand Down

0 comments on commit cece13a

Please sign in to comment.