diff --git a/CHANGELOG.md b/CHANGELOG.md index 65dcca7a2a6..bd73fc18e40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Add the `WithSource` option to the `go.opentelemetry.io/contrib/bridges/otelslog` log bridge to set the `code.*` attributes in the log record that includes the source location where the record was emitted. (#6253) - Add `ContextWithStartTime` and `StartTimeFromContext` to `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`, which allows setting the start time using go context. (#6137) - Set the `code.*` attributes in `go.opentelemetry.io/contrib/bridges/otelzap` if the `zap.Logger` was created with the `AddCaller` or `AddStacktrace` option. (#6268) +- The `go.opentelemetry.io/contrib/bridges/otellogr` module. This module provides an OpenTelemetry logging bridge for `github.com/go-logr/logr`. ### Changed diff --git a/bridges/otellogr/logsink.go b/bridges/otellogr/logsink.go index 1a23efb88c8..127659b150f 100644 --- a/bridges/otellogr/logsink.go +++ b/bridges/otellogr/logsink.go @@ -13,6 +13,8 @@ // - Level is transformed and set as the Severity. The SeverityText is not // set. // - KeyAndValues are transformed and set as Attributes. +// - Error is always logged as an additional attribute with the key +// "exception.message" and with the severity [log.SeverityError]. // - The [context.Context] value in KeyAndValues is propagated to OpenTelemetry // log record. All non-nested [context.Context] values are ignored and not // added as attributes. If there are multiple [context.Context] the last one diff --git a/versions.yaml b/versions.yaml index c27f16b9bf8..d323679e147 100644 --- a/versions.yaml +++ b/versions.yaml @@ -74,6 +74,7 @@ module-sets: - go.opentelemetry.io/contrib/bridges/otelslog - go.opentelemetry.io/contrib/bridges/otellogrus - go.opentelemetry.io/contrib/bridges/otelzap + - go.opentelemetry.io/contrib/bridges/otellogr experimental-processors: version: v0.4.0 modules: