File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// Package otelzap provides a bridge between the [go.uber.org/zap] and
5
5
// [OpenTelemetry].
6
-
6
+ //
7
7
// # Record Conversion
8
8
//
9
9
// The [zapcore.Entry] and [zapcore.Field] are converted to OpenTelemetry [log.Record] in the following
14
14
// - Level is transformed and set as the Severity. The SeverityText is also
15
15
// set.
16
16
// - Fields are transformed and set as the Attributes.
17
- // - Field value of type ` context.Context` is used as context when emitting log records.
17
+ // - Field value of type [ context.Context] is used as context when emitting log records.
18
18
// - For named loggers, LoggerName is used to access [log.Logger] from [log.LoggerProvider]
19
-
20
19
//
21
20
// The Level is transformed to the OpenTelemetry Severity types in the following way.
22
21
//
31
30
// Fields are transformed based on their type into log attributes, or into a string value if there is no matching type.
32
31
//
33
32
// [OpenTelemetry]: https://opentelemetry.io/docs/concepts/signals/logs/
34
-
35
33
package otelzap // import "go.opentelemetry.io/contrib/bridges/otelzap"
36
34
37
35
import (
You can’t perform that action at this time.
0 commit comments