Skip to content

refactor: avoid lazy init for batcher metrics - #1236

Merged
entropidelic merged 5 commits into
stagingfrom
refactor-batcher-metrics
Oct 15, 2024
Merged

refactor: avoid lazy init for batcher metrics#1236
entropidelic merged 5 commits into
stagingfrom
refactor-batcher-metrics

Conversation

@IAvecilla

Copy link
Copy Markdown
Contributor

Initially, we implemented a minimal solution to get the job done, but we ended up using LazyStatic without a clear purpose. We initialize all the metric variables anyway, as we need them from the start. These changes ensure that the metrics are available right from the beginning, and they are now incorporated as a new component of the batcher. Additionally, the port used to expose metrics is now part of the batcher's configuration.

@IAvecillaIAvecilla self-assigned this Oct 14, 2024

@OppenOppen left a comment

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.

Will test later today. Looks good.

@OppenOppen left a comment

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.

Seems to work.

Comment threadbatcher/aligned-batcher/src/main.rs Outdated
Comment threadbatcher/aligned-batcher/src/metrics.rs Outdated

@MarcosNicolauMarcosNicolau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Works on my machine!

@IAvecilla
IAvecilla requested a review from uri-99October 15, 2024 16:04
@entropidelic
entropidelic merged commit df0b8c0 into stagingOct 15, 2024
@entropidelic
entropidelic deleted the refactor-batcher-metrics branch October 15, 2024 17:30
Sign up for freeto 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.

6 participants

@IAvecilla@Oppen@PatStiles@uri-99@entropidelic@MarcosNicolau