Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijain21 committed May 9, 2024
1 parent ac3cd9d commit 72110a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/otelzap/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func NewCore(opts ...Option) *Core {
func (o *Core) Enabled(level zapcore.Level) bool {
r := log.Record{}
r.SetSeverity(getOTelLevel(level))
// should Enabled take the context set on Core?
return o.logger.Enabled(context.Background(), r)
}

Expand Down Expand Up @@ -143,6 +142,7 @@ func (o *Core) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.Check
return ce
}

// TODO
// Write method encodes zap fields to OTel logs and emits them.
func (o *Core) Write(ent zapcore.Entry, fields []zapcore.Field) error {
r := log.Record{}
Expand Down

0 comments on commit 72110a2

Please sign in to comment.