Skip to content

Commit

Permalink
Changed mkReadableLogRecord to take in a ReadWriteLogRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlauer1 committed Jul 15, 2024
1 parent 0ab77ca commit 2b3cf49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/OpenTelemetry/Internal/Logging/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ mkReadWriteLogRecord l = fmap (ReadWriteLogRecord l) . newIORef
newtype ReadableLogRecord = ReadableLogRecord {readableLogRecord :: ReadWriteLogRecord}


mkReadableLogRecord :: Logger -> ImmutableLogRecord -> IO ReadableLogRecord
mkReadableLogRecord l = fmap ReadableLogRecord . mkReadWriteLogRecord l
mkReadableLogRecord :: ReadWriteLogRecord -> ReadableLogRecord
mkReadableLogRecord = ReadableLogRecord


{- | This is a typeclass representing @LogRecord@s that can be read from.
Expand Down

0 comments on commit 2b3cf49

Please sign in to comment.