telemetry

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close flushes pending events and shuts down the client. Safe to call even if telemetry is disabled.

func Init

func Init(enabled bool, id, version string)

Init initialises the PostHog client when telemetry is enabled. Safe to call multiple times; only the first call with enabled=true creates a client.

func IsEnabled

func IsEnabled() bool

IsEnabled reports whether telemetry is active.

func Track

func Track(event string, props posthog.Properties)

Track sends an event to PostHog. No-op if telemetry is disabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL