[{"data":1,"prerenderedAt":2740},["ShallowReactive",2],{"navigation_docs":3,"-integrate-adapters-cloud-posthog":464,"-integrate-adapters-cloud-posthog-surround":2735},[4,30,80,245,379,434],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Start","\u002Fstart","1.start",[9,14,19,24],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Why start with evlog","\u002Fstart\u002Fwhy-evlog","1.start\u002F2.why-evlog","i-lucide-rocket",{"title":20,"path":21,"stem":22,"icon":23},"Installation","\u002Fstart\u002Finstallation","1.start\u002F3.installation","i-lucide-download",{"title":25,"path":26,"stem":27,"icon":28},"Quick Start","\u002Fstart\u002Fquick-start","1.start\u002F4.quick-start","i-lucide-zap",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Learn","\u002Flearn","2.learn",[35,40,45,50,55,60,65,70,75],{"title":36,"path":37,"stem":38,"icon":39},"Overview","\u002Flearn\u002Foverview","2.learn\u002F0.overview","i-lucide-list",{"title":41,"path":42,"stem":43,"icon":44},"Simple Logging","\u002Flearn\u002Fsimple-logging","2.learn\u002F1.simple-logging","i-lucide-terminal",{"title":46,"path":47,"stem":48,"icon":49},"Wide Events","\u002Flearn\u002Fwide-events","2.learn\u002F2.wide-events","i-lucide-layers",{"title":51,"path":52,"stem":53,"icon":54},"Structured Errors","\u002Flearn\u002Fstructured-errors","2.learn\u002F3.structured-errors","i-lucide-shield-alert",{"title":56,"path":57,"stem":58,"icon":59},"Lifecycle","\u002Flearn\u002Flifecycle","2.learn\u002F4.lifecycle","i-lucide-arrow-right-left",{"title":61,"path":62,"stem":63,"icon":64},"Sampling","\u002Flearn\u002Fsampling","2.learn\u002F5.sampling","i-lucide-filter",{"title":66,"path":67,"stem":68,"icon":69},"Auto-Redaction","\u002Flearn\u002Fredaction","2.learn\u002F6.redaction","i-lucide-eye-off",{"title":71,"path":72,"stem":73,"icon":74},"Typed Fields","\u002Flearn\u002Ftyped-fields","2.learn\u002F7.typed-fields","i-simple-icons-typescript",{"title":76,"path":77,"stem":78,"icon":79},"Catalogs","\u002Flearn\u002Fcatalogs","2.learn\u002F8.catalogs","i-lucide-book-open",{"title":81,"path":82,"stem":83,"children":84,"page":29},"Integrate","\u002Fintegrate","3.integrate",[85,89,157],{"title":36,"path":86,"stem":87,"icon":88},"\u002Fintegrate\u002Foverview","3.integrate\u002F0.overview","i-lucide-plug",{"title":90,"path":91,"stem":92,"children":93,"page":29},"Adapters","\u002Fintegrate\u002Fadapters","3.integrate\u002Fadapters",[94,97,137],{"title":36,"path":95,"stem":96,"icon":39},"\u002Fintegrate\u002Fadapters\u002Foverview","3.integrate\u002Fadapters\u002F01.overview",{"title":98,"path":99,"stem":100,"children":101,"page":29},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","3.integrate\u002Fadapters\u002Fcloud",[102,107,112,117,122,127,132],{"title":103,"path":104,"stem":105,"icon":106},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","3.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":108,"path":109,"stem":110,"icon":111},"OTLP","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fotlp","3.integrate\u002Fadapters\u002Fcloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":113,"path":114,"stem":115,"icon":116},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","3.integrate\u002Fadapters\u002Fcloud\u002F03.posthog","i-simple-icons-posthog",{"title":118,"path":119,"stem":120,"icon":121},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","3.integrate\u002Fadapters\u002Fcloud\u002F04.sentry","i-simple-icons-sentry",{"title":123,"path":124,"stem":125,"icon":126},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","3.integrate\u002Fadapters\u002Fcloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":128,"path":129,"stem":130,"icon":131},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","3.integrate\u002Fadapters\u002Fcloud\u002F06.datadog","i-simple-icons-datadog",{"title":133,"path":134,"stem":135,"icon":136},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fhyperdx","3.integrate\u002Fadapters\u002Fcloud\u002F07.hyperdx","i-custom-hyperdx",{"title":138,"path":139,"stem":140,"children":141,"page":29},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","3.integrate\u002Fadapters\u002Fself-hosted",[142,147,152],{"title":143,"path":144,"stem":145,"icon":146},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","3.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":148,"path":149,"stem":150,"icon":151},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","3.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":153,"path":154,"stem":155,"icon":156},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","3.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":158,"path":159,"stem":160,"children":161,"page":29},"Frameworks","\u002Fintegrate\u002Fframeworks","3.integrate\u002Fframeworks",[162,166,171,176,181,186,191,196,201,206,211,216,221,226,230,235,240],{"title":36,"path":163,"stem":164,"icon":165},"\u002Fintegrate\u002Fframeworks\u002Foverview","3.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":167,"path":168,"stem":169,"icon":170},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","3.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":172,"path":173,"stem":174,"icon":175},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","3.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":177,"path":178,"stem":179,"icon":180},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","3.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":182,"path":183,"stem":184,"icon":185},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","3.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":187,"path":188,"stem":189,"icon":190},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","3.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":192,"path":193,"stem":194,"icon":195},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","3.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":197,"path":198,"stem":199,"icon":200},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","3.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":202,"path":203,"stem":204,"icon":205},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","3.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":207,"path":208,"stem":209,"icon":210},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","3.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":212,"path":213,"stem":214,"icon":215},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","3.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":217,"path":218,"stem":219,"icon":220},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","3.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":222,"path":223,"stem":224,"icon":225},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","3.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":227,"path":228,"stem":229,"icon":74},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","3.integrate\u002Fframeworks\u002F13.standalone",{"title":231,"path":232,"stem":233,"icon":234},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","3.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":236,"path":237,"stem":238,"icon":239},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","3.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":241,"path":242,"stem":243,"icon":244},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","3.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":246,"path":247,"stem":248,"children":249,"page":29},"Use Cases","\u002Fuse-cases","4.use-cases",[250,254,259,288,316,348,369,374],{"title":36,"path":251,"stem":252,"icon":253},"\u002Fuse-cases\u002Foverview","4.use-cases\u002F0.overview","i-lucide-list-checks",{"title":255,"path":256,"stem":257,"icon":258},"Client Logging","\u002Fuse-cases\u002Fclient-logging","4.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":260,"icon":261,"path":262,"stem":263,"children":264,"page":29},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","4.use-cases\u002F2.ai-sdk",[265,268,273,278,283],{"title":36,"path":266,"stem":267,"icon":39},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","4.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":269,"path":270,"stem":271,"icon":272},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","4.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":274,"path":275,"stem":276,"icon":277},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","4.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":279,"path":280,"stem":281,"icon":282},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","4.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":284,"path":285,"stem":286,"icon":287},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","4.use-cases\u002F2.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":289,"icon":290,"path":291,"stem":292,"children":293,"page":29},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","4.use-cases\u002F3.better-auth",[294,297,302,307,311],{"title":36,"path":295,"stem":296,"icon":39},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","4.use-cases\u002F3.better-auth\u002F01.overview",{"title":298,"path":299,"stem":300,"icon":301},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","4.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":303,"path":304,"stem":305,"icon":306},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","4.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":308,"path":309,"stem":310,"icon":258},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","4.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":312,"path":313,"stem":314,"icon":315},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","4.use-cases\u002F3.better-auth\u002F05.performance","i-lucide-gauge",{"title":317,"icon":318,"path":319,"stem":320,"children":321,"page":29},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","4.use-cases\u002F4.audit",[322,325,330,335,340,344],{"title":36,"path":323,"stem":324,"icon":39},"\u002Fuse-cases\u002Faudit\u002Foverview","4.use-cases\u002F4.audit\u002F01.overview",{"title":326,"path":327,"stem":328,"icon":329},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","4.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":331,"path":332,"stem":333,"icon":334},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","4.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":336,"path":337,"stem":338,"icon":339},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","4.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":341,"path":342,"stem":343,"icon":318},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","4.use-cases\u002F4.audit\u002F05.compliance",{"title":345,"path":346,"stem":347,"icon":79},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","4.use-cases\u002F4.audit\u002F06.recipes",{"title":284,"icon":315,"path":349,"stem":350,"children":351,"page":29},"\u002Fuse-cases\u002Ftelemetry","4.use-cases\u002F4.telemetry",[352,355,360,365],{"title":36,"path":353,"stem":354,"icon":39},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","4.use-cases\u002F4.telemetry\u002F01.overview",{"title":356,"path":357,"stem":358,"icon":359},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","4.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":361,"path":362,"stem":363,"icon":364},"Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","4.use-cases\u002F4.telemetry\u002F03.ingest","i-lucide-server",{"title":366,"path":367,"stem":368,"icon":79},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","4.use-cases\u002F4.telemetry\u002F04.reference",{"title":370,"path":371,"stem":372,"icon":373},"Enrichers","\u002Fuse-cases\u002Fenrichers","4.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":375,"path":376,"stem":377,"icon":378},"eve","\u002Fuse-cases\u002Feve","4.use-cases\u002F5.eve","i-custom-eve",{"title":380,"path":381,"stem":382,"children":383,"page":29},"Extend","\u002Fextend","5.extend",[384,388,393,398,403,407,411,415,419,424,429],{"title":36,"path":385,"stem":386,"icon":387},"\u002Fextend\u002Foverview","5.extend\u002F0.overview","i-lucide-blocks",{"title":389,"path":390,"stem":391,"icon":392},"Stream","\u002Fextend\u002Fstream","5.extend\u002F1.stream","i-lucide-radio-tower",{"title":394,"path":395,"stem":396,"icon":397},"Custom framework","\u002Fextend\u002Fcustom-framework","5.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":399,"path":400,"stem":401,"icon":402},"FS reader","\u002Fextend\u002Ffs-reader","5.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":345,"path":404,"stem":405,"icon":406},"\u002Fextend\u002Fconsumer-recipes","5.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":408,"path":409,"stem":410,"icon":387},"Plugins","\u002Fextend\u002Fplugins","5.extend\u002F4.plugins",{"title":412,"path":413,"stem":414,"icon":373},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","5.extend\u002F5.custom-enrichers",{"title":416,"path":417,"stem":418,"icon":64},"Tail sampling","\u002Fextend\u002Ftail-sampling","5.extend\u002F6.tail-sampling",{"title":420,"path":421,"stem":422,"icon":423},"Identity headers","\u002Fextend\u002Fidentity-headers","5.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":425,"path":426,"stem":427,"icon":428},"Custom drains","\u002Fextend\u002Fcustom-drains","5.extend\u002F8.custom-drains","i-lucide-share-2",{"title":430,"path":431,"stem":432,"icon":433},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","5.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":366,"path":435,"stem":436,"children":437,"page":29},"\u002Freference","6.reference",[438,443,446,451,455,460],{"title":439,"path":440,"stem":441,"icon":442},"Configuration","\u002Freference\u002Fconfiguration","6.reference\u002F1.configuration","i-lucide-settings",{"title":312,"path":444,"stem":445,"icon":315},"\u002Freference\u002Fperformance","6.reference\u002F2.performance",{"title":447,"path":448,"stem":449,"icon":450},"Vite Plugin","\u002Freference\u002Fvite-plugin","6.reference\u002F3.vite-plugin","i-custom-vite",{"title":452,"path":453,"stem":454,"icon":318},"Best Practices","\u002Freference\u002Fbest-practices","6.reference\u002F4.best-practices",{"title":456,"path":457,"stem":458,"icon":459},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","6.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":461,"path":462,"stem":463,"icon":373},"Agent Skills","\u002Freference\u002Fagent-skills","6.reference\u002F6.agent-skills",{"id":465,"title":466,"body":467,"description":2721,"extension":2722,"links":2723,"meta":2731,"navigation":2732,"path":114,"seo":2733,"stem":115,"__hash__":2734},"docs\u002F3.integrate\u002Fadapters\u002Fcloud\u002F03.posthog.md","PostHog Adapter",{"type":468,"value":469,"toc":2691},"minimark",[470,486,531,535,538,582,585,590,621,625,644,648,1226,1229,1232,1235,1265,1269,1310,1314,1321,1402,1406,1409,1466,1470,1546,1550,1560,1592,1596,1602,1642,1670,1674,1681,1694,1698,1707,1802,1813,1821,1837,1841,1945,1949,1952,2041,2045,2051,2077,2081,2156,2159,2299,2303,2307,2316,2319,2323,2326,2346,2350,2356,2369,2373,2376,2495,2498,2658,2662,2687],[471,472,473,479,480,485],"p",{},[474,475,113],"a",{"href":476,"rel":477},"https:\u002F\u002Fposthog.com",[478],"nofollow"," is an open-source product analytics platform. The evlog PostHog adapter sends your wide events to ",[474,481,484],{"href":482,"rel":483},"https:\u002F\u002Fposthog.com\u002Fdocs\u002Flogs",[478],"PostHog Logs"," via the standard OTLP format, giving you a dedicated log viewer with filtering, search, and tail mode using your existing PostHog API key.",[487,488,491,494,519],"prompt",{":actions":489,"description":490,"icon":116},"[\"copy\",\"cursor\",\"claude\"]","Add the PostHog drain adapter",[471,492,493],{},"Add the PostHog drain adapter to send evlog wide events to PostHog Logs.",[495,496,497,501,504,507,510,513,516],"ol",{},[498,499,500],"li",{},"Identify which framework I'm using and follow its evlog integration pattern",[498,502,503],{},"Install evlog if not already installed",[498,505,506],{},"Import createPostHogDrain from 'evlog\u002Fposthog'",[498,508,509],{},"Wire createPostHogDrain() into my framework's drain configuration",[498,511,512],{},"Set POSTHOG_API_KEY environment variable",[498,514,515],{},"Optionally set POSTHOG_HOST for EU or self-hosted instances",[498,517,518],{},"Test by triggering a request and checking PostHog > Logs",[471,520,521,522,526,527],{},"Adapter docs: ",[474,523,524],{"href":524,"rel":525},"https:\u002F\u002Fwww.evlog.dev\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog",[478],"\nFramework setup: ",[474,528,529],{"href":529,"rel":530},"https:\u002F\u002Fwww.evlog.dev\u002Fintegrate\u002Fframeworks\u002Foverview",[478],[532,533,20],"h2",{"id":534},"installation",[471,536,537],{},"The PostHog adapter comes bundled with evlog:",[539,540,546],"pre",{"className":541,"code":542,"filename":543,"language":544,"meta":545,"style":545},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createPostHogDrain } from 'evlog\u002Fposthog'\n","src\u002Findex.ts","typescript","",[547,548,549],"code",{"__ignoreMap":545},[550,551,554,558,562,566,569,572,575,579],"span",{"class":552,"line":553},"line",1,[550,555,557],{"class":556},"s7zQu","import",[550,559,561],{"class":560},"sMK4o"," {",[550,563,565],{"class":564},"sTEyZ"," createPostHogDrain",[550,567,568],{"class":560}," }",[550,570,571],{"class":556}," from",[550,573,574],{"class":560}," '",[550,576,578],{"class":577},"sfazB","evlog\u002Fposthog",[550,580,581],{"class":560},"'\n",[532,583,25],{"id":584},"quick-start",[586,587,589],"h3",{"id":588},"_1-get-your-posthog-project-api-key","1. Get your PostHog project API key",[495,591,592,600,614],{},[498,593,594,595],{},"Log in to your ",[474,596,599],{"href":597,"rel":598},"https:\u002F\u002Fapp.posthog.com",[478],"PostHog dashboard",[498,601,602,603,607,608,607,611],{},"Go to ",[604,605,606],"strong",{},"Settings"," > ",[604,609,610],{},"Project",[604,612,613],{},"Project API Key",[498,615,616,617,620],{},"Copy the key (starts with ",[547,618,619],{},"phc_",")",[586,622,624],{"id":623},"_2-set-environment-variables","2. Set environment variables",[539,626,631],{"className":627,"code":628,"filename":629,"language":630,"meta":545,"style":545},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","POSTHOG_API_KEY=phc_your-project-api-key\n",".env","bash",[547,632,633],{"__ignoreMap":545},[550,634,635,638,641],{"class":552,"line":553},[550,636,637],{"class":564},"POSTHOG_API_KEY",[550,639,640],{"class":560},"=",[550,642,643],{"class":577},"phc_your-project-api-key\n",[586,645,647],{"id":646},"_3-wire-the-drain-to-your-framework","3. Wire the drain to your framework",[649,650,651,765,896,958,1012,1071,1125,1178],"code-group",{},[539,652,655],{"className":541,"code":653,"filename":654,"language":544,"meta":545,"style":545},"\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\nimport { createPostHogDrain } from 'evlog\u002Fposthog'\n\nexport default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('evlog:drain', createPostHogDrain())\n})\n","Nuxt \u002F Nitro",[547,656,657,663,682,689,720,756],{"__ignoreMap":545},[550,658,659],{"class":552,"line":553},[550,660,662],{"class":661},"sHwdD","\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\n",[550,664,666,668,670,672,674,676,678,680],{"class":552,"line":665},2,[550,667,557],{"class":556},[550,669,561],{"class":560},[550,671,565],{"class":564},[550,673,568],{"class":560},[550,675,571],{"class":556},[550,677,574],{"class":560},[550,679,578],{"class":577},[550,681,581],{"class":560},[550,683,685],{"class":552,"line":684},3,[550,686,688],{"emptyLinePlaceholder":687},true,"\n",[550,690,692,695,698,702,705,707,711,713,717],{"class":552,"line":691},4,[550,693,694],{"class":556},"export",[550,696,697],{"class":556}," default",[550,699,701],{"class":700},"s2Zo4"," defineNitroPlugin",[550,703,704],{"class":564},"(",[550,706,704],{"class":560},[550,708,710],{"class":709},"sHdIc","nitroApp",[550,712,620],{"class":560},[550,714,716],{"class":715},"spNyl"," =>",[550,718,719],{"class":560}," {\n",[550,721,723,726,729,732,734,737,740,743,746,748,751,753],{"class":552,"line":722},5,[550,724,725],{"class":564},"  nitroApp",[550,727,728],{"class":560},".",[550,730,731],{"class":564},"hooks",[550,733,728],{"class":560},[550,735,736],{"class":700},"hook",[550,738,704],{"class":739},"swJcz",[550,741,742],{"class":560},"'",[550,744,745],{"class":577},"evlog:drain",[550,747,742],{"class":560},[550,749,750],{"class":560},",",[550,752,565],{"class":700},[550,754,755],{"class":739},"())\n",[550,757,759,762],{"class":552,"line":758},6,[550,760,761],{"class":560},"}",[550,763,764],{"class":564},")\n",[539,766,768],{"className":541,"code":767,"filename":172,"language":544,"meta":545,"style":545},"\u002F\u002F lib\u002Fevlog.ts\nimport { createEvlog } from 'evlog\u002Fnext'\nimport { createPostHogDrain } from 'evlog\u002Fposthog'\n\nexport const { withEvlog, useLogger, log, createError } = createEvlog({\n  service: 'my-app',\n  drain: createPostHogDrain(),\n})\n",[547,769,770,775,795,813,817,856,874,889],{"__ignoreMap":545},[550,771,772],{"class":552,"line":553},[550,773,774],{"class":661},"\u002F\u002F lib\u002Fevlog.ts\n",[550,776,777,779,781,784,786,788,790,793],{"class":552,"line":665},[550,778,557],{"class":556},[550,780,561],{"class":560},[550,782,783],{"class":564}," createEvlog",[550,785,568],{"class":560},[550,787,571],{"class":556},[550,789,574],{"class":560},[550,791,792],{"class":577},"evlog\u002Fnext",[550,794,581],{"class":560},[550,796,797,799,801,803,805,807,809,811],{"class":552,"line":684},[550,798,557],{"class":556},[550,800,561],{"class":560},[550,802,565],{"class":564},[550,804,568],{"class":560},[550,806,571],{"class":556},[550,808,574],{"class":560},[550,810,578],{"class":577},[550,812,581],{"class":560},[550,814,815],{"class":552,"line":691},[550,816,688],{"emptyLinePlaceholder":687},[550,818,819,821,824,826,829,831,834,836,839,841,844,846,849,851,853],{"class":552,"line":722},[550,820,694],{"class":556},[550,822,823],{"class":715}," const",[550,825,561],{"class":560},[550,827,828],{"class":564}," withEvlog",[550,830,750],{"class":560},[550,832,833],{"class":564}," useLogger",[550,835,750],{"class":560},[550,837,838],{"class":564}," log",[550,840,750],{"class":560},[550,842,843],{"class":564}," createError ",[550,845,761],{"class":560},[550,847,848],{"class":560}," =",[550,850,783],{"class":700},[550,852,704],{"class":564},[550,854,855],{"class":560},"{\n",[550,857,858,861,864,866,869,871],{"class":552,"line":758},[550,859,860],{"class":739},"  service",[550,862,863],{"class":560},":",[550,865,574],{"class":560},[550,867,868],{"class":577},"my-app",[550,870,742],{"class":560},[550,872,873],{"class":560},",\n",[550,875,877,880,882,884,887],{"class":552,"line":876},7,[550,878,879],{"class":739},"  drain",[550,881,863],{"class":560},[550,883,565],{"class":700},[550,885,886],{"class":564},"()",[550,888,873],{"class":560},[550,890,892,894],{"class":552,"line":891},8,[550,893,761],{"class":560},[550,895,764],{"class":564},[539,897,899],{"className":541,"code":898,"filename":202,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\napp.use(evlog({ drain: createPostHogDrain() }))\n",[547,900,901,919,923],{"__ignoreMap":545},[550,902,903,905,907,909,911,913,915,917],{"class":552,"line":553},[550,904,557],{"class":556},[550,906,561],{"class":560},[550,908,565],{"class":564},[550,910,568],{"class":560},[550,912,571],{"class":556},[550,914,574],{"class":560},[550,916,578],{"class":577},[550,918,581],{"class":560},[550,920,921],{"class":552,"line":665},[550,922,688],{"emptyLinePlaceholder":687},[550,924,925,928,930,933,935,938,940,943,946,948,950,953,955],{"class":552,"line":684},[550,926,927],{"class":564},"app",[550,929,728],{"class":560},[550,931,932],{"class":700},"use",[550,934,704],{"class":564},[550,936,937],{"class":700},"evlog",[550,939,704],{"class":564},[550,941,942],{"class":560},"{",[550,944,945],{"class":739}," drain",[550,947,863],{"class":560},[550,949,565],{"class":700},[550,951,952],{"class":564},"() ",[550,954,761],{"class":560},[550,956,957],{"class":564},"))\n",[539,959,960],{"className":541,"code":898,"filename":197,"language":544,"meta":545,"style":545},[547,961,962,980,984],{"__ignoreMap":545},[550,963,964,966,968,970,972,974,976,978],{"class":552,"line":553},[550,965,557],{"class":556},[550,967,561],{"class":560},[550,969,565],{"class":564},[550,971,568],{"class":560},[550,973,571],{"class":556},[550,975,574],{"class":560},[550,977,578],{"class":577},[550,979,581],{"class":560},[550,981,982],{"class":552,"line":665},[550,983,688],{"emptyLinePlaceholder":687},[550,985,986,988,990,992,994,996,998,1000,1002,1004,1006,1008,1010],{"class":552,"line":684},[550,987,927],{"class":564},[550,989,728],{"class":560},[550,991,932],{"class":700},[550,993,704],{"class":564},[550,995,937],{"class":700},[550,997,704],{"class":564},[550,999,942],{"class":560},[550,1001,945],{"class":739},[550,1003,863],{"class":560},[550,1005,565],{"class":700},[550,1007,952],{"class":564},[550,1009,761],{"class":560},[550,1011,957],{"class":564},[539,1013,1015],{"className":541,"code":1014,"filename":207,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\nawait app.register(evlog, { drain: createPostHogDrain() })\n",[547,1016,1017,1035,1039],{"__ignoreMap":545},[550,1018,1019,1021,1023,1025,1027,1029,1031,1033],{"class":552,"line":553},[550,1020,557],{"class":556},[550,1022,561],{"class":560},[550,1024,565],{"class":564},[550,1026,568],{"class":560},[550,1028,571],{"class":556},[550,1030,574],{"class":560},[550,1032,578],{"class":577},[550,1034,581],{"class":560},[550,1036,1037],{"class":552,"line":665},[550,1038,688],{"emptyLinePlaceholder":687},[550,1040,1041,1044,1047,1049,1052,1055,1057,1059,1061,1063,1065,1067,1069],{"class":552,"line":684},[550,1042,1043],{"class":556},"await",[550,1045,1046],{"class":564}," app",[550,1048,728],{"class":560},[550,1050,1051],{"class":700},"register",[550,1053,1054],{"class":564},"(evlog",[550,1056,750],{"class":560},[550,1058,561],{"class":560},[550,1060,945],{"class":739},[550,1062,863],{"class":560},[550,1064,565],{"class":700},[550,1066,952],{"class":564},[550,1068,761],{"class":560},[550,1070,764],{"class":564},[539,1072,1073],{"className":541,"code":898,"filename":212,"language":544,"meta":545,"style":545},[547,1074,1075,1093,1097],{"__ignoreMap":545},[550,1076,1077,1079,1081,1083,1085,1087,1089,1091],{"class":552,"line":553},[550,1078,557],{"class":556},[550,1080,561],{"class":560},[550,1082,565],{"class":564},[550,1084,568],{"class":560},[550,1086,571],{"class":556},[550,1088,574],{"class":560},[550,1090,578],{"class":577},[550,1092,581],{"class":560},[550,1094,1095],{"class":552,"line":665},[550,1096,688],{"emptyLinePlaceholder":687},[550,1098,1099,1101,1103,1105,1107,1109,1111,1113,1115,1117,1119,1121,1123],{"class":552,"line":684},[550,1100,927],{"class":564},[550,1102,728],{"class":560},[550,1104,932],{"class":700},[550,1106,704],{"class":564},[550,1108,937],{"class":700},[550,1110,704],{"class":564},[550,1112,942],{"class":560},[550,1114,945],{"class":739},[550,1116,863],{"class":560},[550,1118,565],{"class":700},[550,1120,952],{"class":564},[550,1122,761],{"class":560},[550,1124,957],{"class":564},[539,1126,1128],{"className":541,"code":1127,"filename":192,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\nEvlogModule.forRoot({ drain: createPostHogDrain() })\n",[547,1129,1130,1148,1152],{"__ignoreMap":545},[550,1131,1132,1134,1136,1138,1140,1142,1144,1146],{"class":552,"line":553},[550,1133,557],{"class":556},[550,1135,561],{"class":560},[550,1137,565],{"class":564},[550,1139,568],{"class":560},[550,1141,571],{"class":556},[550,1143,574],{"class":560},[550,1145,578],{"class":577},[550,1147,581],{"class":560},[550,1149,1150],{"class":552,"line":665},[550,1151,688],{"emptyLinePlaceholder":687},[550,1153,1154,1157,1159,1162,1164,1166,1168,1170,1172,1174,1176],{"class":552,"line":684},[550,1155,1156],{"class":564},"EvlogModule",[550,1158,728],{"class":560},[550,1160,1161],{"class":700},"forRoot",[550,1163,704],{"class":564},[550,1165,942],{"class":560},[550,1167,945],{"class":739},[550,1169,863],{"class":560},[550,1171,565],{"class":700},[550,1173,952],{"class":564},[550,1175,761],{"class":560},[550,1177,764],{"class":564},[539,1179,1181],{"className":541,"code":1180,"filename":227,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\ninitLogger({ drain: createPostHogDrain() })\n",[547,1182,1183,1201,1205],{"__ignoreMap":545},[550,1184,1185,1187,1189,1191,1193,1195,1197,1199],{"class":552,"line":553},[550,1186,557],{"class":556},[550,1188,561],{"class":560},[550,1190,565],{"class":564},[550,1192,568],{"class":560},[550,1194,571],{"class":556},[550,1196,574],{"class":560},[550,1198,578],{"class":577},[550,1200,581],{"class":560},[550,1202,1203],{"class":552,"line":665},[550,1204,688],{"emptyLinePlaceholder":687},[550,1206,1207,1210,1212,1214,1216,1218,1220,1222,1224],{"class":552,"line":684},[550,1208,1209],{"class":700},"initLogger",[550,1211,704],{"class":564},[550,1213,942],{"class":560},[550,1215,945],{"class":739},[550,1217,863],{"class":560},[550,1219,565],{"class":700},[550,1221,952],{"class":564},[550,1223,761],{"class":560},[550,1225,764],{"class":564},[471,1227,1228],{},"That's it! Your wide events will now appear in PostHog Logs with full OTLP structure including severity levels, trace context, and structured attributes.",[532,1230,439],{"id":1231},"configuration",[471,1233,1234],{},"The adapter reads configuration from multiple sources (highest priority first):",[495,1236,1237,1246,1256],{},[498,1238,1239,1242,1243],{},[604,1240,1241],{},"Overrides"," passed to ",[547,1244,1245],{},"createPostHogDrain()",[498,1247,1248,1251,1252,1255],{},[604,1249,1250],{},"Runtime config"," at ",[547,1253,1254],{},"runtimeConfig.posthog"," (Nuxt\u002FNitro only)",[498,1257,1258,1261,1262,620],{},[604,1259,1260],{},"Environment variables"," (",[547,1263,1264],{},"POSTHOG_*",[586,1266,1268],{"id":1267},"environment-variables","Environment Variables",[1270,1271,1272,1285],"table",{},[1273,1274,1275],"thead",{},[1276,1277,1278,1282],"tr",{},[1279,1280,1281],"th",{},"Variable",[1279,1283,1284],{},"Description",[1286,1287,1288,1300],"tbody",{},[1276,1289,1290,1295],{},[1291,1292,1293],"td",{},[547,1294,637],{},[1291,1296,1297,1298,620],{},"Project API key (starts with ",[547,1299,619],{},[1276,1301,1302,1307],{},[1291,1303,1304],{},[547,1305,1306],{},"POSTHOG_HOST",[1291,1308,1309],{},"PostHog host URL (for EU or self-hosted)",[586,1311,1313],{"id":1312},"runtime-config-nuxt-only","Runtime Config (Nuxt only)",[471,1315,1316,1317,1320],{},"Configure via ",[547,1318,1319],{},"nuxt.config.ts"," for type-safe configuration:",[539,1322,1324],{"className":541,"code":1323,"filename":1319,"language":544,"meta":545,"style":545},"export default defineNuxtConfig({\n  runtimeConfig: {\n    posthog: {\n      apiKey: '', \u002F\u002F Set via POSTHOG_API_KEY\n      host: '', \u002F\u002F Set via POSTHOG_HOST\n    },\n  },\n})\n",[547,1325,1326,1339,1348,1357,1372,1386,1391,1396],{"__ignoreMap":545},[550,1327,1328,1330,1332,1335,1337],{"class":552,"line":553},[550,1329,694],{"class":556},[550,1331,697],{"class":556},[550,1333,1334],{"class":700}," defineNuxtConfig",[550,1336,704],{"class":564},[550,1338,855],{"class":560},[550,1340,1341,1344,1346],{"class":552,"line":665},[550,1342,1343],{"class":739},"  runtimeConfig",[550,1345,863],{"class":560},[550,1347,719],{"class":560},[550,1349,1350,1353,1355],{"class":552,"line":684},[550,1351,1352],{"class":739},"    posthog",[550,1354,863],{"class":560},[550,1356,719],{"class":560},[550,1358,1359,1362,1364,1367,1369],{"class":552,"line":691},[550,1360,1361],{"class":739},"      apiKey",[550,1363,863],{"class":560},[550,1365,1366],{"class":560}," ''",[550,1368,750],{"class":560},[550,1370,1371],{"class":661}," \u002F\u002F Set via POSTHOG_API_KEY\n",[550,1373,1374,1377,1379,1381,1383],{"class":552,"line":722},[550,1375,1376],{"class":739},"      host",[550,1378,863],{"class":560},[550,1380,1366],{"class":560},[550,1382,750],{"class":560},[550,1384,1385],{"class":661}," \u002F\u002F Set via POSTHOG_HOST\n",[550,1387,1388],{"class":552,"line":758},[550,1389,1390],{"class":560},"    },\n",[550,1392,1393],{"class":552,"line":876},[550,1394,1395],{"class":560},"  },\n",[550,1397,1398,1400],{"class":552,"line":891},[550,1399,761],{"class":560},[550,1401,764],{"class":564},[586,1403,1405],{"id":1404},"override-options","Override Options",[471,1407,1408],{},"Pass options directly to override any configuration:",[539,1410,1413],{"className":541,"code":1411,"filename":1412,"language":544,"meta":545,"style":545},"const drain = createPostHogDrain({\n  host: 'https:\u002F\u002Feu.i.posthog.com',\n  timeout: 10000,\n})\n","server\u002Fplugins\u002Fevlog-drain.ts",[547,1414,1415,1431,1447,1460],{"__ignoreMap":545},[550,1416,1417,1420,1423,1425,1427,1429],{"class":552,"line":553},[550,1418,1419],{"class":715},"const",[550,1421,1422],{"class":564}," drain ",[550,1424,640],{"class":560},[550,1426,565],{"class":700},[550,1428,704],{"class":564},[550,1430,855],{"class":560},[550,1432,1433,1436,1438,1440,1443,1445],{"class":552,"line":665},[550,1434,1435],{"class":739},"  host",[550,1437,863],{"class":560},[550,1439,574],{"class":560},[550,1441,1442],{"class":577},"https:\u002F\u002Feu.i.posthog.com",[550,1444,742],{"class":560},[550,1446,873],{"class":560},[550,1448,1449,1452,1454,1458],{"class":552,"line":684},[550,1450,1451],{"class":739},"  timeout",[550,1453,863],{"class":560},[550,1455,1457],{"class":1456},"sbssI"," 10000",[550,1459,873],{"class":560},[550,1461,1462,1464],{"class":552,"line":691},[550,1463,761],{"class":560},[550,1465,764],{"class":564},[586,1467,1469],{"id":1468},"full-configuration-reference","Full Configuration Reference",[1270,1471,1472,1487],{},[1273,1473,1474],{},[1276,1475,1476,1479,1482,1485],{},[1279,1477,1478],{},"Option",[1279,1480,1481],{},"Type",[1279,1483,1484],{},"Default",[1279,1486,1284],{},[1286,1488,1489,1507,1526],{},[1276,1490,1491,1496,1501,1504],{},[1291,1492,1493],{},[547,1494,1495],{},"apiKey",[1291,1497,1498],{},[547,1499,1500],{},"string",[1291,1502,1503],{},"-",[1291,1505,1506],{},"Project API key (required)",[1276,1508,1509,1514,1518,1523],{},[1291,1510,1511],{},[547,1512,1513],{},"host",[1291,1515,1516],{},[547,1517,1500],{},[1291,1519,1520],{},[547,1521,1522],{},"https:\u002F\u002Fus.i.posthog.com",[1291,1524,1525],{},"PostHog host URL",[1276,1527,1528,1533,1538,1543],{},[1291,1529,1530],{},[547,1531,1532],{},"timeout",[1291,1534,1535],{},[547,1536,1537],{},"number",[1291,1539,1540],{},[547,1541,1542],{},"5000",[1291,1544,1545],{},"Request timeout in milliseconds",[532,1547,1549],{"id":1548},"how-it-works","How It Works",[471,1551,1552,1553,1555,1556,1559],{},"Under the hood, ",[547,1554,1245],{}," wraps the OTLP adapter's ",[547,1557,1558],{},"sendBatchToOTLP()"," with PostHog-specific defaults:",[1561,1562,1563,1573,1582],"ul",{},[498,1564,1565,1568,1569,1572],{},[604,1566,1567],{},"Endpoint",": ",[547,1570,1571],{},"{host}\u002Fi\u002Fv1\u002Flogs"," (PostHog's OTLP log ingest endpoint)",[498,1574,1575,1568,1578,1581],{},[604,1576,1577],{},"Auth",[547,1579,1580],{},"Authorization: Bearer {apiKey}"," header",[498,1583,1584,1587,1588,1591],{},[604,1585,1586],{},"Format",": Standard OTLP ",[547,1589,1590],{},"ExportLogsServiceRequest"," with severity levels, trace context, and structured attributes",[532,1593,1595],{"id":1594},"regions","Regions",[471,1597,1598,1599,1601],{},"PostHog offers US and EU cloud hosting. Set the ",[547,1600,1513],{}," to match your region:",[1270,1603,1604,1614],{},[1273,1605,1606],{},[1276,1607,1608,1611],{},[1279,1609,1610],{},"Region",[1279,1612,1613],{},"Host",[1286,1615,1616,1625,1634],{},[1276,1617,1618,1621],{},[1291,1619,1620],{},"US (default)",[1291,1622,1623],{},[547,1624,1522],{},[1276,1626,1627,1630],{},[1291,1628,1629],{},"EU",[1291,1631,1632],{},[547,1633,1442],{},[1276,1635,1636,1639],{},[1291,1637,1638],{},"Self-hosted",[1291,1640,1641],{},"Your instance URL",[539,1643,1645],{"className":627,"code":1644,"filename":629,"language":630,"meta":545,"style":545},"# EU region\nPOSTHOG_API_KEY=phc_xxx\nPOSTHOG_HOST=https:\u002F\u002Feu.i.posthog.com\n",[547,1646,1647,1652,1661],{"__ignoreMap":545},[550,1648,1649],{"class":552,"line":553},[550,1650,1651],{"class":661},"# EU region\n",[550,1653,1654,1656,1658],{"class":552,"line":665},[550,1655,637],{"class":564},[550,1657,640],{"class":560},[550,1659,1660],{"class":577},"phc_xxx\n",[550,1662,1663,1665,1667],{"class":552,"line":684},[550,1664,1306],{"class":564},[550,1666,640],{"class":560},[550,1668,1669],{"class":577},"https:\u002F\u002Feu.i.posthog.com\n",[532,1671,1673],{"id":1672},"querying-logs-in-posthog","Querying Logs in PostHog",[471,1675,1676,1677,1680],{},"Once your logs are flowing, use the ",[604,1678,1679],{},"Logs"," tab in PostHog to query them:",[495,1682,1683,1688,1691],{},[498,1684,602,1685,1687],{},[604,1686,1679],{}," and filter by service, severity, or any structured attribute",[498,1689,1690],{},"Use the search bar to find specific log entries",[498,1692,1693],{},"Click on a log entry to see all structured attributes",[532,1695,1697],{"id":1696},"posthog-events-custom-events","PostHog Events (Custom Events)",[471,1699,1700,1701,1703,1704,863],{},"If you prefer sending logs as PostHog custom events (e.g., for product analytics, cohorts, or funnels), use ",[547,1702,1245],{}," with ",[547,1705,1706],{},"mode: 'events'",[539,1708,1710],{"className":541,"code":1709,"filename":1412,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\nconst drain = createPostHogDrain({\n  mode: 'events',\n  eventName: 'server_request',\n  distinctId: 'my-backend-service',\n})\n",[547,1711,1712,1730,1734,1748,1764,1780,1796],{"__ignoreMap":545},[550,1713,1714,1716,1718,1720,1722,1724,1726,1728],{"class":552,"line":553},[550,1715,557],{"class":556},[550,1717,561],{"class":560},[550,1719,565],{"class":564},[550,1721,568],{"class":560},[550,1723,571],{"class":556},[550,1725,574],{"class":560},[550,1727,578],{"class":577},[550,1729,581],{"class":560},[550,1731,1732],{"class":552,"line":665},[550,1733,688],{"emptyLinePlaceholder":687},[550,1735,1736,1738,1740,1742,1744,1746],{"class":552,"line":684},[550,1737,1419],{"class":715},[550,1739,1422],{"class":564},[550,1741,640],{"class":560},[550,1743,565],{"class":700},[550,1745,704],{"class":564},[550,1747,855],{"class":560},[550,1749,1750,1753,1755,1757,1760,1762],{"class":552,"line":691},[550,1751,1752],{"class":739},"  mode",[550,1754,863],{"class":560},[550,1756,574],{"class":560},[550,1758,1759],{"class":577},"events",[550,1761,742],{"class":560},[550,1763,873],{"class":560},[550,1765,1766,1769,1771,1773,1776,1778],{"class":552,"line":722},[550,1767,1768],{"class":739},"  eventName",[550,1770,863],{"class":560},[550,1772,574],{"class":560},[550,1774,1775],{"class":577},"server_request",[550,1777,742],{"class":560},[550,1779,873],{"class":560},[550,1781,1782,1785,1787,1789,1792,1794],{"class":552,"line":758},[550,1783,1784],{"class":739},"  distinctId",[550,1786,863],{"class":560},[550,1788,574],{"class":560},[550,1790,1791],{"class":577},"my-backend-service",[550,1793,742],{"class":560},[550,1795,873],{"class":560},[550,1797,1798,1800],{"class":552,"line":876},[550,1799,761],{"class":560},[550,1801,764],{"class":564},[471,1803,1804,1805,1808,1809,1812],{},"Then pass ",[547,1806,1807],{},"drain"," to your framework the same way as the default logs drain (see ",[474,1810,25],{"href":1811},"#quick-start"," above).",[1814,1815,1817,1818,1820],"callout",{"color":1816,"icon":13},"info","Custom events count towards your PostHog event quota. PostHog Logs (the default ",[547,1819,1245],{},") is significantly cheaper.",[1814,1822,1825,1828,1829,1832,1833,1836],{"color":1823,"icon":1824},"warning","i-lucide-triangle-alert",[604,1826,1827],{},"Legacy:"," ",[547,1830,1831],{},"createPostHogEventsDrain()"," is deprecated and re-routes to ",[547,1834,1835],{},"createPostHogDrain({ mode: 'events' })",". It will be removed in the next major release.",[586,1838,1840],{"id":1839},"events-configuration","Events Configuration",[1270,1842,1843,1855],{},[1273,1844,1845],{},[1276,1846,1847,1849,1851,1853],{},[1279,1848,1478],{},[1279,1850,1481],{},[1279,1852,1484],{},[1279,1854,1284],{},[1286,1856,1857,1871,1887,1906,1929],{},[1276,1858,1859,1863,1867,1869],{},[1291,1860,1861],{},[547,1862,1495],{},[1291,1864,1865],{},[547,1866,1500],{},[1291,1868,1503],{},[1291,1870,1506],{},[1276,1872,1873,1877,1881,1885],{},[1291,1874,1875],{},[547,1876,1513],{},[1291,1878,1879],{},[547,1880,1500],{},[1291,1882,1883],{},[547,1884,1522],{},[1291,1886,1525],{},[1276,1888,1889,1894,1898,1903],{},[1291,1890,1891],{},[547,1892,1893],{},"eventName",[1291,1895,1896],{},[547,1897,1500],{},[1291,1899,1900],{},[547,1901,1902],{},"evlog_wide_event",[1291,1904,1905],{},"PostHog event name",[1276,1907,1908,1913,1917,1922],{},[1291,1909,1910],{},[547,1911,1912],{},"distinctId",[1291,1914,1915],{},[547,1916,1500],{},[1291,1918,1919],{},[547,1920,1921],{},"event.service",[1291,1923,1924,1925,1928],{},"Override ",[547,1926,1927],{},"distinct_id"," for all events",[1276,1930,1931,1935,1939,1943],{},[1291,1932,1933],{},[547,1934,1532],{},[1291,1936,1937],{},[547,1938,1537],{},[1291,1940,1941],{},[547,1942,1542],{},[1291,1944,1545],{},[586,1946,1948],{"id":1947},"event-format","Event Format",[471,1950,1951],{},"evlog maps wide events to PostHog events:",[1270,1953,1954,1964],{},[1273,1955,1956],{},[1276,1957,1958,1961],{},[1279,1959,1960],{},"evlog Field",[1279,1962,1963],{},"PostHog Field",[1286,1965,1966,1985,1996,2008,2019,2031],{},[1276,1967,1968,1980],{},[1291,1969,1970,1973,1974,1973,1977],{},[547,1971,1972],{},"config.distinctId"," or ",[547,1975,1976],{},"userId",[547,1978,1979],{},"service",[1291,1981,1982,1984],{},[547,1983,1927],{}," (fallback chain)",[1276,1986,1987,1992],{},[1291,1988,1989],{},[547,1990,1991],{},"timestamp",[1291,1993,1994],{},[547,1995,1991],{},[1276,1997,1998,2003],{},[1291,1999,2000],{},[547,2001,2002],{},"level",[1291,2004,2005],{},[547,2006,2007],{},"properties.level",[1276,2009,2010,2014],{},[1291,2011,2012],{},[547,2013,1979],{},[1291,2015,2016],{},[547,2017,2018],{},"properties.service",[1276,2020,2021,2026],{},[1291,2022,2023],{},[547,2024,2025],{},"environment",[1291,2027,2028],{},[547,2029,2030],{},"properties.environment",[1276,2032,2033,2036],{},[1291,2034,2035],{},"All other fields",[1291,2037,2038],{},[547,2039,2040],{},"properties.*",[586,2042,2044],{"id":2043},"distinct-id-resolution","Distinct ID Resolution",[471,2046,2047,2048,2050],{},"The ",[547,2049,1927],{}," follows a fallback chain:",[495,2052,2053,2062,2070],{},[498,2054,2055,2059,2060],{},[604,2056,2057],{},[547,2058,1972],{}," - explicit override in ",[547,2061,1835],{},[498,2063,2064,2069],{},[604,2065,2066],{},[547,2067,2068],{},"event.userId"," - automatically picked up if present as a string",[498,2071,2072,2076],{},[604,2073,2074],{},[547,2075,1921],{}," - final fallback",[586,2078,2080],{"id":2079},"logs-vs-events","Logs vs Events",[1270,2082,2083,2097],{},[1273,2084,2085],{},[1276,2086,2087,2089,2093],{},[1279,2088],{},[1279,2090,2091],{},[547,2092,1245],{},[1279,2094,2095],{},[547,2096,1835],{},[1286,2098,2099,2117,2130,2143],{},[1276,2100,2101,2105,2111],{},[1291,2102,2103],{},[604,2104,1586],{},[1291,2106,2107,2108,620],{},"OTLP Logs (",[547,2109,2110],{},"\u002Fi\u002Fv1\u002Flogs",[1291,2112,2113,2114,620],{},"PostHog Events (",[547,2115,2116],{},"\u002Fbatch\u002F",[1276,2118,2119,2124,2127],{},[1291,2120,2121],{},[604,2122,2123],{},"PostHog UI",[1291,2125,2126],{},"Logs viewer",[1291,2128,2129],{},"Events explorer",[1276,2131,2132,2137,2140],{},[1291,2133,2134],{},[604,2135,2136],{},"Cost",[1291,2138,2139],{},"Lower (dedicated logs pipeline)",[1291,2141,2142],{},"Higher (counts as events)",[1276,2144,2145,2150,2153],{},[1291,2146,2147],{},[604,2148,2149],{},"Best for",[1291,2151,2152],{},"Debugging, log search, observability",[1291,2154,2155],{},"Product analytics, cohorts, funnels",[471,2157,2158],{},"You can use both drains simultaneously to get the best of both worlds:",[539,2160,2162],{"className":541,"code":2161,"filename":1412,"language":544,"meta":545,"style":545},"import { createPostHogDrain } from 'evlog\u002Fposthog'\n\nconst logs = createPostHogDrain()\nconst events = createPostHogDrain({ mode: 'events' })\n\nconst drain = async (ctx) => {\n  await Promise.allSettled([logs(ctx), events(ctx)])\n}\n",[547,2163,2164,2182,2186,2200,2230,2234,2256,2294],{"__ignoreMap":545},[550,2165,2166,2168,2170,2172,2174,2176,2178,2180],{"class":552,"line":553},[550,2167,557],{"class":556},[550,2169,561],{"class":560},[550,2171,565],{"class":564},[550,2173,568],{"class":560},[550,2175,571],{"class":556},[550,2177,574],{"class":560},[550,2179,578],{"class":577},[550,2181,581],{"class":560},[550,2183,2184],{"class":552,"line":665},[550,2185,688],{"emptyLinePlaceholder":687},[550,2187,2188,2190,2193,2195,2197],{"class":552,"line":684},[550,2189,1419],{"class":715},[550,2191,2192],{"class":564}," logs ",[550,2194,640],{"class":560},[550,2196,565],{"class":700},[550,2198,2199],{"class":564},"()\n",[550,2201,2202,2204,2207,2209,2211,2213,2215,2218,2220,2222,2224,2226,2228],{"class":552,"line":691},[550,2203,1419],{"class":715},[550,2205,2206],{"class":564}," events ",[550,2208,640],{"class":560},[550,2210,565],{"class":700},[550,2212,704],{"class":564},[550,2214,942],{"class":560},[550,2216,2217],{"class":739}," mode",[550,2219,863],{"class":560},[550,2221,574],{"class":560},[550,2223,1759],{"class":577},[550,2225,742],{"class":560},[550,2227,568],{"class":560},[550,2229,764],{"class":564},[550,2231,2232],{"class":552,"line":722},[550,2233,688],{"emptyLinePlaceholder":687},[550,2235,2236,2238,2240,2242,2245,2247,2250,2252,2254],{"class":552,"line":758},[550,2237,1419],{"class":715},[550,2239,1422],{"class":564},[550,2241,640],{"class":560},[550,2243,2244],{"class":715}," async",[550,2246,1261],{"class":560},[550,2248,2249],{"class":709},"ctx",[550,2251,620],{"class":560},[550,2253,716],{"class":715},[550,2255,719],{"class":560},[550,2257,2258,2261,2265,2267,2270,2273,2276,2278,2280,2282,2284,2287,2289,2291],{"class":552,"line":876},[550,2259,2260],{"class":556},"  await",[550,2262,2264],{"class":2263},"sBMFI"," Promise",[550,2266,728],{"class":560},[550,2268,2269],{"class":700},"allSettled",[550,2271,2272],{"class":739},"([",[550,2274,2275],{"class":700},"logs",[550,2277,704],{"class":739},[550,2279,2249],{"class":564},[550,2281,620],{"class":739},[550,2283,750],{"class":560},[550,2285,2286],{"class":700}," events",[550,2288,704],{"class":739},[550,2290,2249],{"class":564},[550,2292,2293],{"class":739},")])\n",[550,2295,2296],{"class":552,"line":891},[550,2297,2298],{"class":560},"}\n",[532,2300,2302],{"id":2301},"troubleshooting","Troubleshooting",[586,2304,2306],{"id":2305},"missing-apikey-error","Missing apiKey error",[539,2308,2314],{"className":2309,"code":2311,"filename":2312,"language":2313,"meta":545},[2310],"language-text","[evlog\u002Fposthog] Missing apiKey. Set POSTHOG_API_KEY env var or pass to createPostHogDrain()\n","Console","text",[547,2315,2311],{"__ignoreMap":545},[471,2317,2318],{},"Make sure your environment variable is set and the server was restarted after adding it.",[586,2320,2322],{"id":2321},"events-not-appearing","Events not appearing",[471,2324,2325],{},"PostHog processes events asynchronously. There may be a short delay (typically under 1 minute) before events appear in the dashboard.",[495,2327,2328,2335,2340],{},[498,2329,2330,2331,2334],{},"Check the server console for ",[547,2332,2333],{},"[evlog\u002Fposthog]"," error messages",[498,2336,2337,2338],{},"Verify your API key is correct and starts with ",[547,2339,619],{},[498,2341,2342,2343,2345],{},"Confirm your ",[547,2344,1513],{}," matches your PostHog region (US vs EU)",[586,2347,2349],{"id":2348},"wrong-region","Wrong region",[471,2351,2352,2353,2355],{},"If you're on PostHog EU but using the default US host, event delivery will fail and the adapter will log errors (for example under ",[547,2354,2333],{},") to your server console. Set the correct host:",[539,2357,2359],{"className":627,"code":2358,"filename":629,"language":630,"meta":545,"style":545},"POSTHOG_HOST=https:\u002F\u002Feu.i.posthog.com\n",[547,2360,2361],{"__ignoreMap":545},[550,2362,2363,2365,2367],{"class":552,"line":553},[550,2364,1306],{"class":564},[550,2366,640],{"class":560},[550,2368,1669],{"class":577},[532,2370,2372],{"id":2371},"direct-api-usage","Direct API Usage",[471,2374,2375],{},"For advanced use cases, you can use the lower-level functions:",[539,2377,2380],{"className":541,"code":2378,"filename":2379,"language":544,"meta":545,"style":545},"import { sendToPostHog, sendBatchToPostHog } from 'evlog\u002Fposthog'\n\n\u002F\u002F Send a single event to PostHog Logs (OTLP)\nawait sendToPostHog(event, {\n  apiKey: 'phc_xxx',\n})\n\n\u002F\u002F Send multiple events in one request\nawait sendBatchToPostHog(events, {\n  apiKey: 'phc_xxx',\n})\n","server\u002Futils\u002Fposthog.ts",[547,2381,2382,2406,2410,2415,2428,2444,2450,2454,2459,2473,2488],{"__ignoreMap":545},[550,2383,2384,2386,2388,2391,2393,2396,2398,2400,2402,2404],{"class":552,"line":553},[550,2385,557],{"class":556},[550,2387,561],{"class":560},[550,2389,2390],{"class":564}," sendToPostHog",[550,2392,750],{"class":560},[550,2394,2395],{"class":564}," sendBatchToPostHog",[550,2397,568],{"class":560},[550,2399,571],{"class":556},[550,2401,574],{"class":560},[550,2403,578],{"class":577},[550,2405,581],{"class":560},[550,2407,2408],{"class":552,"line":665},[550,2409,688],{"emptyLinePlaceholder":687},[550,2411,2412],{"class":552,"line":684},[550,2413,2414],{"class":661},"\u002F\u002F Send a single event to PostHog Logs (OTLP)\n",[550,2416,2417,2419,2421,2424,2426],{"class":552,"line":691},[550,2418,1043],{"class":556},[550,2420,2390],{"class":700},[550,2422,2423],{"class":564},"(event",[550,2425,750],{"class":560},[550,2427,719],{"class":560},[550,2429,2430,2433,2435,2437,2440,2442],{"class":552,"line":722},[550,2431,2432],{"class":739},"  apiKey",[550,2434,863],{"class":560},[550,2436,574],{"class":560},[550,2438,2439],{"class":577},"phc_xxx",[550,2441,742],{"class":560},[550,2443,873],{"class":560},[550,2445,2446,2448],{"class":552,"line":758},[550,2447,761],{"class":560},[550,2449,764],{"class":564},[550,2451,2452],{"class":552,"line":876},[550,2453,688],{"emptyLinePlaceholder":687},[550,2455,2456],{"class":552,"line":891},[550,2457,2458],{"class":661},"\u002F\u002F Send multiple events in one request\n",[550,2460,2462,2464,2466,2469,2471],{"class":552,"line":2461},9,[550,2463,1043],{"class":556},[550,2465,2395],{"class":700},[550,2467,2468],{"class":564},"(events",[550,2470,750],{"class":560},[550,2472,719],{"class":560},[550,2474,2476,2478,2480,2482,2484,2486],{"class":552,"line":2475},10,[550,2477,2432],{"class":739},[550,2479,863],{"class":560},[550,2481,574],{"class":560},[550,2483,2439],{"class":577},[550,2485,742],{"class":560},[550,2487,873],{"class":560},[550,2489,2491,2493],{"class":552,"line":2490},11,[550,2492,761],{"class":560},[550,2494,764],{"class":564},[471,2496,2497],{},"For custom events, use the events-specific functions:",[539,2499,2501],{"className":541,"code":2500,"filename":2379,"language":544,"meta":545,"style":545},"import { sendToPostHogEvents, sendBatchToPostHogEvents, toPostHogEvent } from 'evlog\u002Fposthog'\n\n\u002F\u002F Send a single custom event\nawait sendToPostHogEvents(event, {\n  apiKey: 'phc_xxx',\n})\n\n\u002F\u002F Send multiple custom events in one request\nawait sendBatchToPostHogEvents(events, {\n  apiKey: 'phc_xxx',\n})\n\n\u002F\u002F Convert event to PostHog format (for inspection)\nconst posthogEvent = toPostHogEvent(event, { apiKey: 'phc_xxx' })\n",[547,2502,2503,2532,2536,2541,2553,2567,2573,2577,2582,2594,2608,2614,2619,2625],{"__ignoreMap":545},[550,2504,2505,2507,2509,2512,2514,2517,2519,2522,2524,2526,2528,2530],{"class":552,"line":553},[550,2506,557],{"class":556},[550,2508,561],{"class":560},[550,2510,2511],{"class":564}," sendToPostHogEvents",[550,2513,750],{"class":560},[550,2515,2516],{"class":564}," sendBatchToPostHogEvents",[550,2518,750],{"class":560},[550,2520,2521],{"class":564}," toPostHogEvent",[550,2523,568],{"class":560},[550,2525,571],{"class":556},[550,2527,574],{"class":560},[550,2529,578],{"class":577},[550,2531,581],{"class":560},[550,2533,2534],{"class":552,"line":665},[550,2535,688],{"emptyLinePlaceholder":687},[550,2537,2538],{"class":552,"line":684},[550,2539,2540],{"class":661},"\u002F\u002F Send a single custom event\n",[550,2542,2543,2545,2547,2549,2551],{"class":552,"line":691},[550,2544,1043],{"class":556},[550,2546,2511],{"class":700},[550,2548,2423],{"class":564},[550,2550,750],{"class":560},[550,2552,719],{"class":560},[550,2554,2555,2557,2559,2561,2563,2565],{"class":552,"line":722},[550,2556,2432],{"class":739},[550,2558,863],{"class":560},[550,2560,574],{"class":560},[550,2562,2439],{"class":577},[550,2564,742],{"class":560},[550,2566,873],{"class":560},[550,2568,2569,2571],{"class":552,"line":758},[550,2570,761],{"class":560},[550,2572,764],{"class":564},[550,2574,2575],{"class":552,"line":876},[550,2576,688],{"emptyLinePlaceholder":687},[550,2578,2579],{"class":552,"line":891},[550,2580,2581],{"class":661},"\u002F\u002F Send multiple custom events in one request\n",[550,2583,2584,2586,2588,2590,2592],{"class":552,"line":2461},[550,2585,1043],{"class":556},[550,2587,2516],{"class":700},[550,2589,2468],{"class":564},[550,2591,750],{"class":560},[550,2593,719],{"class":560},[550,2595,2596,2598,2600,2602,2604,2606],{"class":552,"line":2475},[550,2597,2432],{"class":739},[550,2599,863],{"class":560},[550,2601,574],{"class":560},[550,2603,2439],{"class":577},[550,2605,742],{"class":560},[550,2607,873],{"class":560},[550,2609,2610,2612],{"class":552,"line":2490},[550,2611,761],{"class":560},[550,2613,764],{"class":564},[550,2615,2617],{"class":552,"line":2616},12,[550,2618,688],{"emptyLinePlaceholder":687},[550,2620,2622],{"class":552,"line":2621},13,[550,2623,2624],{"class":661},"\u002F\u002F Convert event to PostHog format (for inspection)\n",[550,2626,2628,2630,2633,2635,2637,2639,2641,2643,2646,2648,2650,2652,2654,2656],{"class":552,"line":2627},14,[550,2629,1419],{"class":715},[550,2631,2632],{"class":564}," posthogEvent ",[550,2634,640],{"class":560},[550,2636,2521],{"class":700},[550,2638,2423],{"class":564},[550,2640,750],{"class":560},[550,2642,561],{"class":560},[550,2644,2645],{"class":739}," apiKey",[550,2647,863],{"class":560},[550,2649,574],{"class":560},[550,2651,2439],{"class":577},[550,2653,742],{"class":560},[550,2655,568],{"class":560},[550,2657,764],{"class":564},[532,2659,2661],{"id":2660},"next-steps","Next Steps",[1561,2663,2664,2670,2676,2682],{},[498,2665,2666,2669],{},[474,2667,2668],{"href":104},"Axiom Adapter"," - Send logs to Axiom",[498,2671,2672,2675],{},[474,2673,2674],{"href":109},"OTLP Adapter"," - Send logs via OpenTelemetry Protocol",[498,2677,2678,2681],{},[474,2679,2680],{"href":426},"Custom Adapters"," - Build your own adapter",[498,2683,2684,2686],{},[474,2685,452],{"href":453}," - Security and production tips",[2688,2689,2690],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":545,"searchDepth":665,"depth":665,"links":2692},[2693,2694,2699,2705,2706,2707,2708,2714,2719,2720],{"id":534,"depth":665,"text":20},{"id":584,"depth":665,"text":25,"children":2695},[2696,2697,2698],{"id":588,"depth":684,"text":589},{"id":623,"depth":684,"text":624},{"id":646,"depth":684,"text":647},{"id":1231,"depth":665,"text":439,"children":2700},[2701,2702,2703,2704],{"id":1267,"depth":684,"text":1268},{"id":1312,"depth":684,"text":1313},{"id":1404,"depth":684,"text":1405},{"id":1468,"depth":684,"text":1469},{"id":1548,"depth":665,"text":1549},{"id":1594,"depth":665,"text":1595},{"id":1672,"depth":665,"text":1673},{"id":1696,"depth":665,"text":1697,"children":2709},[2710,2711,2712,2713],{"id":1839,"depth":684,"text":1840},{"id":1947,"depth":684,"text":1948},{"id":2043,"depth":684,"text":2044},{"id":2079,"depth":684,"text":2080},{"id":2301,"depth":665,"text":2302,"children":2715},[2716,2717,2718],{"id":2305,"depth":684,"text":2306},{"id":2321,"depth":684,"text":2322},{"id":2348,"depth":684,"text":2349},{"id":2371,"depth":665,"text":2372},{"id":2660,"depth":665,"text":2661},"Send wide events to PostHog Logs via OTLP for structured log querying, debugging, and observability in your PostHog dashboard.","md",[2724,2730],{"label":2725,"icon":2726,"to":597,"target":2727,"color":2728,"variant":2729},"PostHog Dashboard","i-lucide-external-link","_blank","neutral","subtle",{"label":2668,"icon":106,"to":104,"color":2728,"variant":2729},{},{"title":113,"icon":116},{"title":466,"description":2721},"MCKIPqD__a6rk37RXP0xbQoO3CpsrYb03fk3XYGjs8E",[2736,2738],{"title":108,"path":109,"stem":110,"description":2737,"icon":111,"children":-1},"Send logs via OpenTelemetry Protocol (OTLP) to Grafana, Datadog, Honeycomb, and any compatible backend. Supports gRPC and HTTP transports.",{"title":118,"path":119,"stem":120,"description":2739,"icon":121,"children":-1},"Send structured logs to Sentry Logs for high-cardinality querying and debugging. Zero-config setup with environment variables.",1784213445114]