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

[KYUUBI #6032] Expose KyuubiOperation exec time metrics #6038

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

beryllw
Copy link
Contributor

@beryllw beryllw commented Feb 2, 2024

🔍 Description

Issue References 🔗

This pull request fixes #6032

Describe Your Solution 🔧

KyuubiOperation (LaunchEngine, ExecutedCommandExec) supports exec_time metrics

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklist 📝

Be nice. Be informative.

@github-actions github-actions bot added the kind:documentation Documentation is a feature! label Feb 2, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4bd259a) 61.18% compared to head (af2beb3) 61.07%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6038      +/-   ##
============================================
- Coverage     61.18%   61.07%   -0.11%     
  Complexity       23       23              
============================================
  Files           623      623              
  Lines         37145    37142       -3     
  Branches       5033     5033              
============================================
- Hits          22726    22684      -42     
- Misses        11979    12001      +22     
- Partials       2440     2457      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ms.markMeter(MetricRegistry.name(OPERATION_STATE, opType, state.toString.toLowerCase), -1)
} else {
val execTime = System.currentTimeMillis() - startTime
Copy link
Member

Choose a reason for hiding this comment

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

Should we use startTime or createTime? @pan3793 @turboFei

Copy link
Member

Choose a reason for hiding this comment

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

+1 for createTime, it makes sense for customer.

Copy link
Member

Choose a reason for hiding this comment

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

I also prefer createTime

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using createTime would duplicate the metric with the kyuubi.backend_service.xxxx.
image

Copy link
Member

@wForget wForget Feb 5, 2024

Choose a reason for hiding this comment

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

Using createTime would duplicate the metric with the kyuubi.backend_service.xxxx.

It looks like this, let's keep startTime

Copy link
Member

@wForget wForget Feb 5, 2024

Choose a reason for hiding this comment

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

Then this will introduce another discussion. Since there are kyuubi.backend_service.xxx metircs, do we still need to add exec_time metric for each operation?

@beryllw
Copy link
Contributor Author

beryllw commented Feb 6, 2024

@turboFei @pan3793 cc

@cxzl25 cxzl25 changed the title [kyuubi #6032] Expose KyuubiOperation exec time metrics [KYUUBI #6032] Expose KyuubiOperation exec time metrics Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:documentation Documentation is a feature! module:server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Expose KyuubiOperation exec time metrics
4 participants