Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Ignore initial requests from telemetry#830

Merged
vinistock merged 1 commit intomainfrom
vs/exclude_initial_requests_from_telemetry
Oct 12, 2023
Merged

Ignore initial requests from telemetry#830
vinistock merged 1 commit intomainfrom
vs/exclude_initial_requests_from_telemetry

Conversation

@vinistock
Copy link
Copy Markdown
Member

Motivation

The initial requests are not representative of the performance of the LSP because they are initially blocked by indexing. Additionally, other things impact the measurement like autoloads or Sorbet unwrapping signatures.

Implementation

Started returning early if the request id is below 50.

@vinistock vinistock added the enhancement New feature or request label Oct 12, 2023
@vinistock vinistock added this to the 2023-Q3 milestone Oct 12, 2023
@vinistock vinistock self-assigned this Oct 12, 2023
@vinistock vinistock requested a review from a team as a code owner October 12, 2023 13:56
Copy link
Copy Markdown
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

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

I suppose the other option would be to massage the data on the server side to remove the outliers, but that could be awkward.

@vinistock vinistock merged commit 1751ae3 into main Oct 12, 2023
@vinistock vinistock deleted the vs/exclude_initial_requests_from_telemetry branch October 12, 2023 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants