Skip to content

Commit b54e413

Browse files
committed
Improves code formatting for setTimeout
1 parent ff3bbb9 commit b54e413

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/service/metrics/otelRequestMetricsMiddleware.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ export const addOtelRequestMetricsMiddleware = () => {
1414
instruments = await Promise.race([
1515
getOtelInstruments(),
1616
new Promise<never>((_, reject) =>
17-
setTimeout(() => reject(new Error('Timeout waiting for OpenTelemetry instruments initialization')),
18-
INSTRUMENTS_INITIALIZATION_TIMEOUT)
17+
setTimeout(
18+
() => reject(new Error('Timeout waiting for OpenTelemetry instruments initialization')),
19+
INSTRUMENTS_INITIALIZATION_TIMEOUT
20+
)
1921
)
2022
])
2123
} catch (error) {

0 commit comments

Comments
 (0)