Skip to content

Commit 8fc809f

Browse files
committed
Adds uniqueEditId to editTelemetry.reportEditArc
1 parent 202fc68 commit 8fc809f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/contrib/editTelemetry/browser/telemetry/arcTelemetrySender.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { ArcTracker } from './arcTracker.js';
1717
import { IDocumentWithAnnotatedEdits, EditSourceData, createDocWithJustReason } from '../helpers/documentWithAnnotatedEdits.js';
1818
import type { ScmRepoBridge } from './editSourceTrackingImpl.js';
1919
import { ITextModelEditSourceMetadata } from '../../../../../editor/common/textModelEditSource.js';
20+
import { generateUuid } from '../../../../../base/common/uuid.js';
2021

2122
export class InlineEditArcTelemetrySender extends Disposable {
2223
constructor(
@@ -118,6 +119,8 @@ export class ChatArcTelemetrySender extends Disposable {
118119
}
119120
const data = edit.replacements[0].data.editSource;
120121

122+
const uniqueEditId = generateUuid();
123+
121124
const docWithJustReason = createDocWithJustReason(docWithAnnotatedEdits, this._store);
122125
const reporter = this._instantiationService.createInstance(ArcTelemetryReporter, [0, 60, 300].map(s => s * 1000), _prev, docWithJustReason, scmRepoBridge, edit, res => {
123126
res.telemetryService.publicLog2<{
@@ -130,6 +133,7 @@ export class ChatArcTelemetrySender extends Disposable {
130133
modelId: string | undefined;
131134
languageId: string | undefined;
132135
mode: string | undefined;
136+
uniqueEditId: string | undefined;
133137

134138
didBranchChange: number;
135139
timeDelayMs: number;
@@ -152,6 +156,7 @@ export class ChatArcTelemetrySender extends Disposable {
152156
modelId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The model id.' };
153157
languageId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The language id of the document.' };
154158
mode: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The mode chat was in.' };
159+
uniqueEditId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The unique identifier for the edit.' };
155160

156161
didBranchChange: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'Indicates if the branch changed in the meantime. If the branch changed (value is 1); this event should probably be ignored.' };
157162
timeDelayMs: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'The time delay between the user accepting the edit and measuring the survival rate.' };
@@ -178,6 +183,7 @@ export class ChatArcTelemetrySender extends Disposable {
178183
modelId: data.props.$modelId,
179184
languageId: data.props.$$languageId,
180185
mode: data.props.$$mode,
186+
uniqueEditId,
181187

182188
didBranchChange: res.didBranchChange ? 1 : 0,
183189
timeDelayMs: res.timeDelayMs,

0 commit comments

Comments
 (0)