From 59b6ee8b68baca87a1d64d0c7f1dd5c1547eb406 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:31:25 +0200 Subject: [PATCH] fix: stdout sink is now printing metadata and type --- src/sink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sink.ts b/src/sink.ts index 2367941..569b4dd 100644 --- a/src/sink.ts +++ b/src/sink.ts @@ -8,7 +8,7 @@ export interface Sink { export class StdOutSink implements Sink { async send(metrics: Metrics): Promise { metrics.forEach(metric => { - console.log(`${metric.name} ${metric.value}`); // TODO better print + console.log('%s\t%s\t%O\t%s', metric.name, metric.type.toUpperCase(), metric.metadata, metric.value); }); } }