diff options
author | liangke <lokyse@163.com> | 2018-05-03 13:23:26 +0800 |
---|---|---|
committer | liangke <lokyse@163.com> | 2018-05-03 13:23:37 +0800 |
commit | 4790d64a608118f48a2eb62620996a1e36efd5a2 (patch) | |
tree | c4e65896adee9b3561ac3b5ee2707aaa70187023 | |
parent | ec8cdb885908b5018612475d083889b1f5653a6f (diff) |
Random Inovocation ID
Change-Id: I14485e2fa4ed616dcc8028aec4d22312116540d4
Issue-ID: MULTICLOUD-220
Signed-off-by: liangke <lokyse@163.com>
-rw-r--r-- | multivimbroker/multivimbroker/middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/multivimbroker/multivimbroker/middleware.py b/multivimbroker/multivimbroker/middleware.py index 8bb7357..fd063c3 100644 --- a/multivimbroker/multivimbroker/middleware.py +++ b/multivimbroker/multivimbroker/middleware.py @@ -50,7 +50,7 @@ class LogContextMiddleware(object): request.META["HTTP_X_TRANSACTIONID"] = ReqeustID MDC.put("requestID", ReqeustID) # generate the unique id - InovocationID = str(uuid.uuid3(uuid.NAMESPACE_DNS, SERVICE_NAME)) + InovocationID = str(uuid.uuid4()) MDC.put("invocationID", InovocationID) MDC.put("serviceName", SERVICE_NAME) # access ip |