diff --git a/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/filter/ReactiveRequestContextFilter.kt b/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/filter/ReactiveRequestContextFilter.kt index 9867e1e81a..df8e4e770a 100644 --- a/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/filter/ReactiveRequestContextFilter.kt +++ b/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/filter/ReactiveRequestContextFilter.kt @@ -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 { diff --git a/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/metrics/ServerMetrics.kt b/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/metrics/ServerMetrics.kt index b526bb0ff0..e093cdbd29 100644 --- a/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/metrics/ServerMetrics.kt +++ b/src/backend/fs/boot-fs-server/src/main/kotlin/com/tencent/bkrepo/fs/server/metrics/ServerMetrics.kt @@ -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" } }