dfinity / examples

Example applications, microservices, and code samples for the Internet Computer
https://dfinity.org
Apache License 2.0
537 stars 362 forks source link

feat: Sample app for query stats feature #710

Closed Dfinity-skaestle closed 7 months ago

Dfinity-skaestle commented 8 months ago

Overview With query stats, developers gain insights into the use of query calls in their canister. This has previously been difficult, since no state can be persisted when executing query calls.

This example shows how to use the canister status to gain access to query statistics. It also shows how to use a timer to periodically query them and calculate rates for query metrics.

sa-github-api commented 7 months ago

Dear @Dfinity-skaestle,

In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA.

If you decide to agree with it, please visit this issue and read the instructions there. Once you have signed it, re-trigger the workflow on this PR to see if your code can be merged.

— The DFINITY Foundation

dfx-json commented 7 months ago

cloned by https://github.com/dfinity/examples/pull/769