mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-29 05:47:31 +02:00
[cherry-pick] chore: fix incorrect otel timeout in harbor yaml template (#19121)
chore: fix incorrect otel timeout in harbor yaml template Update the incorrect otel timeout sample value in the harbor YAML configuration template. Signed-off-by: chlins <chenyuzh@vmware.com>
This commit is contained in:
parent
3db3d60c02
commit
8476e07d75
@ -244,7 +244,8 @@ proxy:
|
||||
# # url_path: /v1/traces
|
||||
# # compression: false
|
||||
# # insecure: true
|
||||
# # timeout: 10s
|
||||
# # # timeout is in seconds
|
||||
# # timeout: 10
|
||||
|
||||
# enable purge _upload directories
|
||||
upload_purging:
|
||||
|
@ -493,7 +493,8 @@ trace:
|
||||
# url_path: /v1/traces
|
||||
# compression: false
|
||||
# insecure: true
|
||||
# timeout: 10s
|
||||
# # timeout is in seconds
|
||||
# timeout: 10
|
||||
{% endif%}
|
||||
{% else %}
|
||||
# trace:
|
||||
@ -516,5 +517,6 @@ trace:
|
||||
# # url_path: /v1/traces
|
||||
# # compression: false
|
||||
# # insecure: true
|
||||
# # timeout: 10s
|
||||
# # # timeout is in seconds
|
||||
# # timeout: 10
|
||||
{% endif %}
|
||||
|
@ -507,7 +507,8 @@ trace:
|
||||
# url_path: /v1/traces
|
||||
# compression: false
|
||||
# insecure: true
|
||||
# timeout: 10s
|
||||
# # timeout is in seconds
|
||||
# timeout: 10
|
||||
{% endif%}
|
||||
{% else %}
|
||||
# trace:
|
||||
@ -530,7 +531,8 @@ trace:
|
||||
# # url_path: /v1/traces
|
||||
# # compression: false
|
||||
# # insecure: true
|
||||
# # timeout: 10s
|
||||
# # # timeout is in seconds
|
||||
# # timeout: 10
|
||||
{% endif %}
|
||||
|
||||
# enable purge _upload directories
|
||||
|
@ -507,7 +507,8 @@ trace:
|
||||
# url_path: /v1/traces
|
||||
# compression: false
|
||||
# insecure: true
|
||||
# timeout: 10s
|
||||
# # timeout is in seconds
|
||||
# timeout: 10
|
||||
{% endif%}
|
||||
{% else %}
|
||||
# trace:
|
||||
@ -530,7 +531,8 @@ trace:
|
||||
# # url_path: /v1/traces
|
||||
# # compression: false
|
||||
# # insecure: true
|
||||
# # timeout: 10s
|
||||
# # # timeout is in seconds
|
||||
# # timeout: 10
|
||||
{% endif %}
|
||||
|
||||
# enable purge _upload directories
|
||||
|
@ -514,7 +514,8 @@ trace:
|
||||
# url_path: /v1/traces
|
||||
# compression: false
|
||||
# insecure: true
|
||||
# timeout: 10s
|
||||
# # timeout is in seconds
|
||||
# timeout: 10
|
||||
{% endif%}
|
||||
{% else %}
|
||||
# trace:
|
||||
@ -537,7 +538,8 @@ trace:
|
||||
# # url_path: /v1/traces
|
||||
# # compression: false
|
||||
# # insecure: true
|
||||
# # timeout: 10s
|
||||
# # # timeout is in seconds
|
||||
# # timeout: 10
|
||||
{% endif %}
|
||||
|
||||
# enable purge _upload directories
|
||||
|
@ -179,7 +179,7 @@ class OtelExporter:
|
||||
self.url_path = config.get('url_path')
|
||||
self.compression = config.get('compression') or False
|
||||
self.insecure = config.get('insecure') or False
|
||||
self.timeout = config.get('timeout') or '10s'
|
||||
self.timeout = config.get('timeout') or '10'
|
||||
|
||||
def validate(self):
|
||||
if not self.endpoint:
|
||||
|
Loading…
Reference in New Issue
Block a user