Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/vllm_router/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,14 @@ def parse_args():
"--sentry-traces-sample-rate",
type=float,
default=0.1,
help="The sample rate for Sentry traces. Default is 0.1 (10%)",
help="The sample rate for Sentry traces. Default is 0.1 (10%%)",
Comment thread
xiaoajie738 marked this conversation as resolved.
)

parser.add_argument(
"--sentry-profile-session-sample-rate",
type=float,
default=1.0,
help="The sample rate for Sentry profiling sessions. Default is 1.0 (100%)",
help="The sample rate for Sentry profiling sessions. Default is 1.0 (100%%)",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using %(default)s instead of hardcoding the default value 1.0 in the help string. This ensures the help message automatically updates if the default value is changed in the code. Note that the %% escape is still necessary for the literal percentage sign.

Suggested change
help="The sample rate for Sentry profiling sessions. Default is 1.0 (100%%)",
help="The sample rate for Sentry profiling sessions. Default is %(default)s (100%%)",

)

# OpenTelemetry tracing arguments
Expand Down
Loading