Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.1 KB
Raw Blame
import { SetupTaskId } from 'lib/components/ProductSetup'
import { LogsSDKInstructions } from 'scenes/onboarding/sdks/logs/LogsSDKInstructions'
import { OnboardingInstallStep } from 'scenes/onboarding/sdks/OnboardingInstallStep'
import { INSTALL_DEDUP_KEYS, type ProductOnboardingProvider } from 'scenes/onboarding/types'

import { ProductKey } from '~/queries/schema/schema-general'
import { OnboardingStepKey } from '~/types'

export const logsOnboarding: ProductOnboardingProvider = {
    steps: (ctx) => [
        {
            id: `${OnboardingStepKey.INSTALL}:${ProductKey.LOGS}`,
            productKey: ProductKey.LOGS,
            stepKey: OnboardingStepKey.INSTALL,
            role: ctx.role,
            setupTaskId: SetupTaskId.EnableLogCapture,
            // Logs uses OpenTelemetry, not posthog-js — no dedup with the analytics products.
            // Future OTel-based products would set the same dedupKey to share this step.
            dedupKey: INSTALL_DEDUP_KEYS.OPENTELEMETRY,
            render: () => <OnboardingInstallStep sdkInstructionMap={LogsSDKInstructions} hideInstallationCheck />,
        },
    ],
}