Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add info about Go personal API key in more places #9138

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contents/docs/feature-flags/local-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func main() {
os.Getenv("POSTHOG_API_KEY"),
posthog.Config{
Endpoint: "<ph_client_api_host>",
PersonalApiKey: "your personal API key", // Required for feature flags
PersonalApiKey: "your personal API key", // Optional, but much more performant. If this token is not supplied, then fetching feature flag values will be slower.
DefaultFeatureFlagsPollingInterval: 300 // Optional. Measured in seconds. Defaults to 300 (5 minutes).
// NextFeatureFlagsPollingTick: func() time.Duration {} // Optional. Use this to sync polling intervals between instances. For an example see: https://github.com/PostHog/posthog-go/pull/36#issuecomment-1991734125
},
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/integrate/_snippets/install-go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
client, _ := posthog.NewWithConfig(
os.Getenv("POSTHOG_API_KEY"),
posthog.Config{
PersonalApiKey: "your personal API key", // Required for feature flags
PersonalApiKey: "your personal API key", // Optional, but much more performant. If this token is not supplied, then fetching feature flag values will be slower.
Endpoint: "<ph_client_api_host>",
},
)
Expand Down
Loading