Skip to content

Commit

Permalink
changelogs and some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Sep 21, 2024
1 parent fa95f3a commit a270732
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 1 deletion.
8 changes: 8 additions & 0 deletions metrics-exporter-prometheus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Added

- Added `Debug` derive to numerous types. ([#504](https://github.com/metrics-rs/metrics/pull/504))

### Changed

- Fixed a number of Clippy lints. ([#510](https://github.com/metrics-rs/metrics/pull/510))

## [0.15.3] - 2024-07-13

Republishing 0.15.2 as 0.15.3 to fix an incorrect publish.
Expand Down
8 changes: 8 additions & 0 deletions metrics-exporter-tcp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Added

- Added `Debug` derive to numerous types. ([#504](https://github.com/metrics-rs/metrics/pull/504))

### Changed

- Updated `mio` to `1.0`.

## [0.10.0] - 2024-05-27

### Changed
Expand Down
2 changes: 1 addition & 1 deletion metrics-exporter-tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bytes = { version = "1", default-features = false }
crossbeam-channel = { version = "0.5", default-features = false, features = ["std"] }
prost = { version = "0.12", default-features = false }
prost-types = { version = "0.12", default-features = false, features = ["std"] }
mio = { version = "0.8", default-features = false, features = ["os-poll", "net"] }
mio = { version = "1.0", default-features = false, features = ["os-poll", "net"] }
tracing = { version = "0.1", default-features = false, features = ["attributes"] }

[build-dependencies]
Expand Down
5 changes: 5 additions & 0 deletions metrics-observer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Changed

- Switched from `tui` to `ratatui`. ([#505](https://github.com/metrics-rs/metrics/pull/505))
- Bump MSRV to 1.74.0.

## [0.4.0] - 2024-05-27

### Changed
Expand Down
8 changes: 8 additions & 0 deletions metrics-tracing-context/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Added

- Added `Debug` derive to numerous types. ([#504](https://github.com/metrics-rs/metrics/pull/504))

### Changed

- Fixed a number of Clippy lints. ([#510](https://github.com/metrics-rs/metrics/pull/510))

## [0.16.0] - 2024-05-27

### Changed
Expand Down
11 changes: 11 additions & 0 deletions metrics-util/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Added

- Added `Debug` derive to numerous types. ([#504](https://github.com/metrics-rs/metrics/pull/504))

### Changed

- Replaced `num_cpus::get` with `std::thread::available_parallelism`.
([#500](https://github.com/metrics-rs/metrics/pull/500))
- Fixed a number of Clippy lints. ([#510](https://github.com/metrics-rs/metrics/pull/510))
- Added `Sync` constraint to generic parameter in `RecoverableRecorder` and `Stack`. ([#511](https://github.com/metrics-rs/metrics/pull/511))

## [0.17.0] - 2024-05-27

### Changed
Expand Down
12 changes: 12 additions & 0 deletions metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Added

- Added `Debug` derive to numerous types. ([#504](https://github.com/metrics-rs/metrics/pull/504))

### Changed

- Changed `Unit::Gigibytes` to `Gibibytes` to match the proper SI prefix.
([#508](https://github.com/metrics-rs/metrics/pull/508))
- Fixed a number of Clippy lints. ([#510](https://github.com/metrics-rs/metrics/pull/510))
- Updated the documentation for `with_local_recorder` to better explain limitations.
- `set_global_recorder` now requires that the recorder is `Sync`. ([#511](https://github.com/metrics-rs/metrics/pull/511))

## [0.23.0] - 2024-05-27

### Added
Expand Down
4 changes: 4 additions & 0 deletions metrics/src/recorder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ where
}

/// Runs the closure with the given recorder set as the global recorder for the duration.
///
/// This only applies as long as the closure is running, and on the thread where `with_local_recorder` is called. This
/// does not extend to other threads, and so is not suitable for capturing metrics in asynchronous code where multiple
/// threads are involved.
pub fn with_local_recorder<T>(recorder: &dyn Recorder, f: impl FnOnce() -> T) -> T {
let _local = LocalRecorderGuard::new(recorder);
f()
Expand Down

0 comments on commit a270732

Please sign in to comment.