mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 03:35:21 +01:00
chore: fix incorrect otel timeout in harbor yaml template (#19120)
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
289d4e27cc
commit
56f6c27c4f
@ -240,7 +240,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:
|
||||||
|
@ -495,7 +495,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:
|
||||||
@ -518,5 +519,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 %}
|
||||||
|
@ -509,7 +509,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:
|
||||||
@ -532,7 +533,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
|
||||||
|
@ -509,7 +509,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:
|
||||||
@ -532,7 +533,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
|
||||||
|
@ -516,7 +516,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:
|
||||||
@ -539,7 +540,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
|
||||||
|
@ -534,7 +534,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:
|
||||||
@ -557,7 +558,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
|
||||||
|
@ -527,7 +527,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:
|
||||||
@ -550,7 +551,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
|
||||||
|
@ -165,7 +165,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