docs(logs): add android to logs onboarding#60141
Merged
Merged
Conversation
Adds an Android tile to the Logs SDK picker. Reuses the product-analytics install + configure steps, then appends a Logs-specific "Send a log" step using PostHog.logger.info. Requires posthog-android@3.46.0+, which ships the public PostHogLogger / PostHogLogsConfig surface.
Contributor
|
🎭 Playwright didn't run on this PR — your changes touch code that could affect E2E behavior, but Playwright is opt-in via label now to keep CI cost down. Add the Most PRs don't need this. Real regressions still get caught on master and fix-forward. |
Contributor
|
Reviews (1): Last reviewed commit: "feat(logs): add android to logs onboardi..." | Re-trigger Greptile |
Contributor
|
Size Change: +1.08 kB (0%) Total Size: 80.1 MB 📦 View Changed
ℹ️ View Unchanged
|
Contributor
|
Docs from this PR will be published at posthog.com
Preview will be ready in ~10 minutes. Click Preview link above to access docs at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Logs install onboarding picker didn't list Android, even though
posthog-android@3.46.0ships first-class log capture (PostHog/posthog-android#525, merged). Android developers had no in-product path to wire up Logs. Follow-up to #59216, which added iOS and React Native.Changes
Adds an Android tile to the Logs SDK picker. Reuses the product-analytics install + configure steps, then appends a Logs-specific "Send a log" step using
PostHog.logger.infowith structured attributes.How did you test this code?
I am an agent. I ran
pnpm exec tsc --noEmiton the touched files (no errors) and lint-staged on commit (passed: prettier + eslint viabin/hogli format:js). I did not drive the local stack to load the picker manually for this iteration — mirrors the structure of the merged iOS / React Native tiles from #59216.Publish to changelog?
no
Docs update
Companion docs PR: PostHog/posthog.com#17037 adds the Android logs installation page (linked from the tile).
🤖 Agent context
Authored by an agent (Claude Code), human-driven. Approach: mirror the iOS variant exactly — call
getAndroidStepsPA(ctx)fromdocs/onboarding/product-analytics/androidfor install + configure, then append a single KotlinPostHog.logger.info(...)snippet as the "Send a log" step. No version param needed: the product-analytics Android install snippet pinscom.posthog:posthog-android:3.+, which already covers3.46.0+.Considered but rejected: showing both
PostHog.logger.info(...)andPostHog.captureLog(...)in the onboarding snippet. The iOS / RN tiles each show only one entry-point; keeping it to the high-level facade matches that pattern and is the call site most users will reach for first.