From 98673cf1e4638625b4ceb1bdc8fa011716efb23a Mon Sep 17 00:00:00 2001 From: Pedro Ramos Date: Thu, 16 Nov 2023 22:34:42 +0100 Subject: [PATCH] Change prefix format and pass New Relic specific sink when creating a new recorder instance --- src/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base.ts b/src/base.ts index 3ac8a66e16e..87acbfac43e 100644 --- a/src/base.ts +++ b/src/base.ts @@ -1,8 +1,8 @@ import { Command } from '@oclif/core'; -import { Recorder, StdOutSink } from '@smoya/asyncapi-adoption-metrics'; +import { Recorder, NewRelicSink } from '@smoya/asyncapi-adoption-metrics'; export default abstract class extends Command { - recorder = new Recorder('asyncapi-adoption', new StdOutSink()); + recorder = new Recorder('asyncapi_adoption', new NewRelicSink('API key')); async catch(err: Error & { exitCode?: number; }): Promise { try {