Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijain21 committed Jun 1, 2024
1 parent c49a31d commit 474b05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/otelzap/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (m *objectEncoder) AddUint64(k string, v uint64) {

// AddReflected converts all non-primitive type to JSON string.
func (m *objectEncoder) AddReflected(k string, v interface{}) error {
// TODO use json Encoder from a pool.
enc := json.NewEncoder(m)
if err := enc.Encode(v); err != nil {
return err
Expand Down Expand Up @@ -191,7 +192,6 @@ func (a *arrayEncoder) AppendObject(v zapcore.ObjectMarshaler) error {
return err
}

// TODO.
func (a *arrayEncoder) AppendReflected(v interface{}) error {
enc := json.NewEncoder(a)
return enc.Encode(v)
Expand Down

0 comments on commit 474b05f

Please sign in to comment.