Skip to content

Commit 608f087

Browse files
committed
Fix name generation and include type_url in CSDS
1 parent 61a518c commit 608f087

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/grpc-js-xds/src/csds.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ function getCurrentConfigList(): ClientConfig[] {
6262
for (const [authority, authorityState] of client.authorityStateMap) {
6363
for (const [type, typeMap] of authorityState.resourceMap) {
6464
for (const [key, resourceState] of typeMap) {
65-
const typeUrl = type.getFullTypeUrl();
65+
const typeUrl = type.getTypeUrl();
6666
const meta = resourceState.meta;
6767
genericConfigList.push({
6868
name: xdsResourceNameToString({authority, key}, typeUrl),
69+
type_url: typeUrl,
6970
client_status: meta.clientStatus,
7071
version_info: meta.version,
7172
xds_config: meta.clientStatus === 'ACKED' ? meta.rawResource : undefined,

0 commit comments

Comments
 (0)