analytics

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostHogClient

type PostHogClient struct {
	// contains filtered or unexported fields
}

PostHogClient wraps the PostHog client for analytics tracking

func NewPostHogClient

func NewPostHogClient(apiBaseURL, apiKey, bearerToken, clientID string, enableTelemetry bool) *PostHogClient

NewPostHogClient creates a new PostHog client

func (*PostHogClient) CaptureInstrumentationVersionMismatch

func (p *PostHogClient) CaptureInstrumentationVersionMismatch(
	moduleName string,
	requestedVersion string,
	supportedVersions []string,
	sdkVersion string,
)

CaptureInstrumentationVersionMismatch sends a version mismatch event to PostHog

func (*PostHogClient) CaptureUnpatchedDependency

func (p *PostHogClient) CaptureUnpatchedDependency(
	traceTestServerSpanId string,
	stackTrace string,
	sdkVersion string,
)

CaptureUnpatchedDependency sends an unpatched dependency event to PostHog

func (*PostHogClient) Close

func (p *PostHogClient) Close() error

Close flushes and closes the PostHog client

Jump to

Keyboard shortcuts

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