all repos — website @ 280e1745f68d35427464c5ec20159a7957e700cb

My website

Make prometheus metric labels strongly typed

Alan Pearce
commit

280e1745f68d35427464c5ec20159a7957e700cb

parent

5af5222423ffd84341145b1ef8c68abcdaba8d92

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M src/app.tssrc/app.ts
@@ -45,12 +45,12 @@ "status_code",
"hostname", "method", "content_encoding", - ], + ] as const, }), requestDuration: new prom.Histogram({ name: "homestead_request_duration_seconds", help: "Request duration in seconds", - labelNames: ["path"], + labelNames: ["path"] as const, }), };