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: add pipeline metrics #646

Merged
merged 2 commits into from
Jan 22, 2025
Merged

feat: add pipeline metrics #646

merged 2 commits into from
Jan 22, 2025

Conversation

nathanielc
Copy link
Collaborator

@nathanielc nathanielc commented Jan 21, 2025

Adds metrics for the pipeline system. Support was added to the actor framework to directly support metrics.

Fixes #582

Adds metrics for the pipeline system. Support was added to the actor
framework to directly support metrics.
@nathanielc nathanielc requested review from stbrody and a team as code owners January 21, 2025 21:45
@nathanielc nathanielc requested review from sam701 and dav1do and removed request for a team January 21, 2025 21:45
Copy link
Contributor

@dav1do dav1do left a comment

Choose a reason for hiding this comment

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

Nice. The generic bounds on the Actor trait are a bit rough, but the requirements/impl is captured by the macros so it shouldn't be necessary to think about/look at them very often. :shipit:

pub trait $trait_name : $crate::Actor<Envelope = $enum_name> $( + $crate::Handler<$message_type> )* { }
pub trait $actor_trait : $crate::Actor<Envelope = $enum_name> $( + $crate::Handler<$message_type> )* + ::std::marker::Send + 'static { }

#[doc = std::stringify!($actor_trait)]
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be$recorder_trait

mut shutdown: ShutdownSignal,
) -> anyhow::Result<()> {
let mut interval = interval(Duration::from_millis(1_000));
interval.set_missed_tick_behavior(MissedTickBehavior::Skip);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@nathanielc nathanielc enabled auto-merge January 22, 2025 15:57
@nathanielc nathanielc added this pull request to the merge queue Jan 22, 2025
Merged via the queue into main with commit c07df5e Jan 22, 2025
5 checks passed
@nathanielc nathanielc deleted the feat/pipeline-metrics branch January 22, 2025 17:02
@smrz2001 smrz2001 mentioned this pull request Jan 28, 2025
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.

Add metrics to pipeline steps
2 participants