Crate ic_canister_serve
source ·Functions
- Given an INFO and ERROR
GlobalBuffer
, render the buffers into a json encoded body of an HttpResponse that can be served via a Canister’shttp_request
query method. The method’sCanisterHttpRequestArgument
allows selecting the logs based on severity (INFO/ERROR) and timestamp. - Transforms an
ic_metrics_encoder::MetricsEncoder
into an HttpResponse that can be served via a Canister’shttp_request
query method.