Module aws_lambda_powertools.metrics.provider.cold_start

Expand source code
from __future__ import annotations

is_cold_start = True


def reset_cold_start_flag():
    global is_cold_start
    if not is_cold_start:
        is_cold_start = True

Functions

def reset_cold_start_flag()
Expand source code
def reset_cold_start_flag():
    global is_cold_start
    if not is_cold_start:
        is_cold_start = True