diff --git a/userbenchmark/dynamo/dynamobench/_dynamo/utils.py b/userbenchmark/dynamo/dynamobench/_dynamo/utils.py index 0bd6b7f5e..da6fcdb02 100644 --- a/userbenchmark/dynamo/dynamobench/_dynamo/utils.py +++ b/userbenchmark/dynamo/dynamobench/_dynamo/utils.py @@ -1713,9 +1713,15 @@ def get_event_data(self) -> dict[str, Any]: def __init__(self): self.tls = threading.local() + + from . import config + # Generate a unique id for this logger, which we can use in scuba to filter down # to a single python run. - self.id_ = str(uuid.uuid4()) + if config.pt2_compile_id_prefix: + self.id_ = f"{config.pt2_compile_id_prefix}-{uuid.uuid4()}" + else: + self.id_ = str(uuid.uuid4()) # TODO: log to init/id tlparse after I add support for it log.info("ChromiumEventLogger initialized with id %s", self.id_)