@@ -579,6 +579,7 @@ def set_tracking(
579579 enabled : Optional [bool ] = None ,
580580 max_slow_queries : Optional [int ] = None ,
581581 slow_query_threshold : Optional [int ] = None ,
582+ slow_streaming_query_threshold : Optional [int ] = None ,
582583 max_query_string_length : Optional [int ] = None ,
583584 track_bind_vars : Optional [bool ] = None ,
584585 track_slow_queries : Optional [bool ] = None ,
@@ -593,6 +594,9 @@ def set_tracking(
593594 :param slow_query_threshold: Runtime threshold (in seconds) for treating a
594595 query as slow.
595596 :type slow_query_threshold: int
597+ :param slow_streaming_query_threshold: Runtime threshold (in seconds) for
598+ treating a streaming query as slow.
599+ :type slow_query_threshold: int
596600 :param max_query_string_length: Max query string length (in bytes) tracked.
597601 :type max_query_string_length: int
598602 :param track_bind_vars: If set to True, track bind variables used in queries.
@@ -614,6 +618,8 @@ def set_tracking(
614618 data ["maxQueryStringLength" ] = max_query_string_length
615619 if slow_query_threshold is not None :
616620 data ["slowQueryThreshold" ] = slow_query_threshold
621+ if slow_streaming_query_threshold is not None :
622+ data ["slowStreamingQueryThreshold" ] = slow_streaming_query_threshold
617623 if track_bind_vars is not None :
618624 data ["trackBindVars" ] = track_bind_vars
619625 if track_slow_queries is not None :
0 commit comments