@univerjs-protelemetryclassesPosthogtelemetryservice

@univerjs-pro/telemetry v0.5.0-beta.1Docs


Class: PosthogTelemetryService

Univer telemetry service interface. You should implement this interface to track telemetry data.

Extends

Implements

Constructors

new PosthogTelemetryService()

new PosthogTelemetryService(): PosthogTelemetryService

Returns

PosthogTelemetryService

Overrides

Disposable.constructor

Defined in

packages/telemetry/src/services/posthog.ts:9

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

capture()

capture(eventName, params?): void

Parameters

ParameterType
eventNamestring
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

IDisposable.dispose

Overrides

Disposable.dispose

Defined in

packages/telemetry/src/services/posthog.ts:74


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


endTime()

endTime(functionName): void

Parameters

ParameterType
functionNamestring

Returns

void

Implementation of

ITelemetryService.endTime

Defined in

packages/telemetry/src/services/posthog.ts:39


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


identify()

identify(id, params?): void

Parameters

ParameterType
idstring
params?Record<string, any>

Returns

void

Implementation of

ITelemetryService.identify

Defined in

packages/telemetry/src/services/posthog.ts:60


onPageView()

onPageView(url): void

Parameters

ParameterType
urlstring

Returns

void

Implementation of

ITelemetryService.onPageView

Defined in

packages/telemetry/src/services/posthog.ts:68


startTime()

startTime(functionName): void

Parameters

ParameterType
functionNamestring

Returns

void

Implementation of

ITelemetryService.startTime

Defined in

packages/telemetry/src/services/posthog.ts:35


trackPerformance()

trackPerformance(params): void

Parameters

ParameterType
paramsobject
params.durationnumber
params.functionNamestring

Returns

void

Implementation of

ITelemetryService.trackPerformance

Defined in

packages/telemetry/src/services/posthog.ts:52