MCPcopy Index your code
hub / github.com/PostHog/posthog-go

github.com/PostHog/posthog-go @v1.17.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.17.5 ↗ · + Follow
1,190 symbols 5,710 edges 94 files 468 documented · 39% 18 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PostHog Go

Go Reference min. Go Version

Please see the main PostHog docs.

SDK usage examples and code snippets live in the official documentation so they stay up to date.

Documentation

Questions?

Visit the community forum.

Contributing

See CONTRIBUTING.md for local setup and test instructions.

Releasing

See RELEASING.md.

Extension points exported contracts — how you extend this code

Callback (Interface)
Callback is implemented by applications that want delivery notifications. Callback methods are called by a client's int [7 …
message.go
Logger (Interface)
Logger defines the logging interface used by PostHog clients. [6 implementers]
logger.go
EnqueueClient (Interface)
EnqueueClient is the minimal interface implemented by clients that can queue PostHog messages. [4 implementers]
posthog.go
SendFeatureFlagsValue (Interface)
SendFeatureFlagsValue defines the legacy Capture.SendFeatureFlags configuration interface. [1 implementers]
capture.go
StackTraceExtractor (Interface)
StackTraceExtractor produces a stack trace for the current goroutine to enrich captured exceptions with call-site contex [1 …
error_tracking_stack_trace.go
DescriptionExtractor (Interface)
DescriptionExtractor defines the interface for extracting a human-readable description from a slog.Record for use in exc [1 …
error_tracking_slog.go
RequestContextOption (FuncType)
RequestContextOption customizes request context middleware.
request_context.go
SlogOption (FuncType)
SlogOption customizes NewSlogCaptureHandler.
error_tracking_slog_options.go

Core symbols most depended-on inside this repo

Close
called by 443
posthog.go
Errorf
called by 436
logger.go
Set
called by 304
groups.go
Error
called by 215
error.go
NewWithConfig
called by 212
posthog.go
NewProperties
called by 184
properties.go
Write
called by 162
request_context.go
Enqueue
called by 129
posthog.go

Shape

Function 652
Method 351
Struct 156
Interface 14
TypeAlias 11
FuncType 6

Languages

Go100%

Modules by API surface

request_context.go85 symbols
featureflags.go85 symbols
posthog_test.go79 symbols
posthog.go77 symbols
feature_flags_local_test.go48 symbols
feature_flag_evaluations_test.go47 symbols
request_context_test.go38 symbols
capture_v1_send_test.go38 symbols
testdata_test.go27 symbols
testhelpers_test.go26 symbols
sdk_compliance_adapter/main.go23 symbols
flags.go22 symbols

For agents

$ claude mcp add posthog-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page