Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a thin wrapper around posthog-go that supports no-op usage when disabled and adds optional OpenTelemetry trace correlation.
type Options ¶
type Options struct {
// APIKey for your PostHog project.
APIKey string
// DistinctID for the posthog project.
DistinctID string
// BaseProperties to add to all events.
BaseProperties map[string]any
}
Options configures the PostHog client. If APIKey is empty, the client will be disabled and methods become no-ops.
Click to show internal directories.
Click to hide internal directories.