Skip to content

Commit

Permalink
fix(metrics): switch back to sfpowerscripts as prefix for backward ma…
Browse files Browse the repository at this point in the history
…intainability
  • Loading branch information
azlam-abdulsalam committed Jan 17, 2024
1 parent 319a412 commit dfff417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class DataDogMetricsSender extends NativeMetricSender {
this.nativeDataDogMetricsLogger = new BufferedMetricsLogger({
apiHost: apiHost,
apiKey: apiKey,
prefix: 'sfp.',
prefix: 'sfpowerscripts.',
flushIntervalSeconds: 0,
});
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class NewRelicMetricSender extends NativeMetricSender {
}

public sendGaugeMetric(metric: string, value: number, tags: string[] | { [key: string]: string }) {
metric = `sfp.${metric}`;
metric = `sfpowerscripts.${metric}`;
const guageMetric = new GaugeMetric(metric, value);
guageMetric.attributes = tags as { [key: string]: string };
const batch = new MetricBatch({}, Date.now(), 1);
Expand All @@ -44,7 +44,7 @@ export class NewRelicMetricSender extends NativeMetricSender {
}

public sendCountMetric(metric: string, tags: string[] | { [key: string]: string }) {
metric = `sfp.${metric}`;
metric = `sfpowerscripts.${metric}`;
const countMetric = new CountMetric(metric);
countMetric.record(1);
countMetric.attributes = tags as { [key: string]: string };
Expand Down

0 comments on commit dfff417

Please sign in to comment.