Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOtelCore ¶
func NewOtelCore(loggerProvider otel.LoggerProvider, opts ...Option) zapcore.Core
NewOtelCore creates new OpenTelemetry Core to export logs in OTLP format
Types ¶
type Logger ¶
Logger is a thin wrapper for zap.Logger that adds Ctx method.
func (*Logger) Sugar ¶
func (l *Logger) Sugar() *SugaredLogger
type Option ¶ added in v0.2.1
type Option func(c *otlpCore)
Option is a function that applies an option to an OpenTelemetry Core
type SugaredLogger ¶
type SugaredLogger struct {
*zap.SugaredLogger
}
func S ¶
func S() *SugaredLogger
func (*SugaredLogger) Ctx ¶
func (l *SugaredLogger) Ctx(ctx context.Context) *SugaredLogger
Click to show internal directories.
Click to hide internal directories.