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
The code doesn't make sense as it is written. I think the intent was that the log object referenced should be logger. If it's not a typo, it isn't clear to me what the 'log' object is and it's relationship to logs and logger.
The context of this was for a section "Accumulate logs for testing and reporting" but, the code above doesn't show how it can be used in a test.
A testing question I think would be useful answered in the documentation is:
How could you iterate through the <LogEntry> objects in logs to assert/expect an outcome?
How do you access the LEVEL in a <LogEntry> object?
How do you access the metadata object in a <LogEntry> object?
Brief description
There is a typo on the Observability Typescript Guide ➡️
The code doesn't make sense as it is written. I think the intent was that the
log
object referenced should belogger
. If it's not a typo, it isn't clear to me what the 'log' object is and it's relationship tologs
andlogger
.The context of this was for a section "Accumulate logs for testing and reporting" but, the code above doesn't show how it can be used in a test.
A testing question I think would be useful answered in the documentation is:
<LogEntry>
objects inlogs
to assert/expect an outcome?LEVEL
in a<LogEntry>
object?<LogEntry>
object?Your recommended content
I'd be more than happy to fix the typo above and look up so that a more useful code snippet for testing Observability can be made.
The text was updated successfully, but these errors were encountered: