Logging and metrics support

didn’t see this type of topic on the forum, would like to ask what’s the plan of supporting logging and metrics (and alarms) in the ICP world. All of them are important for monitoring healthy of services.


What do you think the plan should be?

I want:

  • dfx logs to stream logs from all the canisters interleaved, but prefixed/color-coded by canister name. I can pipe to grep. Could be cool to support some kind of streaming json export I can pipe to jq

On the other hand, this is tricky. If logging takes more cpu/mem, should everyone have to pay for it? Can logging be in userspace via some kind of standard API on the canister?