mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
[cherry-pick] chore: fix incorrect otel timeout in harbor yaml template (#19122)
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
adf8c73b3b
commit
0de5006edf
@ -245,7 +245,8 @@ proxy:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
|
|
||||||
# Enable purge _upload directories
|
# Enable purge _upload directories
|
||||||
upload_purging:
|
upload_purging:
|
||||||
|
@ -491,7 +491,8 @@ trace:
|
|||||||
# url_path: /v1/traces
|
# url_path: /v1/traces
|
||||||
# compression: false
|
# compression: false
|
||||||
# insecure: true
|
# insecure: true
|
||||||
# timeout: 10s
|
# # timeout is in seconds
|
||||||
|
# timeout: 10
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% else %}
|
{% else %}
|
||||||
# trace:
|
# trace:
|
||||||
@ -514,5 +515,6 @@ trace:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -505,7 +505,8 @@ trace:
|
|||||||
# url_path: /v1/traces
|
# url_path: /v1/traces
|
||||||
# compression: false
|
# compression: false
|
||||||
# insecure: true
|
# insecure: true
|
||||||
# timeout: 10s
|
# # timeout is in seconds
|
||||||
|
# timeout: 10
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% else %}
|
{% else %}
|
||||||
# trace:
|
# trace:
|
||||||
@ -528,7 +529,8 @@ trace:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# enable purge _upload directories
|
# enable purge _upload directories
|
||||||
|
@ -505,7 +505,8 @@ trace:
|
|||||||
# url_path: /v1/traces
|
# url_path: /v1/traces
|
||||||
# compression: false
|
# compression: false
|
||||||
# insecure: true
|
# insecure: true
|
||||||
# timeout: 10s
|
# # timeout is in seconds
|
||||||
|
# timeout: 10
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% else %}
|
{% else %}
|
||||||
# trace:
|
# trace:
|
||||||
@ -528,7 +529,8 @@ trace:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# enable purge _upload directories
|
# enable purge _upload directories
|
||||||
|
@ -512,7 +512,8 @@ trace:
|
|||||||
# url_path: /v1/traces
|
# url_path: /v1/traces
|
||||||
# compression: false
|
# compression: false
|
||||||
# insecure: true
|
# insecure: true
|
||||||
# timeout: 10s
|
# # timeout is in seconds
|
||||||
|
# timeout: 10
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% else %}
|
{% else %}
|
||||||
# trace:
|
# trace:
|
||||||
@ -535,7 +536,8 @@ trace:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# enable purge _upload directories
|
# enable purge _upload directories
|
||||||
|
@ -530,7 +530,8 @@ trace:
|
|||||||
# url_path: /v1/traces
|
# url_path: /v1/traces
|
||||||
# compression: false
|
# compression: false
|
||||||
# insecure: true
|
# insecure: true
|
||||||
# timeout: 10s
|
# # timeout is in seconds
|
||||||
|
# timeout: 10
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% else %}
|
{% else %}
|
||||||
# trace:
|
# trace:
|
||||||
@ -553,7 +554,8 @@ trace:
|
|||||||
# # url_path: /v1/traces
|
# # url_path: /v1/traces
|
||||||
# # compression: false
|
# # compression: false
|
||||||
# # insecure: true
|
# # insecure: true
|
||||||
# # timeout: 10s
|
# # # timeout is in seconds
|
||||||
|
# # timeout: 10
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# enable purge _upload directories
|
# enable purge _upload directories
|
||||||
|
@ -172,7 +172,7 @@ class OtelExporter:
|
|||||||
self.url_path = config.get('url_path')
|
self.url_path = config.get('url_path')
|
||||||
self.compression = config.get('compression') or False
|
self.compression = config.get('compression') or False
|
||||||
self.insecure = config.get('insecure') 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):
|
def validate(self):
|
||||||
if not self.endpoint:
|
if not self.endpoint:
|
||||||
|
Loading…
Reference in New Issue
Block a user