Skip to content

Commit

Permalink
Merge pull request #130 from petrzjunior/main
Browse files Browse the repository at this point in the history
revert: replace arrow function back with unnamed function
  • Loading branch information
pragmaticivan authored Oct 13, 2021
2 parents 832d5f6 + 3e7ac1f commit 383cae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metrics/decorators/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const OtelMethodCounter = (
const description = `app_${className}#${propertyKey.toString()} called total`;
let counterMetric: Counter;
const methodFunc = descriptor.value;
// eslint-disable-next-line no-param-reassign
descriptor.value = (...args: any[]) => {
// eslint-disable-next-line no-param-reassign, func-names
descriptor.value = function (...args: any[]) {
if (!counterMetric) {
counterMetric = getOrCreateCounter(name, MetricType.Counter, { description, ...options });
}
Expand Down

0 comments on commit 383cae6

Please sign in to comment.