Skip to content

Commit

Permalink
fix: stdout sink is now printing metadata and type (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya authored Oct 23, 2023
2 parents 8205ddd + 59b6ee8 commit 2a2f76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Sink {
export class StdOutSink implements Sink {
async send(metrics: Metrics): Promise<void> {
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);
});
}
}
Expand Down

0 comments on commit 2a2f76e

Please sign in to comment.