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

improve registerMetric in orderExecutor #4393

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TakaHiR07
Copy link
Contributor

@TakaHiR07 TakaHiR07 commented May 27, 2024

Main Issue: #4373

Motivation

As is shown in the issue, This is the second pr to improve the registerMetric() in orderExecutor.

Changes

  1. remove the duplicate metric
  2. modify the metric name format, make it compatible with previous version.

before :

image

after improvement, the metric is :

企业微信截图_be1a641e-e969-45db-b661-72122d6c1dd6

if (thread instanceof SingleThreadExecutor) {
ste = (SingleThreadExecutor) thread;
SingleThreadExecutor ste = (SingleThreadExecutor) thread;
ste.registerMetrics(statsLogger, name, i);
Copy link
Member

Choose a reason for hiding this comment

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

Did you change this like @hangc0276 commented? #4374 (comment)

If we can move registry in here, I think we can change createSingleThreadExecutor to return SingleThreadExecutor directly. Like I saiy in #4374 (review)

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.

2 participants