Skip to content

Commit

Permalink
HH-198131 move statsd size to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
712u3 committed Jan 24, 2024
1 parent 45bb7e3 commit 2ea7533
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontik/integrations/statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def __init__(
host: str,
port: int,
default_periodic_send_interval_sec: int,
max_udp_size: int,
app: Optional[str] = None,
max_udp_size: int = 508,
reconnect_timeout: int = 2,
) -> None:
self.host = host
Expand Down Expand Up @@ -209,6 +209,7 @@ def create_statsd_client(options: Options, app: FrontikApplication) -> Union[Sta
options.statsd_host,
options.statsd_port,
options.statsd_default_periodic_send_interval_sec,
options.statsd_max_udp_size,
app=app.app,
)
return statsd_client
2 changes: 2 additions & 0 deletions frontik/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class Options:
statsd_host: Optional[str] = None
statsd_port: Optional[int] = None
statsd_default_periodic_send_interval_sec: int = 60
statsd_max_udp_size: int = 508

gc_metrics_send_interval_ms: Optional[int] = None
long_gc_log_enabled: bool = True
long_gc_log_threshold_sec: float = 0.01
Expand Down

0 comments on commit 2ea7533

Please sign in to comment.