-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[APM] Add support for very high durations (minutes and hours) #41640
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
[APM] Add support for very high durations (minutes and hours) #41640
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
retest |
|
Hi @bartvanremortele, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The transaction files are auto-generated so if you created this and the Japanese by hand you can just discard them again.
💚 Build Succeeded |
|
@bartvanremortele Whenever you have time please rebase this with master so I can merge. Thanks again for the contribution! |
|
@sqren Done! I would love to contribute more but it's hard to identify which issues I'm able to pick up. Do you have a mentorship program or a platform to onboard contributers? |
|
Hmm I ran |
6f90107 to
ad2c276
Compare
|
Fixed! :-) |
|
@katrin-freihofner @dgieselaar Do you have any opinions on whether the display value for hours should be "hours", "hrs" or "h". Same with minutes. Currently we abbreviate seconds to "s", millis to "ms" and micros to "μs". |
|
@bartvanremortele I'll just get my colleagues opinion on the unit abbreviation, and then I'll merge it.
We try to apply the label "good first issue" to make it easier for the community to help out - but you probably know that since you found this one :) |
|
I think h/d makes sense here.
…On Thu, Jul 25, 2019, 18:12 Søren Louv-Jansen ***@***.***> wrote:
@katrin-freihofner <https://github.com/katrin-freihofner> @dgieselaar
<https://github.com/dgieselaar> Do you have any opinions on whether the
display value for hours should be "hours", "hrs" or "h". Same with minutes.
Currently we abbreviate seconds to "s", millis to "ms" and micros to "μs".
*Hours*
[image: Screen Shot 2019-07-25 at 18 07 18]
<https://user-images.githubusercontent.com/209966/61890251-5fe53700-af07-11e9-9973-759e7284d647.png>
*Minutes*
[image: Screen Shot 2019-07-25 at 18 06 55]
<https://user-images.githubusercontent.com/209966/61890252-5fe53700-af07-11e9-80ea-c7f213e8104f.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41640?email_source=notifications&email_token=AACWDXGNU5VRT5TBSMWR7NTQBHGIHA5CNFSM4IFSSNV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2Z6UEA#issuecomment-515107344>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACWDXCPDCRC46NPTOADOUDQBHGIHANCNFSM4IFSSNVQ>
.
|
|
I would suggest to use but as long as it is not m (like meters) for minutes I'm fine :) Thanks everyone! |
|
...sorry, closing this was a mistake. |
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As suggested by @katrin-freihofner minutes should be abbreviated "min"
|
retest |
💔 Build Failed |
56ec952 to
143cd68
Compare
|
@bartvanremortele I rebased your branch with master - hopefully that'll fix the build errors. |
|
retest |
💚 Build Succeeded |
|
@bartvanremortele This needs to be backported to "7.x" which is the release branch for 7.4, 7.5 and all other future releases on 7. I can do it for you but if you are interested in doing it yourself I can help out. Basically you just need to cherry-pick 7ff85c4 from master and create a PR towards 7.x branch. This is boring work, so we use a backport tool. If you already have cloned kibana you don't need to install the backport tool again, but can simply run Follow these steps to fill out the config.json: https://github.com/sqren/backport/blob/master/docs/configuration.md#global-config-backportconfigjson |
|
@sqren I will gladly do this. Thanks for giving me the opportunity. |


Summary
Fixes #41566
Adds time formatting support for high duration transactions.
Formatting will be moved up to minutes if the transaction took longer than 1 minute and to hours if it took longer than 1 hour.
i18n for JPN was done using google, I do not speak Japanese.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers