Skip to content

Commit e4f7877

Browse files
committed
otelzap: Fix package docs
1 parent 47ee98d commit e4f7877

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bridges/otelzap/core.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Package otelzap provides a bridge between the [go.uber.org/zap] and
55
// [OpenTelemetry].
6-
6+
//
77
// # Record Conversion
88
//
99
// The [zapcore.Entry] and [zapcore.Field] are converted to OpenTelemetry [log.Record] in the following
@@ -14,9 +14,8 @@
1414
// - Level is transformed and set as the Severity. The SeverityText is also
1515
// set.
1616
// - 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.
1818
// - For named loggers, LoggerName is used to access [log.Logger] from [log.LoggerProvider]
19-
2019
//
2120
// The Level is transformed to the OpenTelemetry Severity types in the following way.
2221
//
@@ -31,7 +30,6 @@
3130
// Fields are transformed based on their type into log attributes, or into a string value if there is no matching type.
3231
//
3332
// [OpenTelemetry]: https://opentelemetry.io/docs/concepts/signals/logs/
34-
3533
package otelzap // import "go.opentelemetry.io/contrib/bridges/otelzap"
3634

3735
import (

0 commit comments

Comments
 (0)