You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dmathieu, I noticed that the Result()[0] contains empty ScopeRecords which is stored in currentScopeRecord of the "root" Recorder. Shouldn't the "root" Recorder only act as LoggerProvider and the child recorders returned by Recorder.Logger implement log.Logger?
The current logtest.Recorder implementation is wrong. We have a single
`Recorder`, which acts as both a `LoggerProvider`, and a `Logger`,
making it possible to emit a log entry with the root recorder, which
shouldn't be possible with the API.
This change introduces a new private struct, `logger` that acts as the
recording logger, while `Recorder` becomes only a LoggerProvider and not
a Logger anymore.
Closes#5357.
---------
Co-authored-by: Robert Pająk <[email protected]>
Investigate why result on index 1 is recorded and not 0.
Originally posted by @pellared in open-telemetry/opentelemetry-go-contrib#5539 (comment)
The text was updated successfully, but these errors were encountered: