Skip to content

Commit

Permalink
monitoring.counter_outgoing added into _generate_answers of BaseHttpM…
Browse files Browse the repository at this point in the history
…ainLoop
  • Loading branch information
ivan committed Jun 28, 2024
1 parent 7eb77fb commit a35e9d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smart_kit/start_points/main_loop_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from core.configs.global_constants import CALLBACK_ID_HEADER
from core.logging.logger_utils import log
from core.message.from_message import SmartAppFromMessage, basic_error_message
from core.monitoring.monitoring import monitoring
from core.utils.stats_timer import StatsTimer
from smart_kit.compatibility.commands import combine_commands
from smart_kit.message.smartapp_to_message import SmartAppToMessage
Expand Down Expand Up @@ -111,6 +112,7 @@ def _generate_answers(self, user, commands, message, **kwargs):
"+ behavior, продолжающий сценарий.")
answer = commands.pop() if commands else None

monitoring.counter_outgoing(self.app_name, answer.name, answer, user)
return answer


Expand Down

0 comments on commit a35e9d7

Please sign in to comment.