Skip to content

Commit

Permalink
Merge pull request #5861 from halibobo1205/fix/endpoint-concurrent-ac…
Browse files Browse the repository at this point in the history
…cess

fix(http/metric): fix race condition for HTTP net traffic metric
  • Loading branch information
lvs007 authored Jul 1, 2024
2 parents 844d2da + 31e0544 commit 2df311a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
@Slf4j(topic = "httpInterceptor")
public class HttpInterceptor implements Filter {

private String endpoint;
private final int HTTP_SUCCESS = 200;
private final int HTTP_BAD_REQUEST = 400;
private final int HTTP_NOT_ACCEPTABLE = 406;
Expand All @@ -29,6 +28,7 @@ public void init(FilterConfig filterConfig) {

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
String endpoint = MetricLabels.UNDEFINED;
try {
if (!(request instanceof HttpServletRequest)) {
chain.doFilter(request, response);
Expand Down

0 comments on commit 2df311a

Please sign in to comment.