We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10bdd28 commit 2433e86Copy full SHA for 2433e86
Sources/App/routes.swift
@@ -275,10 +275,8 @@ func routes(_ app: Application) throws {
275
}
276
277
do { // Metrics
278
- app.get("metrics") { req -> EventLoopFuture<String> in
279
- let promise = req.eventLoop.makePromise(of: String.self)
280
- try MetricsSystem.prometheus().collect(into: promise)
281
- return promise.futureResult
+ app.get("metrics") { req -> String in
+ try await MetricsSystem.prometheus().collect()
282
}.excludeFromOpenAPI()
283
284
0 commit comments