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