From 5b4d55e6570c3c33b6ef5c14c37a1cb91a8c61e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Gr=C3=A4tz?= Date: Sat, 22 Jun 2024 14:19:00 +0200 Subject: [PATCH 1/3] Doc: Explain how lifetime of logging links is configured MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio Grätz --- .../configuring_logging_links_in_the_ui.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md index 67726a23ce..c78f2ca8f6 100644 --- a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md +++ b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md @@ -86,6 +86,22 @@ Flytepropeller pod would be created as: This code snippet will output two logs per task that use the log plugin. However, not all task types use the log plugin; for example, the Snowflake plugin will use a link to the Snowflake console. +### Configure lifetime of logging links + +By default, log links are shown once a task starts running and do not disappear. Certain log links might be helpful already when a task is still queued or initializing, for instance, to debug why a task might not be able to start. Other log links might not be valid anymore once the task terminates. You can configure the lifetime of log links in the following way: + +```yaml +task_logs: + plugins: + logs: + templates: + - displayName: + hideOnceFinished: true + showWhilePending: true + templateUris: + - "https://..." +``` + ## Datadog integration To send your Flyte workflow logs to Datadog, you can follow these steps: From bd2d59238c6b412146eac72f4a1b2c693b7f2deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Gr=C3=A4tz?= Date: Sat, 22 Jun 2024 14:27:18 +0200 Subject: [PATCH 2/3] Reword MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio Grätz --- .../productionizing/configuring_logging_links_in_the_ui.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md index c78f2ca8f6..1a36b13478 100644 --- a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md +++ b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md @@ -88,7 +88,7 @@ However, not all task types use the log plugin; for example, the Snowflake plugi ### Configure lifetime of logging links -By default, log links are shown once a task starts running and do not disappear. Certain log links might be helpful already when a task is still queued or initializing, for instance, to debug why a task might not be able to start. Other log links might not be valid anymore once the task terminates. You can configure the lifetime of log links in the following way: +By default, log links are shown once a task starts running and do not disappear when the task finishes. Certain log links might, however, be helpful already when a task is still queued or initializing, for instance, to debug why a task might not be able to start. Other log links might not be valid anymore once the task terminates. You can configure the lifetime of log links in the following way: ```yaml task_logs: From 77bf16c7ecdc694ad97059684e93a163ac430a94 Mon Sep 17 00:00:00 2001 From: "Fabio M. Graetz, Ph.D" Date: Mon, 24 Jun 2024 19:07:48 +0200 Subject: [PATCH 3/3] Update docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nikki Everett Signed-off-by: Fabio M. Graetz, Ph.D. Signed-off-by: Fabio Grätz --- .../productionizing/configuring_logging_links_in_the_ui.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md index 1a36b13478..84c1c9d0cb 100644 --- a/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md +++ b/docs/user_guide/productionizing/configuring_logging_links_in_the_ui.md @@ -88,7 +88,7 @@ However, not all task types use the log plugin; for example, the Snowflake plugi ### Configure lifetime of logging links -By default, log links are shown once a task starts running and do not disappear when the task finishes. Certain log links might, however, be helpful already when a task is still queued or initializing, for instance, to debug why a task might not be able to start. Other log links might not be valid anymore once the task terminates. You can configure the lifetime of log links in the following way: +By default, log links are shown once a task starts running and do not disappear when the task finishes. Certain log links might, however, be helpful when a task is still queued or initializing, for instance, to debug why a task might not be able to start. Other log links might not be valid anymore once the task terminates. You can configure the lifetime of log links in the following way: ```yaml task_logs: