diff options
Diffstat (limited to 'u/trace/metric/emittable.ts')
-rw-r--r-- | u/trace/metric/emittable.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/u/trace/metric/emittable.ts b/u/trace/metric/emittable.ts deleted file mode 100644 index f3441ec..0000000 --- a/u/trace/metric/emittable.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { IEmittableMetric, MetricValue, MetricValueTag, Unit } from './index.js'; - -export class EmittableMetric implements IEmittableMetric { - constructor( - public readonly name: string, - public readonly unit: Unit, - ) {} - - public withValue(value: number): MetricValue { - return { - name: this.name, - unit: this.unit, - emissionTimestamp: Date.now(), - value, - _tag: MetricValueTag, - }; - } -} |