|
@@ -177,9 +177,9 @@ class AgentEventService:
|
|
|
except:
|
|
|
traceback.print_exc()
|
|
|
finally:
|
|
|
- time_cost = time.time() - start_time
|
|
|
+ time_cost = (time.time() - start_time) * 1000
|
|
|
registry.ESL_EVENT_CALLBACK_COST.labels(event_name, "agent").observe(time_cost)
|
|
|
- latency = time.time() - event_timestamp
|
|
|
+ latency = (time.time() - event_timestamp) * 1000
|
|
|
registry.ESL_EVENT_CALLBACK_LATENCY.labels(event_name, "agent").observe(latency)
|
|
|
|
|
|
def bot_event_channel(self, event, call_info, device_info):
|
|
@@ -246,9 +246,9 @@ class AgentEventService:
|
|
|
except:
|
|
|
traceback.print_exc()
|
|
|
finally:
|
|
|
- time_cost = time.time() - start_time
|
|
|
+ time_cost = (time.time() - start_time) * 1000
|
|
|
registry.ESL_EVENT_CALLBACK_COST.labels(event_name, "bot").observe(time_cost)
|
|
|
- latency = time.time() - event_timestamp
|
|
|
+ latency = (time.time() - event_timestamp) * 1000
|
|
|
registry.ESL_EVENT_CALLBACK_LATENCY.labels(event_name, "bot").observe(latency)
|
|
|
|
|
|
def reprocessing_idle(self, state_data: AgentDelayStateData):
|