How to use the built-in logging and tracing system.
console.log()
, console.error()
, etc as normal and they will be shown in your run log. This is the standard function so you can use it as you would in any other JavaScript or TypeScript code. Logs from any functions/packages will also be shown.
logger
object which creates structured logs. Structured logs will make it easier for you to search the logs to quickly find runs.
Name | Description |
---|---|
Task triggers | Task triggers. |
Task attempts | Task attempts. |
HTTP requests | HTTP requests made by your code. |
logger.trace
function. It will create a new OTEL trace and you can set attributes on it.