Skip to content

网关的流控和熔断页面无法正常显示 #3520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bryanxtong opened this issue Apr 22, 2025 · 2 comments
Open

网关的流控和熔断页面无法正常显示 #3520

bryanxtong opened this issue Apr 22, 2025 · 2 comments

Comments

@bryanxtong
Copy link

bryanxtong commented Apr 22, 2025

Issue Description

Type: bug report

Describe what happened

Spring Cloud Alibaba 2023.0.1.0 集成 Sentinel Dashboard 时,网关(Gateway)的流控和熔断页面能正常显示 Gateway 定制版的规则管理界面。

Spring Cloud Alibaba 2023.0.3.2 下,Sentinel Dashboard 只能显示 普通版 的规则管理界面,无法识别 Gateway 模块。

Describe what you expected to happen

Spring Cloud Alibaba 2023.0.3.2 ,可以正常显示网关流控和熔断页面

How to reproduce it (as minimally and precisely as possible)

run the attachments below and problems will occur for dashboard 1.8..8

Tell us your environment

    spring-cloud.version  2023.0.3
    spring.cloud.alibaba.version 2023.0.3.2
    Spring Boot 3.3.10

Anything else we need to know?

@bryanxtong
Copy link
Author

gateway-circuitbreaker.zip demo projects to help identify the problems.

@bryanxtong
Copy link
Author

bryanxtong commented Apr 23, 2025

1.The jar com.alibaba.cloud:spring-cloud-starter-alibaba-sentinel:2023.0.3.2 changes the way to initilize the configuration with SentinelApplicationContextInitializer and not the same as the old way com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration(2023.0.1) and in both ways, I logged the system properties and I can get csp.sentinel.app.type=11 in 2023.0.1, but not in 2023.0.3.2. but I am not sure whether It is the root cause.

`
System.out.println("properties" + System.getProperties());

    // earlier initialize
    if (properties.isEager()) {
        InitExecutor.doInit();
    }`
  1. After the app started, we can get csp.sentinel.app.type=11 in both ways with code below, so I thought It maybe lifecycle problem.
    public static void main(String[] args) { ConfigurableApplicationContext run = SpringApplication.run(GatewayCircuitbreakerApplication.class, args); Map<String, Object> systemProperties = run.getEnvironment().getSystemProperties(); }
    Please correct me if I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant