Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: fix render controller telemetry key
Wenzhao Hu841f0ee0a2f3
diff --git a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.tsindex c735ea7ade..86da07343f 100644--- a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts+++ b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts@@ -30,7 +30,7 @@ import {Viewport,} from '@univerjs/engine-render';import { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, MoveRangeMutation, SetRangeValuesMutation, SetWorksheetActiveOperation } from '@univerjs/sheets';-import { ITelemetryService, TelemetryEventNames } from '@univerjs/telemetry';+import { ITelemetryService } from '@univerjs/telemetry';import { Subject, withLatestFrom } from 'rxjs';import { SetScrollRelativeCommand } from '../../commands/commands/set-scroll.command';@@ -199,7 +199,7 @@ export class SheetRenderController extends RxDisposable implements IRenderModuleconst sheetId = this._context.unit.getActiveSheet().getSheetId();const unitId = this._context.unit.getUnitId();const telemetryData = { sheetId, unitId, elapsedTimeToStart, ...summaryFrameStats };- this._telemetryService!.capture(TelemetryEventNames.sheet_render_cost, telemetryData);+ this._telemetryService!.capture('sheet_render_cost', telemetryData);}private _addComponent(workbook: Workbook) {