-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nikita Kozlov
committed
Apr 27, 2023
1 parent
596a4fd
commit 28f91a2
Showing
8 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './metrics'; | ||
export * from "./metrics"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './rateLimit'; | ||
export * from "./rateLimit"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import { defaultErrorHandler, responseTimeMetric, wrapRequest } from '@lidofinance/next-api-wrapper'; | ||
import { metrics } from 'features/metrics'; | ||
import { metricsFactory } from '@lidofinance/next-pages'; | ||
import { rateLimitWrapper } from 'features/rateLimit'; | ||
import { serverLogger } from 'shared/api/logger'; | ||
import { | ||
defaultErrorHandler, | ||
responseTimeMetric, | ||
wrapRequest, | ||
} from "@lidofinance/next-api-wrapper"; | ||
import { metrics } from "features/metrics"; | ||
import { metricsFactory } from "@lidofinance/next-pages"; | ||
import { rateLimitWrapper } from "features/rateLimit"; | ||
import { serverLogger } from "shared/api/logger"; | ||
|
||
const metricsPage = metricsFactory({ | ||
registry: metrics.registry, | ||
}); | ||
|
||
export default wrapRequest([ | ||
rateLimitWrapper, | ||
responseTimeMetric(metrics.request.apiTimings, '/api/metrics'), | ||
defaultErrorHandler({ serverLogger }) | ||
responseTimeMetric(metrics.request.apiTimings, "/api/metrics"), | ||
defaultErrorHandler({ serverLogger }), | ||
])(metricsPage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './logger'; | ||
export * from "./logger"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters