-
Notifications
You must be signed in to change notification settings - Fork 749
telemetry(lsp): Integrate language server/manifest resolver telemetry #6385
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
Merged
jpinkney-aws
merged 45 commits into
aws:feature/amazonqLSP
from
Hweinstock:telemetry/setup
Feb 6, 2025
Merged
Changes from 9 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
75a4d43
define metric within VSC telemetry
Hweinstock 191e0ea
implement telemetry for fetching stage
Hweinstock 0b4cec4
lift telemetry logic to top level
Hweinstock 3727ea9
add telemetry for remaining stages
Hweinstock 5d5a7d8
seperate verification and downloading
Hweinstock a7b446d
add telemetry for validation step
Hweinstock 3304e99
rename metrics and types
Hweinstock 45b0236
reduce duplication across stage implementations
Hweinstock c2596cf
undo unnecessary change
Hweinstock 4f2b662
Merge branch 'feature/amazonqLSP' into telemetry/setup
Hweinstock 6ef6633
switch to fallback instead of cache when remote option fails
Hweinstock 3b3b39b
fix telemetry metadata field
Hweinstock abdb5fd
port metrics down from commons until release
Hweinstock 0aadddf
implement logic for manifest telemetry
Hweinstock f03bf8d
Merge branch 'feature/amazonqLSP' into telemetry/setup
Hweinstock 7d05c68
telemetry: implement logic for server resolution
Hweinstock c7b97e2
refactor: move tryFunctions to core and include tests
Hweinstock 5284763
telemtry: implement telemetry for amazonQLSP
Hweinstock 7dfefe6
test: implement tests for manifestResolver
Hweinstock bad6697
Merge branch 'feature/amazonqLSP' into telemetry/setup
Hweinstock 4b1e90a
refactor: simplify lspResolver implementation
Hweinstock 45901e7
test: add tests for lsp resolver (WIP)
Hweinstock 2ee4792
test: add tests for lspResolver
Hweinstock 3a6bad2
test: remove duplicate data in tests
Hweinstock 9e708fd
refactor: move telemetry work to more general location
Hweinstock 0b4da9d
fix: change outdated reference
Hweinstock c37ef4a
merge: bring in HttpResourceFetcher changes
Hweinstock 9cee3e7
refactor: rename stage -> setupStage
Hweinstock 05f3a2b
fix: add workaround for windows tests
Hweinstock 80fa5d6
test: disable lspResolver test on nonmac, add techdebt test
Hweinstock 8ebcc97
jscpd: ignore verbose telemetry checks
Hweinstock 3cf254a
refactor: avoid duplicate import line
Hweinstock 2c60608
merge: handle tsUtils conflicts
Hweinstock 9b9443b
deps: bump telemetry version and remove local changes
Hweinstock 077e402
refactor: cleanup minor details
Hweinstock 0ef9f0d
merge: resolve conflicts
Hweinstock b0a37f3
refactor: fix spelling mistake
Hweinstock 42ed745
fix: remove accidental space
Hweinstock ea4e35a
Merge branch 'feature/amazonqLSP' into telemetry/setup
Hweinstock d286070
test: add telemetry to e2e tests
Hweinstock 3888ac5
test: adjust telemetry to mirror CI reality
Hweinstock 4819d49
test: adjust results to mirror ci
Hweinstock 3aa2670
test: delete duplicate coverage test case
Hweinstock e55dd7f
test: avoid bleedthrough of globalstate
Hweinstock 8bc7ccc
test: ensure consistent global storage state to ensure consistent beh…
Hweinstock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /*! | ||
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| import { LanguageServerSetupStage, telemetry } from '../../shared/telemetry' | ||
|
|
||
| export async function lspSetupStage<T>(stageName: LanguageServerSetupStage, stage: () => Promise<T>) { | ||
| return await telemetry.languageServer_setup.run(async (span) => { | ||
| const startTime = performance.now() | ||
| const result = await stage() | ||
| span.record({ languageServerSetupStage: stageName }) | ||
| span.record({ duration: performance.now() - startTime }) | ||
| return result | ||
| }) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.