-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[APM] Highlight selected bucket in transaction bucket distribution #26266
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,19 +127,27 @@ export function initTransactionsApi(server: Server) { | |
| pre, | ||
| validate: { | ||
| query: withDefaultValidators({ | ||
| transaction_name: Joi.string().required() | ||
| transaction_name: Joi.string().required(), | ||
| transaction_id: Joi.string().default('') | ||
| }) | ||
| } | ||
| }, | ||
| handler: req => { | ||
| const { setup } = req.pre; | ||
| const { serviceName } = req.params; | ||
| const { transaction_name: transactionName } = req.query as { | ||
| const { | ||
| transaction_name: transactionName, | ||
| transaction_id: transactionId | ||
| } = req.query as { | ||
| transaction_name: string; | ||
| transaction_id: string; | ||
| }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The typescript destructuring can be a bit harder to read. Could be made simple to replace the above 7 lines with the following 2 lines:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. I'm actually fixing this and a few other bits in another PR. Is it okay I leave as-is here, and fix it in the next PR? |
||
| return getDistribution(serviceName, transactionName, setup).catch( | ||
| defaultErrorHandler | ||
| ); | ||
| return getDistribution( | ||
| serviceName, | ||
| transactionName, | ||
| transactionId, | ||
| setup | ||
| ).catch(defaultErrorHandler); | ||
| } | ||
| }); | ||
| } | ||
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.
This is just something we missed from before but unrelated to this ticket right? (Cool to do that here just making sure I understand)
Uh oh!
There was an error while loading. Please reload this page.
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.
It's sorta related to this ticket, since without this clicking on an item in Trace overview might take the user to a bucket without a sample on the transaction groups page - and thus the bucket won't be highlighted.
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.
But yeah, we should probably have added it in the beginning.