@@ -23,10 +23,12 @@ metadata:
23
23
</#if >
24
24
25
25
<#if t_virtual_service_stats?has_content >
26
- proxy.filters.http.detailed_stats:
27
- stats:
28
- <#list t_virtual_service_stats as stats_meta >
29
- - ${stats_meta}
26
+ proxy.metadata_stats.detailed_stats:
27
+ stat_prefix: detailed_route
28
+ stat_tags:
29
+ <#list t_virtual_service_stats?keys as tagKey >
30
+ - key: "${tagKey} "
31
+ val: "${t_virtual_service_stats[tagKey] } "
30
32
</#list >
31
33
</#if >
32
34
@@ -36,37 +38,37 @@ metadata:
36
38
resp_exception_code: ${t_virtual_service_resp_exception_code}
37
39
</#if >
38
40
context:
39
- service: ${t_virtual_service_dubbo_meta_service}
40
- version: ${t_virtual_service_dubbo_meta_version}
41
- method: ${t_virtual_service_dubbo_meta_method}
42
- group: ${t_virtual_service_dubbo_meta_group}
41
+ service: " ${t_virtual_service_dubbo_meta_service?j_string } "
42
+ version: " ${t_virtual_service_dubbo_meta_version?j_string } "
43
+ method: " ${t_virtual_service_dubbo_meta_method?j_string } "
44
+ group: " ${t_virtual_service_dubbo_meta_group?j_string } "
43
45
source: ${(t_virtual_service_dubbo_meta_source=="body")?string('HTTP_BODY','HTTP_QUERY') }
44
46
<#if t_virtual_service_dubbo_meta_params?has_content >
45
47
parameters:
46
48
<#list t_virtual_service_dubbo_meta_params as p >
47
- - type: ${p.value}
48
- name: ${p.key}
49
+ - type: " ${p.value?j_string } "
50
+ name: " ${p.key?j_string } "
49
51
required: ${p.required?c }
50
52
<#if p.defaultValue ?? >
51
53
default: '${p.defaultJsonValue} '
52
54
</#if >
53
55
<#if p.genericMap?has_content >
54
56
generic:
55
57
<#list p.genericMap as k,v >
56
- - path: ${k}
57
- type: ${v}
58
+ - path: " ${k?j_string}"
59
+ type: " ${v?j_string}"
58
60
</#list >
59
61
</#if >
60
62
</#list >
61
63
</#if >
62
64
<#if t_virtual_service_dubbo_meta_attachments?has_content >
63
65
attachments:
64
66
<#list t_virtual_service_dubbo_meta_attachments as a >
65
- - name: ${a.serverParamName}
67
+ - name: " ${a.serverParamName?j_string } "
66
68
<#if a.paramPosition == "Header" >
67
- header: ${a.clientParamName}
69
+ header: " ${a.clientParamName?j_string } "
68
70
<#elseif a.paramPosition == "Cookie" >
69
- cookie: ${a.clientParamName}
71
+ cookie: " ${a.clientParamName?j_string } "
70
72
</#if >
71
73
</#list >
72
74
</#if >
0 commit comments