If I try to run this program after instrumenting calls to eventPool.New and putEvent, I see that we won't put back the Dict created back into the eventPool.
We do use putEvent, if a Dict is applied directly to an Event.
I am new to this library and am trying to understand its implementation, so my question is if I am missing something here and this is actually the expectation?
package main
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
func main() {
log.Debug().Array("arr", zerolog.Arr().Dict(zerolog.Dict().Str("key", "value"))).Msg("arrayTest")
}
If I try to run this program after instrumenting calls to
eventPool.NewandputEvent, I see that we won't put back theDictcreated back into theeventPool.We do use
putEvent, if aDictis applied directly to an Event.I am new to this library and am trying to understand its implementation, so my question is if I am missing something here and this is actually the expectation?