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

general documentation cleanups #349

Merged
merged 1 commit into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Changelog

## 0.13.2-dev
- fix broken links within the documentation
- introduce `--startup-time` which can be set together with `--users` instead of using `--hatch-rate` to configure how quickly to start users, fix `--run-time` to always start counting after all users are fully started; include starting and stopping time in addition to running time in text metrics and html report
- fix broken links within the documentation; general documentation cleanups
- introduce `--startup-time` which can be set together with `--users` instead of using `--hatch-rate` to configure how quickly to start users
- fix `--run-time` to always start counting after all users are fully started
- include starting and stopping time in addition to running time in text metrics and html report

## 0.13.1 August 13, 2021
- add test to confirm a `base_url` can include a path and be joined with a relative path
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ pub enum GooseDefault {
/// [`usize`] integer:
/// - [`GooseDefault::Users`]
/// - [`GooseDefault::HatchRate`]
/// - [`GooseDefault::StatupTime`]
/// - [`GooseDefault::StartupTime`]
/// - [`GooseDefault::RunTime`]
/// - [`GooseDefault::RunningMetrics`]
/// - [`GooseDefault::LogLevel`]
Expand Down
7 changes: 2 additions & 5 deletions src/goose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1755,8 +1755,7 @@ impl GooseUser {
/// or is called on a request that was already an error, only the first error will
/// be collected.
///
/// This also calls
/// [`log_debug`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.log_debug).
/// This also calls [`GooseUser::log_debug`].
///
/// # Example
/// ```rust
Expand Down Expand Up @@ -1829,9 +1828,7 @@ impl GooseUser {
/// can be set to prevent the debug log from including the response body. When this option
/// is enabled, the body will always show up as `null` in the debug log.
///
/// Calls to
/// [`set_failure`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.set_failure)
/// automatically invoke `log_debug`.
/// Calls to [`GooseUser::set_failure`] automatically invoke `log_debug`.
///
/// To enable the debug log, a load test must be run with the `--debug-log-file=foo`
/// option set, where `foo` is either a relative or an absolute path of the log file
Expand Down
27 changes: 13 additions & 14 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub enum GooseMetric {
Task(GooseTaskMetric),
}

/// THIS IS IN EXPERIMENTAL FEATURE, DISABLED BY DEFAULT. Optionally mitigate the loss of data
/// THIS IS AN EXPERIMENTAL FEATURE, DISABLED BY DEFAULT. Optionally mitigate the loss of data
/// (coordinated omission) due to stalls on the upstream server.
///
/// Stalling can happen for many reasons, for example: garbage collection, a cache stampede,
Expand Down Expand Up @@ -286,10 +286,9 @@ impl GooseRawRequest {
///
/// The request that Goose is making. User threads send this data to the parent thread
/// when metrics are enabled. This request object must be provided to calls to
/// [`set_success`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.set_success)
/// or
/// [`set_failure`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.set_failure)
/// so Goose knows which request is being updated.
/// [`set_success`](../goose/struct.GooseUser.html#method.set_success) or
/// [`set_failure`](../goose/struct.GooseUser.html#method.set_failure) so Goose
/// knows which request is being updated.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GooseRequestMetric {
/// How many milliseconds the load test has been running.
Expand Down Expand Up @@ -319,7 +318,7 @@ pub struct GooseRequestMetric {
pub coordinated_omission_elapsed: u64,
/// If non-zero, the calculated cadence of looping through all
/// [`GooseTask`](../goose/struct.GooseTask.html)s by this
/// [`GooseUser`](../goose/struct.GooseUser.html).
/// [`GooseUser`](../goose/struct.GooseUser.html) thread.
pub user_cadence: u64,
}
impl GooseRequestMetric {
Expand Down Expand Up @@ -827,13 +826,14 @@ pub struct GooseMetrics {
/// A hash of the load test, primarily used to validate all Workers in a Gaggle
/// are running the same load test.
pub hash: u64,
/// An optional system timestamp indicating when the load test started.
/// Tracks when the load test first started with an optional system timestamp.
pub starting: Option<DateTime<Local>>,
/// An optional system timestamp indicating when all GooseUsers started.
/// Tracks when all [`GooseUser`](../goose/struct.GooseUser.html) threads fully
/// started with an optional system timestamp.
pub started: Option<DateTime<Local>>,
/// An optional system timestamp indicating when the load test began stopping.
/// Tracks when the load test first began stopping with an optional system timestamp.
pub stopping: Option<DateTime<Local>>,
/// An optional system timestamp indicating when the load test fully stopped.
/// Tracks when the load test stopped with an optional system timestamp.
pub stopped: Option<DateTime<Local>>,
/// Total number of seconds the load test ran.
pub duration: usize,
Expand Down Expand Up @@ -2175,10 +2175,9 @@ impl fmt::Display for GooseMetrics {
///
/// The request that Goose is making. User threads send this data to the parent thread
/// when metrics are enabled. This request object must be provided to calls to
/// [`set_success`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.set_success)
/// or
/// [`set_failure`](https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#method.set_failure)
/// so Goose knows which request is being updated.
/// [`set_success`](../goose/struct.GooseUser.html#method.set_success) or
/// [`set_failure`](../goose/struct.GooseUser.html#method.set_failure) so Goose knows
/// which request is being updated.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GooseErrorMetric {
/// How many milliseconds the load test has been running.
Expand Down