Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijain21 committed May 16, 2024
1 parent c26ff31 commit 2a3c97d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bridges/otelzap/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ func (m *objectEncoder) OpenNamespace(k string) {
// TODO
}

func (m *objectEncoder) AddFloat32(k string, v float32) { m.AddFloat64(k, float64(v)) }
func (m *objectEncoder) AddInt32(k string, v int32) { m.AddInt64(k, int64(v)) }
func (m *objectEncoder) AddInt16(k string, v int16) { m.AddInt64(k, int64(v)) }
func (m *objectEncoder) AddInt8(k string, v int8) { m.AddInt64(k, int64(v)) }

// TODO.
func (m *objectEncoder) AddFloat32(k string, v float32) { m.AddFloat64(k, float64(v)) }
func (m *objectEncoder) AddComplex64(k string, v complex64) {}
func (m *objectEncoder) AddInt32(k string, v int32) { m.AddInt64(k, int64(v)) }
func (m *objectEncoder) AddInt16(k string, v int16) { m.AddInt64(k, int64(v)) }
func (m *objectEncoder) AddInt8(k string, v int8) { m.AddInt64(k, int64(v)) }
func (m *objectEncoder) AddTime(k string, v time.Time) {}
func (m *objectEncoder) AddUint(k string, v uint) {}
func (m *objectEncoder) AddUint32(k string, v uint32) {}
Expand Down

0 comments on commit 2a3c97d

Please sign in to comment.