From e96a0ee7c84447d3b16e975ba72fbb88eb0f0123 Mon Sep 17 00:00:00 2001 From: Marcus Chok Date: Thu, 21 Nov 2024 09:48:31 -0500 Subject: [PATCH] update comment for span decorator to reflect new method name --- src/snowflake/cli/api/cli_global_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snowflake/cli/api/cli_global_context.py b/src/snowflake/cli/api/cli_global_context.py index ed5b49db12..abd4ce09a9 100644 --- a/src/snowflake/cli/api/cli_global_context.py +++ b/src/snowflake/cli/api/cli_global_context.py @@ -218,7 +218,7 @@ def span(span_name: str): """ Decorator to start a command metrics span that encompasses a whole function - Must be used instead of directly calling @get_cli_context().metrics.start_span(span_name) + Must be used instead of directly calling @get_cli_context().metrics.span(span_name) as a decorator to ensure that the cli context is grabbed at run time instead of at module load time, which would not reflect forking """