@univerjs-pro/telemetry v0.5.4
Class: PosthogTelemetryService
Defined in: packages/telemetry/src/services/posthog.ts:11
Univer telemetry service interface. You should implement this interface to track telemetry data.
Extends
Implements
Constructors
new PosthogTelemetryService()
new PosthogTelemetryService(): PosthogTelemetryService
Defined in: packages/telemetry/src/services/posthog.ts:15
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_posthog | protected | undefined | PostHog | undefined | - | packages/telemetry/src/services/posthog.ts:13 |
Accessors
posthog
Get Signature
get posthog(): undefined | PostHog
Defined in: packages/telemetry/src/services/posthog.ts:21
Returns
undefined
| PostHog
Methods
capture()
capture(eventName, params?): void
Defined in: packages/telemetry/src/services/posthog.ts:89
Track the event.
Parameters
Parameter | Type |
---|---|
eventName | string |
params ? | Record <string , any > |
Returns
void
Implementation of
debug()
debug(): void
Defined in: packages/telemetry/src/services/posthog.ts:41
Enable the debug mode.
Returns
void
Implementation of
dispose()
dispose(): void
Defined in: packages/telemetry/src/services/posthog.ts:99
Returns
void
Implementation of
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
endTime()
endTime(functionName): void
Defined in: packages/telemetry/src/services/posthog.ts:64
End the timer.
Parameters
Parameter | Type |
---|---|
functionName | string |
Returns
void
Implementation of
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
identify()
identify(id, params?): void
Defined in: packages/telemetry/src/services/posthog.ts:85
Identify the user.
Parameters
Parameter | Type |
---|---|
id | string |
params ? | Record <string , any > |
Returns
void
Implementation of
init()
init(options?): void
Defined in: packages/telemetry/src/services/posthog.ts:45
Initialize the telemetry service.
Parameters
Parameter | Type |
---|---|
options ? | Record <string , any > |
Returns
void
Implementation of
onPageView()
onPageView(url): void
Defined in: packages/telemetry/src/services/posthog.ts:93
Track the page view.
Parameters
Parameter | Type |
---|---|
url | string |
Returns
void
Implementation of
reset()
reset(): void
Defined in: packages/telemetry/src/services/posthog.ts:56
Reset the user.
Returns
void
Implementation of
startTime()
startTime(functionName): void
Defined in: packages/telemetry/src/services/posthog.ts:60
Start the timer.
Parameters
Parameter | Type |
---|---|
functionName | string |
Returns
void
Implementation of
trackPerformance()
trackPerformance(params): void
Defined in: packages/telemetry/src/services/posthog.ts:77
Track the performance event.
Parameters
Parameter | Type |
---|---|
params | { [prop: string] : any ; duration : number ; functionName : string ; } |
params.duration | number |
params.functionName | string |
Returns
void