fix subscriber app unknown (#5274)
This commit is contained in:
parent
e6de2745f0
commit
4c499794c4
@ -66,9 +66,10 @@ public class SubscribeServiceRequestHandler extends RequestHandler<SubscribeServ
|
||||
String namespaceId = request.getNamespace();
|
||||
String serviceName = request.getServiceName();
|
||||
String groupName = request.getGroupName();
|
||||
String app = request.getHeader("app", "unknown");
|
||||
String groupedServiceName = NamingUtils.getGroupedName(serviceName, groupName);
|
||||
Service service = Service.newService(namespaceId, groupName, serviceName, true);
|
||||
Subscriber subscriber = new Subscriber(meta.getClientIp(), meta.getClientVersion(), "unknown",
|
||||
Subscriber subscriber = new Subscriber(meta.getClientIp(), meta.getClientVersion(), app,
|
||||
meta.getClientIp(), namespaceId, groupedServiceName, 0, request.getClusters());
|
||||
ServiceInfo serviceInfo = handleClusterData(serviceStorage.getData(service),
|
||||
metadataManager.getServiceMetadata(service).orElse(null),
|
||||
|
Loading…
Reference in New Issue
Block a user