[cherry-pick] chore: fix incorrect otel timeout in harbor yaml template (#19123)

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:
Chlins Zhang 2023-08-15 10:38:34 +08:00 committed by GitHub
parent 8ad19e785b
commit 6050cb6325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 14 deletions

View File

@ -240,7 +240,8 @@ proxy:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
# Enable purge _upload directories
upload_purging:

View File

@ -495,7 +495,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -518,5 +519,6 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}

View File

@ -509,7 +509,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -532,7 +533,8 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}
# enable purge _upload directories

View File

@ -509,7 +509,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -532,7 +533,8 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}
# enable purge _upload directories

View File

@ -516,7 +516,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -539,7 +540,8 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}
# enable purge _upload directories

View File

@ -534,7 +534,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -557,7 +558,8 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}
# enable purge _upload directories

View File

@ -527,7 +527,8 @@ trace:
# url_path: /v1/traces
# compression: false
# insecure: true
# timeout: 10s
# # timeout is in seconds
# timeout: 10
{% endif%}
{% else %}
# trace:
@ -550,7 +551,8 @@ trace:
# # url_path: /v1/traces
# # compression: false
# # insecure: true
# # timeout: 10s
# # # timeout is in seconds
# # timeout: 10
{% endif %}
# enable purge _upload directories

View File

@ -165,7 +165,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: