Skip to content

Commit

Permalink
fixes dropped metrics data
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Jan 24, 2024
1 parent 48a52fe commit e48b2b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/route/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export async function initMetricsServer(
url: "/metrics",
handler: async (_request, reply) => {
reply.header("Content-Type", register.contentType);
register.metrics().then((data) => reply.code(200).send(data));
const data = await register.metrics();
reply.code(200).send(data);
},
});
next();
Expand Down

0 comments on commit e48b2b0

Please sign in to comment.