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