Skip to content

Commit

Permalink
bug: 修复metrics访问失败的问题 #1241
Browse files Browse the repository at this point in the history
  • Loading branch information
felixncheng committed Oct 12, 2023
1 parent 9f6819d commit ee5a085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ package com.tencent.bkrepo.fs.server.filter

import com.tencent.bkrepo.fs.server.context.ReactiveRequestContextHolder
import com.tencent.bkrepo.fs.server.context.RequestContext
import org.springframework.core.Ordered
import org.springframework.core.annotation.Order
import org.springframework.web.server.ServerWebExchange
import org.springframework.web.server.WebFilter
import org.springframework.web.server.WebFilterChain
import reactor.core.publisher.Mono

@Order(Ordered.HIGHEST_PRECEDENCE)
class ReactiveRequestContextFilter : WebFilter {

override fun filter(exchange: ServerWebExchange, chain: WebFilterChain): Mono<Void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ServerMetrics : MeterBinder {
}

companion object {
const val FILE_DOWNLOAD_COUNT = "file_download_count"
const val FILE_UPLOAD_COUNT = "file_upload_count"
const val FILE_DOWNLOAD_COUNT = "artifact.downloading.count"
const val FILE_UPLOAD_COUNT = "artifact.uploading.count"
}
}

0 comments on commit ee5a085

Please sign in to comment.