You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/telemetry.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ The telemetry feature collects the following data:
91
91
| >=6.0.104 | Hashed CompileListCount used for build (MSBuild property) |
92
92
| >=6.0.104 | Hashed _ReadyToRunCompilationFailures used for build (MSBuild property) |
93
93
| >=6.0.300 | If the CLI was invoked from a Continuous Integration environment. For more information, see [Continuous Integration Detection](#continuous-integration-detection).|
94
+
| >=9.0.100 | If the CLI was invoked from an LLM agent environment and the detected agent type. For more information, see [LLM Detection](#llm-detection).|
94
95
| >=7.0.100 | Hashed PublishAot used for build (MSBuild property) |
95
96
| >=7.0.100 | Hashed PublishProtocol used for build (MSBuild property) |
96
97
| >=8.0.100 | Hashed TargetPlatformIdentifier used for build (MSBuild property) |
@@ -190,6 +191,16 @@ The full list of environment variables, and what is done with their values, is s
190
191
| TEAMCITY_VERSION | TeamCity | Check if present and non-null |
191
192
| JB_SPACE_API_URL | JetBrains Space | Check if present and non-null |
192
193
194
+
## LLM Detection
195
+
196
+
To detect if the .NET CLI is running in the context of an LLM agent environment, the .NET CLI probes for the presence and values of several environment variables that LLM agents and AI coding assistants set.
197
+
198
+
The following table shows the environment variables used for detection and the agent type that is reported. Similar to CI detection, the actual values of these environment variables are never collected—only used to identify the agent type.
199
+
200
+
| Variable(s) | Agent Type | Action |
201
+
| ----------- | ---------- | ------ |
202
+
| COPILOT_AGENT_ACTION, COPILOT_CLOUD_ENVIRONMENT | GitHub Copilot | Check if all are present and non-null |
203
+
193
204
## Avoid inadvertent disclosure of information
194
205
195
206
.NET contributors and anyone else running a version of the .NET SDK that they built themselves should consider the path to their SDK source code. If a crash occurs while using a .NET SDK that is a custom debug build or configured with custom build symbol files, the SDK source file path from the build machine is collected as part of the stack trace and isn't hashed.
0 commit comments