Skip to content

improve registerMetric in orderExecutor#4393

Open
TakaHiR07 wants to merge 1 commit into
apache:masterfrom
TakaHiR07:improve_orderExecutor_metric_format
Open

improve registerMetric in orderExecutor#4393
TakaHiR07 wants to merge 1 commit into
apache:masterfrom
TakaHiR07:improve_orderExecutor_metric_format

Conversation

@TakaHiR07

@TakaHiR07 TakaHiR07 commented May 27, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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