"""Helper generating the correlation_id.""" import uuid def get_correlation_id(): """Generate a correlation_id using uuid version 1. Generate a correlation_id using uuid version 1 which base on date-time and MAC address. The reason is just to be consistent with other project, for example: https://github.com/theorchard/ows-film-transparency/ blob/44221d9fe3d75fe3290694e4a50f78f856d5a733/ services/cache_manager/cache_manager/__init__.py#L11 """ return str(uuid.uuid1())