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

Add steal_operations metric #37

Merged
merged 1 commit into from Mar 6, 2023
Merged

Conversation

jschwe
Copy link
Contributor

@jschwe jschwe commented Feb 6, 2023

Follow-up to #35.

The new metric is available starting with tokio v1.25.0.

Would it be okay to just bump the required tokio version and release a new tokio-metrics version? Or would you prefer something more advanced like version detection in a build script?

Edit: A different PR bumped the required tokio version already. Rebased.

@Darksonn
Copy link
Contributor

Darksonn commented Feb 6, 2023

Bumping the required tokio version is fine.

Expose the new `steal_operations` metric
which tracks what was previously documented to be `steal_count`.
@jschwe jschwe marked this pull request as ready for review March 4, 2023 18:51
@Noah-Kennedy Noah-Kennedy merged commit 904c538 into tokio-rs:main Mar 6, 2023
@@ -31,7 +31,7 @@ futures = "0.3.21"
num_cpus = "1.13.1"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
tokio = { version = "1.15.0", features = ["full", "rt", "time", "macros", "test-util"] }
tokio = { version = "1.26.0", features = ["full", "rt", "time", "macros", "test-util"] }
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why this change is here. This was already set. I wonder if GitHub's viewer is bugged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one was for the dev-dependency.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah

@jschwe jschwe deleted the steal_operations2 branch March 6, 2023 17:13
@Noah-Kennedy Noah-Kennedy mentioned this pull request Mar 6, 2023
Noah-Kennedy added a commit that referenced this pull request Mar 6, 2023
# 0.2.0 (March 6th, 2023)

### Added
- Add `Debug` implementations. ([#28])
- rt: add concrete `RuntimeIntervals` iterator type ([#26])
- rt: add budget_forced_yield_count metric ([#39])
- rt: add io_driver_ready_count metric ([#40])
- rt: add steal_operations metric ([#37])
- task: also instrument streams ([#31])

### Documented
- doc: fix count in `TaskMonitor` docstring ([#24])
- doc: the description of steal_count ([#35])

[#24]: #24
[#26]: #26
[#28]: #28
[#31]: #31
[#35]: #35
[#37]: #37
[#39]: #39
[#40]: #40
jschwe added a commit to jschwe/tokio-metrics that referenced this pull request Apr 13, 2023
Follow-up to tokio-rs#35.

The new metric is available starting with tokio v1.25.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants