ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- description: Use when asked to work on telemetry events ---
Patterns for GDPR-compliant telemetry in VS Code with proper type safety and privacy protection.
type MyFeatureEvent = {
action: string;
duration: number;
success: boolean;
errorCode?: string;
};
type MyFeatureClassification = {
action: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The action performed.' };
duration: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; isMeasurement: true; comment: 'Time in milliseconds.' };
success: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'Whether action succeeded.' };
errorCode: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; comment: 'Error code if action failed.' };
owner: 'yourGitHubUsername';
comment: 'Tracks MyFeature usage and performance.';
};this.telemetryService.publicLog2<MyFeatureEvent, MyFeatureClassification>('myFeatureAction', {
action: 'buttonClick',
duration: 150,
success: true
});For error-specific telemetry with stack traces or error messages:
type MyErrorEvent = {
operation: string;
errorMessage: string;
duration?: number;
};
type MyErrorClassification = {
operation: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; comment: 'The operation that failed.' };
errorMessage: { classification: 'CallstackOrException'; purpose: 'PerformanceAndHealth'; comment: 'The error message.' };
duration: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; isMeasurement: true; comment: 'Time until failure.' };
owner: 'yourGitHubUsername';
comment: 'Tracks MyFeature errors for reliability.';
};
this.telemetryService.publicLogError2<MyErrorEvent, MyErrorClassification>('myFeatureError', {
operation: 'fileRead',
errorMessage: error.message,
duration: 1200
});constructor(
@ITelemetryService private readonly telemetryService: ITelemetryService,
) { super(); }Classifications (choose the most restrictive):
SystemMetaData - Most common. Non-personal system info, user preferences, feature usage, identifiers (extension IDs, language types, counts, durations, success flags)CallstackOrException - Error messages, stack traces, exception details. Only for actual error information.PublicNonPersonalData - Data already publicly available (rare)Purposes (combine with different classifications):
FeatureInsight - Default. Understanding how features are used, user behavior patterns, feature adoptionPerformanceAndHealth - For errors & performance. Metrics, error rates, performance measurements, diagnosticsRequired Properties:
comment - Clear explanation of what the field contains and why it's collectedowner - GitHub username (infer from branch or ask)isMeasurement: true - Required for all numeric values flags used in calculationsUse publicLogError2 for errors with CallstackOrException classification:
this.telemetryService.publicLogError2<ErrorEvent, ErrorClassification>('myFeatureError', {
errorMessage: error.message,
errorCode: 'MYFEATURE_001',
context: 'initialization'
});Naming Conventions:
camelCase with context (extensionActivationError, chatMessageSent)agentId not id, durationMs not duration)success/hasError/isEnabled, sessionId/extensionId, type/kind/sourceCritical Don'ts:
owner field in classification (infer from branch name or ask user)isMeasurement on numeric metricsPrivacy Requirements: