@univerjs-pro/telemetry v0.5.0-beta.1 • Docs
Class: PosthogTelemetryService
Univer telemetry service interface. You should implement this interface to track telemetry data.
Extends
Implements
Constructors
new PosthogTelemetryService()
new PosthogTelemetryService(): PosthogTelemetryService
Returns
Overrides
Defined in
packages/telemetry/src/services/posthog.ts:9
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
Methods
capture()
capture(eventName, params?): void
Parameters
Parameter | Type |
---|---|
eventName | string |
params ? | Record <string , any > |
Returns
void
Implementation of
ITelemetryService
.capture
Defined in
packages/telemetry/src/services/posthog.ts:64
dispose()
dispose(): void
Returns
void
Implementation of
Overrides
Defined in
packages/telemetry/src/services/posthog.ts:74
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
endTime()
endTime(functionName): void
Parameters
Parameter | Type |
---|---|
functionName | string |
Returns
void
Implementation of
ITelemetryService
.endTime
Defined in
packages/telemetry/src/services/posthog.ts:39
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
identify()
identify(id, params?): void
Parameters
Parameter | Type |
---|---|
id | string |
params ? | Record <string , any > |
Returns
void
Implementation of
ITelemetryService
.identify
Defined in
packages/telemetry/src/services/posthog.ts:60
onPageView()
onPageView(url): void
Parameters
Parameter | Type |
---|---|
url | string |
Returns
void
Implementation of
ITelemetryService
.onPageView
Defined in
packages/telemetry/src/services/posthog.ts:68
startTime()
startTime(functionName): void
Parameters
Parameter | Type |
---|---|
functionName | string |
Returns
void
Implementation of
ITelemetryService
.startTime
Defined in
packages/telemetry/src/services/posthog.ts:35
trackPerformance()
trackPerformance(params): void
Parameters
Parameter | Type |
---|---|
params | object |
params.duration | number |
params.functionName | string |
Returns
void
Implementation of
ITelemetryService
.trackPerformance
Defined in
packages/telemetry/src/services/posthog.ts:52