Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cirrus): Set glean max event buffer value #10070

Merged
merged 5 commits into from
Jan 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(cirrus): Update casting
  • Loading branch information
yashikakhurana committed Jan 19, 2024
commit a285140e4c7d0864e944e67ed1bfb7a49e2e0b5a
4 changes: 2 additions & 2 deletions cirrus/server/cirrus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
str, config("CIRRUS_INSTANCE_NAME", default="instance name not defined")
)
env_name = cast(str, config("CIRRUS_ENV_NAME", default="production"))
glean_max_events_buffer = cast(int, config("CIRRUS_GLEAN_MAX_EVENTS_BUFFER", default=10))
glean_max_events_buffer = config("CIRRUS_GLEAN_MAX_EVENTS_BUFFER", default=10, cast=int)


@dataclass
Expand All @@ -40,7 +40,7 @@ class MetricsConfiguration:
channel: str = channel
data_dir: str = "/var/glean"
log_level: Union[str, int] = logging.getLevelName("WARNING")
max_events_buffer: int = int(glean_max_events_buffer)
max_events_buffer: int = glean_max_events_buffer
server_endpoint: Optional[str] = None
upload_enabled: bool = True
version: str = "1.0"
Expand Down