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