-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Drop explicit type annotations, fix typing #113230
Drop explicit type annotations, fix typing #113230
Conversation
Pinging @elastic/apm-ui (Team:apm) |
@@ -18,7 +17,6 @@ import { | |||
import { ProcessorEvent } from '../../../common/processor_event'; | |||
|
|||
export interface CorrelationsOptions { | |||
setup: Setup; |
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.
Not sure why setup
was removed from here and added in other places.
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.
Wasn't used there, I thought that was more convenient to extend the type where it's needed
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.
Okay, makes sense
export async function getOverallLatencyDistribution( | ||
options: CorrelationsOptions | ||
) { | ||
export async function getOverallLatencyDistribution(options: Options) { | ||
const { setup } = options; |
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.
Looks like setup
is only used for getting the apmEventClient
:
const { apmEventClient } = setup;
We should extract that out of setup
so we can pass it around separately similar to start
and end
(although that can wait)
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.
I can create an issue for the extra work that can be made there, there were some other things we talked about but were out of scope of this task.
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.
A new issue with the left-overs is very welcome, thanks!
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
What was done