metric of the number of players

This commit is contained in:
Giulio 2022-03-25 17:50:16 +01:00
parent 4af54f79dd
commit dcfdacc6df
2 changed files with 1 additions and 1 deletions

View File

@ -258,6 +258,7 @@ class Game:
self.choose_characters() self.choose_characters()
if 'gold_rush' in self.expansions: if 'gold_rush' in self.expansions:
self.notify_gold_rush_shop() self.notify_gold_rush_shop()
Metrics.send_metric('start_game', points=[1], tags=([f"exp:{e}" for e in self.expansions] + [f"players:{self.initial_players}"]))
def distribute_roles(self): def distribute_roles(self):
available_roles: List[roles.Role] = [] available_roles: List[roles.Role] = []

View File

@ -272,7 +272,6 @@ def start_game(sid):
ses: Player = sio.get_session(sid) ses: Player = sio.get_session(sid)
ses.game.start_game() ses.game.start_game()
advertise_lobbies() advertise_lobbies()
Metrics.send_metric('start_game', points=[1], tags=[f"exp:{e}" for e in ses.game.expansions])
@sio.event @sio.event
def set_character(sid, name): def set_character(sid, name):