Skip to content

Commit

Permalink
Format files to appease biome
Browse files Browse the repository at this point in the history
  • Loading branch information
brettimus committed Feb 26, 2024
1 parent dd76977 commit 8a7feb2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/autometrics/src/temporaryMeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ class TemporaryCounter<AttributesTypes extends Attributes = Attributes>
> = [];
private _counter: Counter<AttributesTypes> | undefined;

constructor(public name: string, public options?: MetricOptions) {}
constructor(
public name: string,
public options?: MetricOptions,
) {}

add(value: number, attributes?: AttributesTypes, context?: Context): void {
if (this._counter) {
Expand Down Expand Up @@ -321,7 +324,10 @@ class TemporaryHistogram<AttributesTypes extends Attributes = Attributes>
[number, AttributesTypes | undefined, Context | undefined]
> = [];

constructor(public name: string, public options?: MetricOptions) {}
constructor(
public name: string,
public options?: MetricOptions,
) {}

record(value: number, attributes?: AttributesTypes, context?: Context): void {
if (this._histogram) {
Expand Down Expand Up @@ -350,7 +356,10 @@ class TemporaryObservable<AttributesTypes extends Attributes = Attributes>
private _listeners: Array<ObservableCallback<AttributesTypes>> = [];
private _observable: Observable<AttributesTypes> | undefined;

constructor(public name: string, public options?: MetricOptions) {}
constructor(
public name: string,
public options?: MetricOptions,
) {}

addCallback(callback: ObservableCallback<AttributesTypes>): void {
if (this._observable) {
Expand Down

0 comments on commit 8a7feb2

Please sign in to comment.