We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d834fd commit 28d2f38Copy full SHA for 28d2f38
src/spaceone/core/service/__init__.py
@@ -1,6 +1,7 @@
1
+import copy
2
import functools
3
import logging
-import copy
4
+import time
5
from typing import Generator, Union, Literal
6
7
from opentelemetry import trace
@@ -181,6 +182,8 @@ def _pipeline(
181
182
183
try:
184
with _TRACER.start_as_current_span("PreProcessing"):
185
+ start_time = time.time()
186
+
187
# 1. Event - Start
188
if event_handler_state:
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:
- _LOGGER.info(f"(RESPONSE) => SUCCESS")
245
246
+ process_time = time.time() - start_time
247
+ _LOGGER.info(f"(RESPONSE) => SUCCESS (Time = {process_time:.2f}s")
248
249
return response_or_iterator
250
0 commit comments