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
Click to show internal directories.
Click to hide internal directories.