Test: Managed Copilot OTel file export
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- observability, testing
Research direction
Start with the managed-settings file paths and the verification steps in this issue. Follow the listed VS Code setup, write the managed telemetry.filePath setting, and check whether the JSONL file contains invoke_agent and vscode.agent_host.session. Remove filePath, restart Agent Host, and verify the file is absent or empty; restore or delete the settings file during cleanup.
Written by the indexing model from the issue text.
Description
Refs: #340964
- anyOS
Complexity: 3
Setup
- Use a disposable profile and workspace.
- Delete the managed settings file (take a backup before deleting so you can restore this if you want)
- macOS:
/Library/Application Support/GitHubCopilot/managed-settings.json - Linux:
/etc/github-copilot/managed-settings.json - Windows:
%ProgramFiles%\GitHubCopilot\managed-settings.json
- macOS:
Verify that managed telemetry.filePath:
- exports Copilot Agent Host telemetry to a JSONL file without personal OTel
opt-in; and - stops exporting after the managed setting is removed.
This TPI intentionally uses the device-wide managed-settings.json file. It is
the simplest way to test the setting: no proxy, mock policy server, SDK policy
cache, or OTLP collector is required. It validates file-based managed-settings
delivery, not GitHub server delivery.
Steps
- Exit all instances of VS Code
- Start an instace of VS Code in a transient location or disable all OTel related temetry as follows in your use settings.json file
{
"chat.agentHost.otel.enabled": false,
"chat.agentHost.otel.dbSpanExporter.enabled": false
}
- Restart VS Code (that you started in step 2) and ensure you are signed into Copilot and all other instances of VS Code and Copilot CLI have been killed
- Ensure all windows (and agent sessions have been closed in VS Code)
- Update the
managed-settings.jsonfile (see above for path) with the following content
{
"telemetry": {
"filePath": "<fully qualified path to a temp location>/copilot-otel.jsonl",
"captureContent": false,
"capture": {
"identity": false
}
}
}
- Select the command
Developer: Restart Local Agent Hostfrom the command palette - Now start a new agent session and send the prompt
Reply exactly MANAGED_FILE_OK. Do not use tools. - Wait for the session to compete and verify you get a response back of
MANAGED_FILE_OK - Verify the file is created
<fully qualified path to a temp location>/copilot-otel.jsonl - Verify the file contains the text
invoke_agent. - Verify the file contains the text
vscode.agent_host.session. - Go back to the
managed-settings.jsonand remove thefilePathsetting - Go back into VS Code and Close all of your agent host sessions in VS Code
- Go back into VS Code and restart Agent Host as in step 5
- Clear the contents or delete the file
<fully qualified path to a temp location>/copilot-otel.jsonl - Start a new agent session and send the prompt
Reply exactly MANAGED_FILE_OK. Do not use tools.and wait for completion - Verify the file is not created or is empty
Cleanup and results
- Restore (from backup) or delete the local
managed-settings.jsonfile created/edit earlier
- Dominant language
- TypeScript
- Stars
- 194k
- Forks
- 45.8k
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 688
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Install Plugin from Source reveals plugins in the legacy details UIPossibly taken @alok-108 claimed this 9 days ago. Openchat-customizations
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/vscode#339900 · 1 comment ·
Maintainers usually reply within 1 day
-
# [copilot] convertToApiChatMessage silently drops Document content parts — PDF attachments never reach LanguageModelChatProvider extensionsMay be free again @vritant24 claimed this 31 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
microsoft/vscode#336694 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Native MDM ignores documented object-form plugin marketplacesPossibly taken @rwoll claimed this 32 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/vscode#333816 · 1 assignee ·
Maintainers usually reply within 1 day
-
Markdown preview emits duplicate heading ids when a heading matches a generated suffixPossibly taken @VaggelisGian claimed this 55 days ago. Openstale triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
All issues in microsoft/vscode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jessepollak/home#2223 ·
Maintainers usually reply within 1 day
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
code-yeongyu/senpi#3756 ·
Maintainers usually reply within 1 day
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
langchain-ai/deepagents#7059 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
osmlab/name-suggestion-index#12992 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
hemilabs/ui-monorepo#2506 ·
Maintainers usually reply within 1 day