Prometheus metrics for library and application developers
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #17 from anshalshukla/fmt

zig fmt

author
Karl Seguin
committer
GitHub
date (Apr 27, 2026, 10:03 PM +0800) commit 1621f82e parent 6de29b83
+4 -4
+4 -4
example/lib/lib.zig
··· 12 12 13 13 // We want to collect metrics about this 14 14 pub fn doSomething() !void { 15 - metrics.active(10); 15 + metrics.active(10); 16 16 17 - // vectored metrics can fail, hence the try 18 - try metrics.hit(.{.status = 200, .path = "/robots.txt"}); 17 + // vectored metrics can fail, hence the try 18 + try metrics.hit(.{ .status = 200, .path = "/robots.txt" }); 19 19 20 - try metrics.latency(.{.path = "/"}, 3.2); 20 + try metrics.latency(.{ .path = "/" }, 3.2); 21 21 }