File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/spaceone/core/service Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ import copy
1
2
import functools
2
3
import logging
3
- import copy
4
+ import time
4
5
from typing import Generator , Union , Literal
5
6
6
7
from opentelemetry import trace
@@ -181,6 +182,8 @@ def _pipeline(
181
182
182
183
try :
183
184
with _TRACER .start_as_current_span ("PreProcessing" ):
185
+ start_time = time .time ()
186
+
184
187
# 1. Event - Start
185
188
if event_handler_state :
186
189
for handler in get_event_handlers ():
@@ -239,7 +242,9 @@ def _pipeline(
239
242
240
243
# 9. Print Response Info Log
241
244
if print_info_log :
242
- _LOGGER .info (f"(RESPONSE) => SUCCESS" )
245
+
246
+ process_time = time .time () - start_time
247
+ _LOGGER .info (f"(RESPONSE) => SUCCESS (Time = { process_time :.2f} s" )
243
248
244
249
return response_or_iterator
245
250
You can’t perform that action at this time.
0 commit comments