Skip to content

Commit

Permalink
Change prefix format and pass New Relic specific sink when creating a…
Browse files Browse the repository at this point in the history
… new recorder instance
  • Loading branch information
peter-rr committed Nov 16, 2023
1 parent 6d84104 commit 98673cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base.ts
Original file line number Diff line number Diff line change
@@ -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<any> {
try {
Expand Down

0 comments on commit 98673cf

Please sign in to comment.