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