[{"data":1,"prerenderedAt":2129},["ShallowReactive",2],{"navigation_docs":3,"-adapters-cloud-datadog":427,"-adapters-cloud-datadog-surround":2124},[4,35,159,201,289,324,411],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-zap",{"title":25,"path":26,"stem":27,"icon":28},"Agent Skills","\u002Fgetting-started\u002Fagent-skills","1.getting-started\u002F4.agent-skills","i-lucide-sparkles",{"title":30,"path":31,"stem":32,"icon":33},"vs Other Loggers","\u002Fgetting-started\u002Fvs-other-loggers","1.getting-started\u002F5.vs-other-loggers","i-lucide-scale",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Logging","\u002Flogging","2.logging",[40,45,50,55,60,65,70,99,127],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Catalogs","\u002Flogging\u002Fcatalogs","2.logging\u002F4.catalogs","i-lucide-book-open",{"title":66,"path":67,"stem":68,"icon":69},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F5.client-logging","i-lucide-monitor",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F6.ai-sdk",[76,79,84,89,94],{"title":41,"path":77,"stem":78,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F6.ai-sdk\u002F01.overview",{"title":80,"path":81,"stem":82,"icon":83},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F6.ai-sdk\u002F02.usage","i-lucide-code",{"title":85,"path":86,"stem":87,"icon":88},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F6.ai-sdk\u002F03.options","i-lucide-sliders",{"title":90,"path":91,"stem":92,"icon":93},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F6.ai-sdk\u002F04.metadata","i-lucide-database",{"title":95,"path":96,"stem":97,"icon":98},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F6.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F7.better-auth",[105,108,113,118,122],{"title":41,"path":106,"stem":107,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F7.better-auth\u002F01.overview",{"title":109,"path":110,"stem":111,"icon":112},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F7.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":114,"path":115,"stem":116,"icon":117},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F7.better-auth\u002F03.middleware","i-lucide-shield",{"title":119,"path":120,"stem":121,"icon":69},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F7.better-auth\u002F04.client-sync",{"title":123,"path":124,"stem":125,"icon":126},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F7.better-auth\u002F05.performance","i-lucide-gauge",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F8.audit",[133,136,141,146,151,155],{"title":41,"path":134,"stem":135,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F8.audit\u002F01.overview",{"title":137,"path":138,"stem":139,"icon":140},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F8.audit\u002F02.schema","i-lucide-file-text",{"title":142,"path":143,"stem":144,"icon":145},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F8.audit\u002F03.recording","i-lucide-pen-line",{"title":147,"path":148,"stem":149,"icon":150},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F8.audit\u002F04.pipeline","i-lucide-link",{"title":152,"path":153,"stem":154,"icon":129},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F8.audit\u002F05.compliance",{"title":156,"path":157,"stem":158,"icon":64},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F8.audit\u002F06.recipes",{"title":160,"path":161,"stem":162,"children":163,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[164,169,174,179,184,188,191,196],{"title":165,"path":166,"stem":167,"icon":168},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":170,"path":171,"stem":172,"icon":173},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":175,"path":176,"stem":177,"icon":178},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":180,"path":181,"stem":182,"icon":183},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":185,"path":186,"stem":187,"icon":129},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":123,"path":189,"stem":190,"icon":126},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":192,"path":193,"stem":194,"icon":195},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":197,"path":198,"stem":199,"icon":200},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":202,"path":203,"stem":204,"children":205,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[206,210,215,220,225,230,235,240,245,250,255,260,265,270,274,279,284],{"title":41,"path":207,"stem":208,"icon":209},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":211,"path":212,"stem":213,"icon":214},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":216,"path":217,"stem":218,"icon":219},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":221,"path":222,"stem":223,"icon":224},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":226,"path":227,"stem":228,"icon":229},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":231,"path":232,"stem":233,"icon":234},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":236,"path":237,"stem":238,"icon":239},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":241,"path":242,"stem":243,"icon":244},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":246,"path":247,"stem":248,"icon":249},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":251,"path":252,"stem":253,"icon":254},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":256,"path":257,"stem":258,"icon":259},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":261,"path":262,"stem":263,"icon":264},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":266,"path":267,"stem":268,"icon":269},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":271,"path":272,"stem":273,"icon":183},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":275,"path":276,"stem":277,"icon":278},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":280,"path":281,"stem":282,"icon":283},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":285,"path":286,"stem":287,"icon":288},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":290,"path":291,"stem":292,"children":293,"page":34},"Build on top","\u002Fbuild-on-top","5.build-on-top",[294,297,302,307,311,315,320],{"title":41,"path":295,"stem":296,"icon":54},"\u002Fbuild-on-top\u002Foverview","5.build-on-top\u002F0.overview",{"title":298,"path":299,"stem":300,"icon":301},"Stream","\u002Fbuild-on-top\u002Fstream","5.build-on-top\u002F1.stream","i-lucide-radio-tower",{"title":303,"path":304,"stem":305,"icon":306},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F2.fs-reader","i-lucide-folder-search",{"title":156,"path":308,"stem":309,"icon":310},"\u002Fbuild-on-top\u002Fconsumer-recipes","5.build-on-top\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":312,"path":313,"stem":314,"icon":288},"Pipeline extension","\u002Fbuild-on-top\u002Fpipeline-extension","5.build-on-top\u002F4.pipeline-extension",{"title":316,"path":317,"stem":318,"icon":319},"Sinks","\u002Fbuild-on-top\u002Fsinks","5.build-on-top\u002F5.sinks","i-lucide-share-2",{"title":321,"path":322,"stem":323,"icon":288},"Framework integration","\u002Fbuild-on-top\u002Fframework-integration","5.build-on-top\u002F6.framework-integration",{"title":325,"path":326,"stem":327,"children":328,"page":34},"Adapters","\u002Fadapters","6.adapters",[329,332,372,387],{"title":41,"path":330,"stem":331,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":333,"path":334,"stem":335,"children":336,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[337,342,347,352,357,362,367],{"title":338,"path":339,"stem":340,"icon":341},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":343,"path":344,"stem":345,"icon":346},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":348,"path":349,"stem":350,"icon":351},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":353,"path":354,"stem":355,"icon":356},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":358,"path":359,"stem":360,"icon":361},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":363,"path":364,"stem":365,"icon":366},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":368,"path":369,"stem":370,"icon":371},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":373,"path":374,"stem":375,"children":376,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[377,382],{"title":378,"path":379,"stem":380,"icon":381},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":383,"path":384,"stem":385,"icon":386},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":388,"path":389,"stem":390,"children":391,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[392,397,402,406],{"title":393,"path":394,"stem":395,"icon":396},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline","i-lucide-workflow",{"title":398,"path":399,"stem":400,"icon":401},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":403,"path":404,"stem":405,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":407,"path":408,"stem":409,"icon":410},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":412,"path":413,"stem":414,"children":415,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[416,419,423],{"title":41,"path":417,"stem":418,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":420,"path":421,"stem":422,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":424,"path":425,"stem":426,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":428,"title":429,"body":430,"description":2111,"extension":2112,"links":2113,"meta":2120,"navigation":2121,"path":364,"seo":2122,"stem":365,"__hash__":2123},"docs\u002F6.adapters\u002F02.cloud\u002F06.datadog.md","Datadog Adapter",{"type":431,"value":432,"toc":2087},"minimark",[433,459,466,508,512,515,558,561,566,579,583,620,624,1199,1217,1220,1223,1254,1258,1344,1348,1431,1435,1508,1512,1634,1638,1641,1726,1767,1776,1780,1849,1853,1876,1880,1884,1893,1902,1906,1909,1913,1927,1931,2066,2070,2083],[434,435,436,442,443,448,449,453,454,458],"p",{},[437,438,363],"a",{"href":439,"rel":440},"https:\u002F\u002Fwww.datadoghq.com",[441],"nofollow"," is a monitoring and security platform. The evlog Datadog adapter sends your wide events to ",[437,444,447],{"href":445,"rel":446},"https:\u002F\u002Fdocs.datadoghq.com\u002Flogs\u002F",[441],"Datadog Logs"," using the ",[450,451,452],"strong",{},"HTTP Logs intake API (v2)"," with the ",[455,456,457],"code",{},"DD-API-KEY"," header.",[434,460,461,462,465],{},"For OpenTelemetry-based ingestion instead, see the ",[437,463,464],{"href":344},"OTLP adapter",".",[467,468,471,474,496],"prompt",{":actions":469,"description":470,"icon":366},"[\"copy\",\"cursor\",\"windsurf\"]","Add the Datadog drain adapter",[434,472,473],{},"Add the Datadog drain adapter to send evlog wide events to Datadog Logs.",[475,476,477,481,484,487,490,493],"ol",{},[478,479,480],"li",{},"Identify which framework I'm using and follow its evlog integration pattern",[478,482,483],{},"Install evlog if not already installed",[478,485,486],{},"Import createDatadogDrain from 'evlog\u002Fdatadog'",[478,488,489],{},"Wire createDatadogDrain() into my framework's drain configuration",[478,491,492],{},"Set DD_API_KEY (or DATADOG_API_KEY) and optionally DD_SITE in .env",[478,494,495],{},"Test by triggering a request and checking Log Explorer in Datadog",[434,497,498,499,503,504],{},"Adapter docs: ",[437,500,501],{"href":501,"rel":502},"https:\u002F\u002Fwww.evlog.dev\u002Fadapters\u002Fcloud\u002Fdatadog",[441],"\nFramework setup: ",[437,505,506],{"href":506,"rel":507},"https:\u002F\u002Fwww.evlog.dev\u002Fframeworks",[441],[509,510,15],"h2",{"id":511},"installation",[434,513,514],{},"The Datadog adapter comes bundled with evlog:",[516,517,523],"pre",{"className":518,"code":519,"filename":520,"language":521,"meta":522,"style":522},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createDatadogDrain } from 'evlog\u002Fdatadog'\n","src\u002Findex.ts","typescript","",[455,524,525],{"__ignoreMap":522},[526,527,530,534,538,542,545,548,551,555],"span",{"class":528,"line":529},"line",1,[526,531,533],{"class":532},"s7zQu","import",[526,535,537],{"class":536},"sMK4o"," {",[526,539,541],{"class":540},"sTEyZ"," createDatadogDrain",[526,543,544],{"class":536}," }",[526,546,547],{"class":532}," from",[526,549,550],{"class":536}," '",[526,552,554],{"class":553},"sfazB","evlog\u002Fdatadog",[526,556,557],{"class":536},"'\n",[509,559,20],{"id":560},"quick-start",[562,563,565],"h3",{"id":564},"_1-get-your-api-key","1. Get your API key",[475,567,568,576],{},[478,569,570,571],{},"Open ",[437,572,575],{"href":573,"rel":574},"https:\u002F\u002Fapp.datadoghq.com\u002Forganization-settings\u002Fapi-keys",[441],"Datadog Organization Settings → API Keys",[478,577,578],{},"Create or copy an API key with permission to submit logs",[562,580,582],{"id":581},"_2-set-environment-variables","2. Set environment variables",[516,584,589],{"className":585,"code":586,"filename":587,"language":588,"meta":522,"style":522},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","DD_API_KEY=your-api-key\n# Optional — defaults to datadoghq.com (US1)\nDD_SITE=datadoghq.eu\n",".env","bash",[455,590,591,602,609],{"__ignoreMap":522},[526,592,593,596,599],{"class":528,"line":529},[526,594,595],{"class":540},"DD_API_KEY",[526,597,598],{"class":536},"=",[526,600,601],{"class":553},"your-api-key\n",[526,603,605],{"class":528,"line":604},2,[526,606,608],{"class":607},"sHwdD","# Optional — defaults to datadoghq.com (US1)\n",[526,610,612,615,617],{"class":528,"line":611},3,[526,613,614],{"class":540},"DD_SITE",[526,616,598],{"class":536},[526,618,619],{"class":553},"datadoghq.eu\n",[562,621,623],{"id":622},"_3-wire-the-drain-to-your-framework","3. Wire the drain to your framework",[625,626,627,738,869,931,985,1044,1098,1151],"code-group",{},[516,628,631],{"className":518,"code":629,"filename":630,"language":521,"meta":522,"style":522},"\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\nimport { createDatadogDrain } from 'evlog\u002Fdatadog'\n\nexport default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('evlog:drain', createDatadogDrain())\n})\n","Nuxt \u002F Nitro",[455,632,633,638,656,662,694,729],{"__ignoreMap":522},[526,634,635],{"class":528,"line":529},[526,636,637],{"class":607},"\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\n",[526,639,640,642,644,646,648,650,652,654],{"class":528,"line":604},[526,641,533],{"class":532},[526,643,537],{"class":536},[526,645,541],{"class":540},[526,647,544],{"class":536},[526,649,547],{"class":532},[526,651,550],{"class":536},[526,653,554],{"class":553},[526,655,557],{"class":536},[526,657,658],{"class":528,"line":611},[526,659,661],{"emptyLinePlaceholder":660},true,"\n",[526,663,665,668,671,675,678,680,684,687,691],{"class":528,"line":664},4,[526,666,667],{"class":532},"export",[526,669,670],{"class":532}," default",[526,672,674],{"class":673},"s2Zo4"," defineNitroPlugin",[526,676,677],{"class":540},"(",[526,679,677],{"class":536},[526,681,683],{"class":682},"sHdIc","nitroApp",[526,685,686],{"class":536},")",[526,688,690],{"class":689},"spNyl"," =>",[526,692,693],{"class":536}," {\n",[526,695,697,700,702,705,707,710,713,716,719,721,724,726],{"class":528,"line":696},5,[526,698,699],{"class":540},"  nitroApp",[526,701,465],{"class":536},[526,703,704],{"class":540},"hooks",[526,706,465],{"class":536},[526,708,709],{"class":673},"hook",[526,711,677],{"class":712},"swJcz",[526,714,715],{"class":536},"'",[526,717,718],{"class":553},"evlog:drain",[526,720,715],{"class":536},[526,722,723],{"class":536},",",[526,725,541],{"class":673},[526,727,728],{"class":712},"())\n",[526,730,732,735],{"class":528,"line":731},6,[526,733,734],{"class":536},"}",[526,736,737],{"class":540},")\n",[516,739,741],{"className":518,"code":740,"filename":216,"language":521,"meta":522,"style":522},"\u002F\u002F lib\u002Fevlog.ts\nimport { createEvlog } from 'evlog\u002Fnext'\nimport { createDatadogDrain } from 'evlog\u002Fdatadog'\n\nexport const { withEvlog, useLogger, log, createError } = createEvlog({\n  service: 'my-app',\n  drain: createDatadogDrain(),\n})\n",[455,742,743,748,768,786,790,829,847,862],{"__ignoreMap":522},[526,744,745],{"class":528,"line":529},[526,746,747],{"class":607},"\u002F\u002F lib\u002Fevlog.ts\n",[526,749,750,752,754,757,759,761,763,766],{"class":528,"line":604},[526,751,533],{"class":532},[526,753,537],{"class":536},[526,755,756],{"class":540}," createEvlog",[526,758,544],{"class":536},[526,760,547],{"class":532},[526,762,550],{"class":536},[526,764,765],{"class":553},"evlog\u002Fnext",[526,767,557],{"class":536},[526,769,770,772,774,776,778,780,782,784],{"class":528,"line":611},[526,771,533],{"class":532},[526,773,537],{"class":536},[526,775,541],{"class":540},[526,777,544],{"class":536},[526,779,547],{"class":532},[526,781,550],{"class":536},[526,783,554],{"class":553},[526,785,557],{"class":536},[526,787,788],{"class":528,"line":664},[526,789,661],{"emptyLinePlaceholder":660},[526,791,792,794,797,799,802,804,807,809,812,814,817,819,822,824,826],{"class":528,"line":696},[526,793,667],{"class":532},[526,795,796],{"class":689}," const",[526,798,537],{"class":536},[526,800,801],{"class":540}," withEvlog",[526,803,723],{"class":536},[526,805,806],{"class":540}," useLogger",[526,808,723],{"class":536},[526,810,811],{"class":540}," log",[526,813,723],{"class":536},[526,815,816],{"class":540}," createError ",[526,818,734],{"class":536},[526,820,821],{"class":536}," =",[526,823,756],{"class":673},[526,825,677],{"class":540},[526,827,828],{"class":536},"{\n",[526,830,831,834,837,839,842,844],{"class":528,"line":731},[526,832,833],{"class":712},"  service",[526,835,836],{"class":536},":",[526,838,550],{"class":536},[526,840,841],{"class":553},"my-app",[526,843,715],{"class":536},[526,845,846],{"class":536},",\n",[526,848,850,853,855,857,860],{"class":528,"line":849},7,[526,851,852],{"class":712},"  drain",[526,854,836],{"class":536},[526,856,541],{"class":673},[526,858,859],{"class":540},"()",[526,861,846],{"class":536},[526,863,865,867],{"class":528,"line":864},8,[526,866,734],{"class":536},[526,868,737],{"class":540},[516,870,872],{"className":518,"code":871,"filename":246,"language":521,"meta":522,"style":522},"import { createDatadogDrain } from 'evlog\u002Fdatadog'\n\napp.use(evlog({ drain: createDatadogDrain() }))\n",[455,873,874,892,896],{"__ignoreMap":522},[526,875,876,878,880,882,884,886,888,890],{"class":528,"line":529},[526,877,533],{"class":532},[526,879,537],{"class":536},[526,881,541],{"class":540},[526,883,544],{"class":536},[526,885,547],{"class":532},[526,887,550],{"class":536},[526,889,554],{"class":553},[526,891,557],{"class":536},[526,893,894],{"class":528,"line":604},[526,895,661],{"emptyLinePlaceholder":660},[526,897,898,901,903,906,908,911,913,916,919,921,923,926,928],{"class":528,"line":611},[526,899,900],{"class":540},"app",[526,902,465],{"class":536},[526,904,905],{"class":673},"use",[526,907,677],{"class":540},[526,909,910],{"class":673},"evlog",[526,912,677],{"class":540},[526,914,915],{"class":536},"{",[526,917,918],{"class":712}," drain",[526,920,836],{"class":536},[526,922,541],{"class":673},[526,924,925],{"class":540},"() ",[526,927,734],{"class":536},[526,929,930],{"class":540},"))\n",[516,932,933],{"className":518,"code":871,"filename":241,"language":521,"meta":522,"style":522},[455,934,935,953,957],{"__ignoreMap":522},[526,936,937,939,941,943,945,947,949,951],{"class":528,"line":529},[526,938,533],{"class":532},[526,940,537],{"class":536},[526,942,541],{"class":540},[526,944,544],{"class":536},[526,946,547],{"class":532},[526,948,550],{"class":536},[526,950,554],{"class":553},[526,952,557],{"class":536},[526,954,955],{"class":528,"line":604},[526,956,661],{"emptyLinePlaceholder":660},[526,958,959,961,963,965,967,969,971,973,975,977,979,981,983],{"class":528,"line":611},[526,960,900],{"class":540},[526,962,465],{"class":536},[526,964,905],{"class":673},[526,966,677],{"class":540},[526,968,910],{"class":673},[526,970,677],{"class":540},[526,972,915],{"class":536},[526,974,918],{"class":712},[526,976,836],{"class":536},[526,978,541],{"class":673},[526,980,925],{"class":540},[526,982,734],{"class":536},[526,984,930],{"class":540},[516,986,988],{"className":518,"code":987,"filename":251,"language":521,"meta":522,"style":522},"import { createDatadogDrain } from 'evlog\u002Fdatadog'\n\nawait app.register(evlog, { drain: createDatadogDrain() })\n",[455,989,990,1008,1012],{"__ignoreMap":522},[526,991,992,994,996,998,1000,1002,1004,1006],{"class":528,"line":529},[526,993,533],{"class":532},[526,995,537],{"class":536},[526,997,541],{"class":540},[526,999,544],{"class":536},[526,1001,547],{"class":532},[526,1003,550],{"class":536},[526,1005,554],{"class":553},[526,1007,557],{"class":536},[526,1009,1010],{"class":528,"line":604},[526,1011,661],{"emptyLinePlaceholder":660},[526,1013,1014,1017,1020,1022,1025,1028,1030,1032,1034,1036,1038,1040,1042],{"class":528,"line":611},[526,1015,1016],{"class":532},"await",[526,1018,1019],{"class":540}," app",[526,1021,465],{"class":536},[526,1023,1024],{"class":673},"register",[526,1026,1027],{"class":540},"(evlog",[526,1029,723],{"class":536},[526,1031,537],{"class":536},[526,1033,918],{"class":712},[526,1035,836],{"class":536},[526,1037,541],{"class":673},[526,1039,925],{"class":540},[526,1041,734],{"class":536},[526,1043,737],{"class":540},[516,1045,1046],{"className":518,"code":871,"filename":256,"language":521,"meta":522,"style":522},[455,1047,1048,1066,1070],{"__ignoreMap":522},[526,1049,1050,1052,1054,1056,1058,1060,1062,1064],{"class":528,"line":529},[526,1051,533],{"class":532},[526,1053,537],{"class":536},[526,1055,541],{"class":540},[526,1057,544],{"class":536},[526,1059,547],{"class":532},[526,1061,550],{"class":536},[526,1063,554],{"class":553},[526,1065,557],{"class":536},[526,1067,1068],{"class":528,"line":604},[526,1069,661],{"emptyLinePlaceholder":660},[526,1071,1072,1074,1076,1078,1080,1082,1084,1086,1088,1090,1092,1094,1096],{"class":528,"line":611},[526,1073,900],{"class":540},[526,1075,465],{"class":536},[526,1077,905],{"class":673},[526,1079,677],{"class":540},[526,1081,910],{"class":673},[526,1083,677],{"class":540},[526,1085,915],{"class":536},[526,1087,918],{"class":712},[526,1089,836],{"class":536},[526,1091,541],{"class":673},[526,1093,925],{"class":540},[526,1095,734],{"class":536},[526,1097,930],{"class":540},[516,1099,1101],{"className":518,"code":1100,"filename":236,"language":521,"meta":522,"style":522},"import { createDatadogDrain } from 'evlog\u002Fdatadog'\n\nEvlogModule.forRoot({ drain: createDatadogDrain() })\n",[455,1102,1103,1121,1125],{"__ignoreMap":522},[526,1104,1105,1107,1109,1111,1113,1115,1117,1119],{"class":528,"line":529},[526,1106,533],{"class":532},[526,1108,537],{"class":536},[526,1110,541],{"class":540},[526,1112,544],{"class":536},[526,1114,547],{"class":532},[526,1116,550],{"class":536},[526,1118,554],{"class":553},[526,1120,557],{"class":536},[526,1122,1123],{"class":528,"line":604},[526,1124,661],{"emptyLinePlaceholder":660},[526,1126,1127,1130,1132,1135,1137,1139,1141,1143,1145,1147,1149],{"class":528,"line":611},[526,1128,1129],{"class":540},"EvlogModule",[526,1131,465],{"class":536},[526,1133,1134],{"class":673},"forRoot",[526,1136,677],{"class":540},[526,1138,915],{"class":536},[526,1140,918],{"class":712},[526,1142,836],{"class":536},[526,1144,541],{"class":673},[526,1146,925],{"class":540},[526,1148,734],{"class":536},[526,1150,737],{"class":540},[516,1152,1154],{"className":518,"code":1153,"filename":271,"language":521,"meta":522,"style":522},"import { createDatadogDrain } from 'evlog\u002Fdatadog'\n\ninitLogger({ drain: createDatadogDrain() })\n",[455,1155,1156,1174,1178],{"__ignoreMap":522},[526,1157,1158,1160,1162,1164,1166,1168,1170,1172],{"class":528,"line":529},[526,1159,533],{"class":532},[526,1161,537],{"class":536},[526,1163,541],{"class":540},[526,1165,544],{"class":536},[526,1167,547],{"class":532},[526,1169,550],{"class":536},[526,1171,554],{"class":553},[526,1173,557],{"class":536},[526,1175,1176],{"class":528,"line":604},[526,1177,661],{"emptyLinePlaceholder":660},[526,1179,1180,1183,1185,1187,1189,1191,1193,1195,1197],{"class":528,"line":611},[526,1181,1182],{"class":673},"initLogger",[526,1184,677],{"class":540},[526,1186,915],{"class":536},[526,1188,918],{"class":712},[526,1190,836],{"class":536},[526,1192,541],{"class":673},[526,1194,925],{"class":540},[526,1196,734],{"class":536},[526,1198,737],{"class":540},[434,1200,1201,1202,1205,1206,1209,1210,1212,1213,1216],{},"Wide events appear in ",[450,1203,1204],{},"Logs → Explorer",". The adapter sets ",[455,1207,1208],{},"ddsource"," to ",[455,1211,910],{}," and ",[455,1214,1215],{},"message"," to a JSON string of the full wide event for easy JSON parsing in pipelines.",[509,1218,170],{"id":1219},"configuration",[434,1221,1222],{},"The adapter reads configuration from multiple sources (highest priority first):",[475,1224,1225,1234,1248],{},[478,1226,1227,1230,1231],{},[450,1228,1229],{},"Overrides"," passed to ",[455,1232,1233],{},"createDatadogDrain()",[478,1235,1236,1239,1240,1243,1244,1247],{},[450,1237,1238],{},"Runtime config"," at ",[455,1241,1242],{},"runtimeConfig.datadog"," or ",[455,1245,1246],{},"runtimeConfig.evlog.datadog"," (Nuxt\u002FNitro)",[478,1249,1250,1253],{},[450,1251,1252],{},"Environment variables"," — see table below",[562,1255,1257],{"id":1256},"environment-variables","Environment Variables",[1259,1260,1261,1277],"table",{},[1262,1263,1264],"thead",{},[1265,1266,1267,1271,1274],"tr",{},[1268,1269,1270],"th",{},"Variable",[1268,1272,1273],{},"Nuxt alias",[1268,1275,1276],{},"Description",[1278,1279,1280,1298,1326],"tbody",{},[1265,1281,1282,1287,1292],{},[1283,1284,1285],"td",{},[455,1286,595],{},[1283,1288,1289],{},[455,1290,1291],{},"NUXT_DATADOG_API_KEY",[1283,1293,1294,1295],{},"Datadog API key (required). Also: ",[455,1296,1297],{},"DATADOG_API_KEY",[1265,1299,1300,1304,1309],{},[1283,1301,1302],{},[455,1303,614],{},[1283,1305,1306],{},[455,1307,1308],{},"NUXT_DATADOG_SITE",[1283,1310,1311,1312,1315,1316,1315,1319,1322,1323],{},"Site hostname (e.g. ",[455,1313,1314],{},"datadoghq.com",", ",[455,1317,1318],{},"datadoghq.eu",[455,1320,1321],{},"us3.datadoghq.com","). Also: ",[455,1324,1325],{},"DATADOG_SITE",[1265,1327,1328,1333,1338],{},[1283,1329,1330],{},[455,1331,1332],{},"DATADOG_LOGS_URL",[1283,1334,1335],{},[455,1336,1337],{},"NUXT_DATADOG_LOGS_URL",[1283,1339,1340,1341],{},"Full intake URL — overrides URL derived from ",[455,1342,1343],{},"site",[562,1345,1347],{"id":1346},"runtime-config-nuxt-only","Runtime Config (Nuxt only)",[516,1349,1352],{"className":518,"code":1350,"filename":1351,"language":521,"meta":522,"style":522},"export default defineNuxtConfig({\n  runtimeConfig: {\n    datadog: {\n      apiKey: '', \u002F\u002F Set via NUXT_DATADOG_API_KEY or DD_API_KEY\n      site: 'datadoghq.eu',\n    },\n  },\n})\n","nuxt.config.ts",[455,1353,1354,1367,1376,1385,1400,1415,1420,1425],{"__ignoreMap":522},[526,1355,1356,1358,1360,1363,1365],{"class":528,"line":529},[526,1357,667],{"class":532},[526,1359,670],{"class":532},[526,1361,1362],{"class":673}," defineNuxtConfig",[526,1364,677],{"class":540},[526,1366,828],{"class":536},[526,1368,1369,1372,1374],{"class":528,"line":604},[526,1370,1371],{"class":712},"  runtimeConfig",[526,1373,836],{"class":536},[526,1375,693],{"class":536},[526,1377,1378,1381,1383],{"class":528,"line":611},[526,1379,1380],{"class":712},"    datadog",[526,1382,836],{"class":536},[526,1384,693],{"class":536},[526,1386,1387,1390,1392,1395,1397],{"class":528,"line":664},[526,1388,1389],{"class":712},"      apiKey",[526,1391,836],{"class":536},[526,1393,1394],{"class":536}," ''",[526,1396,723],{"class":536},[526,1398,1399],{"class":607}," \u002F\u002F Set via NUXT_DATADOG_API_KEY or DD_API_KEY\n",[526,1401,1402,1405,1407,1409,1411,1413],{"class":528,"line":696},[526,1403,1404],{"class":712},"      site",[526,1406,836],{"class":536},[526,1408,550],{"class":536},[526,1410,1318],{"class":553},[526,1412,715],{"class":536},[526,1414,846],{"class":536},[526,1416,1417],{"class":528,"line":731},[526,1418,1419],{"class":536},"    },\n",[526,1421,1422],{"class":528,"line":849},[526,1423,1424],{"class":536},"  },\n",[526,1426,1427,1429],{"class":528,"line":864},[526,1428,734],{"class":536},[526,1430,737],{"class":540},[562,1432,1434],{"id":1433},"override-options","Override Options",[516,1436,1439],{"className":518,"code":1437,"filename":1438,"language":521,"meta":522,"style":522},"const drain = createDatadogDrain({\n  apiKey: '***',\n  site: 'us5.datadoghq.com',\n  timeout: 10000,\n})\n","server\u002Fplugins\u002Fevlog-drain.ts",[455,1440,1441,1457,1473,1489,1502],{"__ignoreMap":522},[526,1442,1443,1446,1449,1451,1453,1455],{"class":528,"line":529},[526,1444,1445],{"class":689},"const",[526,1447,1448],{"class":540}," drain ",[526,1450,598],{"class":536},[526,1452,541],{"class":673},[526,1454,677],{"class":540},[526,1456,828],{"class":536},[526,1458,1459,1462,1464,1466,1469,1471],{"class":528,"line":604},[526,1460,1461],{"class":712},"  apiKey",[526,1463,836],{"class":536},[526,1465,550],{"class":536},[526,1467,1468],{"class":553},"***",[526,1470,715],{"class":536},[526,1472,846],{"class":536},[526,1474,1475,1478,1480,1482,1485,1487],{"class":528,"line":611},[526,1476,1477],{"class":712},"  site",[526,1479,836],{"class":536},[526,1481,550],{"class":536},[526,1483,1484],{"class":553},"us5.datadoghq.com",[526,1486,715],{"class":536},[526,1488,846],{"class":536},[526,1490,1491,1494,1496,1500],{"class":528,"line":664},[526,1492,1493],{"class":712},"  timeout",[526,1495,836],{"class":536},[526,1497,1499],{"class":1498},"sbssI"," 10000",[526,1501,846],{"class":536},[526,1503,1504,1506],{"class":528,"line":696},[526,1505,734],{"class":536},[526,1507,737],{"class":540},[562,1509,1511],{"id":1510},"full-configuration-reference","Full Configuration Reference",[1259,1513,1514,1529],{},[1262,1515,1516],{},[1265,1517,1518,1521,1524,1527],{},[1268,1519,1520],{},"Option",[1268,1522,1523],{},"Type",[1268,1525,1526],{},"Default",[1268,1528,1276],{},[1278,1530,1531,1549,1569,1595,1615],{},[1265,1532,1533,1538,1543,1546],{},[1283,1534,1535],{},[455,1536,1537],{},"apiKey",[1283,1539,1540],{},[455,1541,1542],{},"string",[1283,1544,1545],{},"—",[1283,1547,1548],{},"Datadog API key (required)",[1265,1550,1551,1555,1559,1563],{},[1283,1552,1553],{},[455,1554,1343],{},[1283,1556,1557],{},[455,1558,1542],{},[1283,1560,1561],{},[455,1562,1314],{},[1283,1564,1565,1566],{},"Site for intake host ",[455,1567,1568],{},"http-intake.logs.${site}",[1265,1570,1571,1576,1580,1585],{},[1283,1572,1573],{},[455,1574,1575],{},"intakeUrl",[1283,1577,1578],{},[455,1579,1542],{},[1283,1581,1582,1583],{},"from ",[455,1584,1343],{},[1283,1586,1587,1588,1591,1592],{},"Full ",[455,1589,1590],{},"POST"," URL for ",[455,1593,1594],{},"\u002Fapi\u002Fv2\u002Flogs",[1265,1596,1597,1602,1607,1612],{},[1283,1598,1599],{},[455,1600,1601],{},"timeout",[1283,1603,1604],{},[455,1605,1606],{},"number",[1283,1608,1609],{},[455,1610,1611],{},"5000",[1283,1613,1614],{},"Request timeout (ms)",[1265,1616,1617,1622,1626,1631],{},[1283,1618,1619],{},[455,1620,1621],{},"retries",[1283,1623,1624],{},[455,1625,1606],{},[1283,1627,1628],{},[455,1629,1630],{},"2",[1283,1632,1633],{},"Retries on transient failures",[509,1635,1637],{"id":1636},"log-shape","Log shape",[434,1639,1640],{},"Each wide event becomes one Datadog log with:",[1642,1643,1644,1659,1684,1715],"ul",{},[478,1645,1646,1650,1651,1654,1655,1658],{},[450,1647,1648],{},[455,1649,1215],{}," — short one-line summary for the list view (e.g. ",[455,1652,1653],{},"ERROR GET \u002Fapi\u002Fcheckout (400)","), built with ",[455,1656,1657],{},"formatDatadogMessageLine",". Easier to scan than a full JSON blob in Live Tail.",[478,1660,1661,1665,1666,1669,1670,1675,1676,1681,1682,465],{},[450,1662,1663],{},[455,1664,910],{}," — full wide event as a ",[450,1667,1668],{},"JSON object"," (not a string). Numeric HTTP ",[450,1671,1672],{},[455,1673,1674],{},"status"," fields anywhere in the tree are renamed to ",[450,1677,1678],{},[455,1679,1680],{},"httpStatusCode"," so they never clash with Datadog’s reserved severity ",[455,1683,1674],{},[478,1685,1686,1315,1691,1695,1696,1700,1701,1315,1703,1700,1708,1711,1712],{},[450,1687,1688],{},[455,1689,1690],{},"service",[450,1692,1693],{},[455,1694,1674],{}," (Datadog severity — drives Live Tail color), ",[450,1697,1698],{},[455,1699,1208],{},": ",[455,1702,910],{},[450,1704,1705],{},[455,1706,1707],{},"ddtags",[455,1709,1710],{},"env:…"," and optional ",[455,1713,1714],{},"version:…",[478,1716,1717,1722,1723],{},[450,1718,1719],{},[455,1720,1721],{},"timestamp",": Unix milliseconds from ",[455,1724,1725],{},"WideEvent.timestamp",[434,1727,1728,1733,1734,1739,1740,1744,1745,1748,1749,1751,1752,1755,1756,1761,1762,465],{},[450,1729,1730,1731,686],{},"Severity (",[455,1732,1674],{}," at intake root is computed by the adapter from the wide event’s ",[450,1735,1736],{},[455,1737,1738],{},"level"," and HTTP ",[450,1741,1742],{},[455,1743,1674],{}," (",[455,1746,1747],{},"resolveDatadogLogStatus"," in ",[455,1750,554],{},"). Business-only fields on ",[450,1753,1754],{},"HTTP 200"," stay ",[450,1757,1758],{},[455,1759,1760],{},"info"," unless you call ",[450,1763,1764],{},[455,1765,1766],{},"log.error()",[434,1768,1769,1770,1773,1774,465],{},"For advanced use, ",[455,1771,1772],{},"sanitizeWideEventForDatadog(event)"," returns only the sanitized object you would store under ",[455,1775,910],{},[509,1777,1779],{"id":1778},"querying-in-datadog","Querying in Datadog",[1642,1781,1782,1796,1819,1829],{},[478,1783,1784,1700,1787,1315,1790,1315,1793],{},[450,1785,1786],{},"Log Explorer",[455,1788,1789],{},"source:evlog",[455,1791,1792],{},"service:your-app",[455,1794,1795],{},"status:error",[478,1797,1798,1801,1802,1315,1805,1315,1808,1811,1812,1816,1817],{},[450,1799,1800],{},"Facets",": prefer ",[455,1803,1804],{},"@evlog.path",[455,1806,1807],{},"@evlog.requestId",[455,1809,1810],{},"@evlog.level",", etc. — core fields are under ",[450,1813,1814],{},[455,1815,910],{},", not a JSON string in ",[455,1818,1215],{},[478,1820,1821,1824,1825,1828],{},[450,1822,1823],{},"Metrics",": log-based metrics on ",[455,1826,1827],{},"@evlog.*"," attributes",[478,1830,1831,1834,1835,1837,1838,1840,1841,1845,1846,1848],{},[450,1832,1833],{},"Pipelines",": if you previously parsed a full JSON ",[450,1836,1542],{}," inside ",[455,1839,1215],{},", move those facets to ",[450,1842,1843],{},[455,1844,1827],{},". The ",[455,1847,1215],{}," field is now a short summary line only.",[509,1850,1852],{"id":1851},"simple-logs-vs-wide-events","Simple logs vs wide events",[434,1854,1855,1856,1861,1862,1865,1866,1871,1872,465],{},"Plain-text lines in Live Tail (e.g. “Form field is empty”) usually come from ",[450,1857,1858],{},[455,1859,1860],{},"log.info('tag', 'msg')"," or similar, not from the ",[450,1863,1864],{},"wide event"," sent on ",[450,1867,1868],{},[455,1869,1870],{},"emit()",". Those lines go to the console (and any Agent-based log stream), while the Datadog drain sends one structured log per wide event under ",[450,1873,1874],{},[455,1875,1789],{},[509,1877,1879],{"id":1878},"troubleshooting","Troubleshooting",[562,1881,1883],{"id":1882},"missing-api-key","Missing API key",[516,1885,1891],{"className":1886,"code":1888,"filename":1889,"language":1890,"meta":522},[1887],"language-text","[evlog\u002Fdatadog] Missing API key. Set NUXT_DATADOG_API_KEY, DATADOG_API_KEY, or DD_API_KEY...\n","Console","text",[455,1892,1888],{"__ignoreMap":522},[434,1894,1895,1896,1898,1899,1901],{},"Set ",[455,1897,595],{}," (or unprefixed ",[455,1900,1297],{},") and restart the process.",[562,1903,1905],{"id":1904},"_403-forbidden","403 Forbidden",[434,1907,1908],{},"The API key may lack log ingestion permission or belong to the wrong organization. Verify the key in Datadog and try a new key.",[562,1910,1912],{"id":1911},"wrong-region-site","Wrong region \u002F site",[434,1914,1915,1916,1918,1919,1921,1922,1924,1925,465],{},"If logs never appear, confirm ",[455,1917,614],{}," matches your Datadog account (e.g. EU: ",[455,1920,1318],{},"). For a custom intake URL, set ",[455,1923,1332],{}," \u002F ",[455,1926,1337],{},[509,1928,1930],{"id":1929},"direct-api-usage","Direct API usage",[516,1932,1935],{"className":518,"code":1933,"filename":1934,"language":521,"meta":522,"style":522},"import { sendToDatadog, sendBatchToDatadog } from 'evlog\u002Fdatadog'\n\nawait sendToDatadog(event, {\n  apiKey: process.env.DD_API_KEY!,\n  site: process.env.DD_SITE,\n})\n\nawait sendBatchToDatadog(events, {\n  apiKey: process.env.DD_API_KEY!,\n})\n","server\u002Futils\u002Fdatadog.ts",[455,1936,1937,1961,1965,1978,1999,2017,2023,2027,2040,2059],{"__ignoreMap":522},[526,1938,1939,1941,1943,1946,1948,1951,1953,1955,1957,1959],{"class":528,"line":529},[526,1940,533],{"class":532},[526,1942,537],{"class":536},[526,1944,1945],{"class":540}," sendToDatadog",[526,1947,723],{"class":536},[526,1949,1950],{"class":540}," sendBatchToDatadog",[526,1952,544],{"class":536},[526,1954,547],{"class":532},[526,1956,550],{"class":536},[526,1958,554],{"class":553},[526,1960,557],{"class":536},[526,1962,1963],{"class":528,"line":604},[526,1964,661],{"emptyLinePlaceholder":660},[526,1966,1967,1969,1971,1974,1976],{"class":528,"line":611},[526,1968,1016],{"class":532},[526,1970,1945],{"class":673},[526,1972,1973],{"class":540},"(event",[526,1975,723],{"class":536},[526,1977,693],{"class":536},[526,1979,1980,1982,1984,1987,1989,1992,1994,1996],{"class":528,"line":664},[526,1981,1461],{"class":712},[526,1983,836],{"class":536},[526,1985,1986],{"class":540}," process",[526,1988,465],{"class":536},[526,1990,1991],{"class":540},"env",[526,1993,465],{"class":536},[526,1995,595],{"class":540},[526,1997,1998],{"class":536},"!,\n",[526,2000,2001,2003,2005,2007,2009,2011,2013,2015],{"class":528,"line":696},[526,2002,1477],{"class":712},[526,2004,836],{"class":536},[526,2006,1986],{"class":540},[526,2008,465],{"class":536},[526,2010,1991],{"class":540},[526,2012,465],{"class":536},[526,2014,614],{"class":540},[526,2016,846],{"class":536},[526,2018,2019,2021],{"class":528,"line":731},[526,2020,734],{"class":536},[526,2022,737],{"class":540},[526,2024,2025],{"class":528,"line":849},[526,2026,661],{"emptyLinePlaceholder":660},[526,2028,2029,2031,2033,2036,2038],{"class":528,"line":864},[526,2030,1016],{"class":532},[526,2032,1950],{"class":673},[526,2034,2035],{"class":540},"(events",[526,2037,723],{"class":536},[526,2039,693],{"class":536},[526,2041,2043,2045,2047,2049,2051,2053,2055,2057],{"class":528,"line":2042},9,[526,2044,1461],{"class":712},[526,2046,836],{"class":536},[526,2048,1986],{"class":540},[526,2050,465],{"class":536},[526,2052,1991],{"class":540},[526,2054,465],{"class":536},[526,2056,595],{"class":540},[526,2058,1998],{"class":536},[526,2060,2062,2064],{"class":528,"line":2061},10,[526,2063,734],{"class":536},[526,2065,737],{"class":540},[509,2067,2069],{"id":2068},"next-steps","Next Steps",[1642,2071,2072,2078],{},[478,2073,2074,2077],{},[437,2075,2076],{"href":344},"OTLP Adapter"," — Send logs via OpenTelemetry (works with Datadog Agent \u002F OTLP endpoint)",[478,2079,2080,2082],{},[437,2081,403],{"href":404}," — Build your own destination",[2084,2085,2086],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":522,"searchDepth":604,"depth":604,"links":2088},[2089,2090,2095,2101,2102,2103,2104,2109,2110],{"id":511,"depth":604,"text":15},{"id":560,"depth":604,"text":20,"children":2091},[2092,2093,2094],{"id":564,"depth":611,"text":565},{"id":581,"depth":611,"text":582},{"id":622,"depth":611,"text":623},{"id":1219,"depth":604,"text":170,"children":2096},[2097,2098,2099,2100],{"id":1256,"depth":611,"text":1257},{"id":1346,"depth":611,"text":1347},{"id":1433,"depth":611,"text":1434},{"id":1510,"depth":611,"text":1511},{"id":1636,"depth":604,"text":1637},{"id":1778,"depth":604,"text":1779},{"id":1851,"depth":604,"text":1852},{"id":1878,"depth":604,"text":1879,"children":2105},[2106,2107,2108],{"id":1882,"depth":611,"text":1883},{"id":1904,"depth":611,"text":1905},{"id":1911,"depth":611,"text":1912},{"id":1929,"depth":604,"text":1930},{"id":2068,"depth":604,"text":2069},"Send wide events to Datadog Logs via the native HTTP intake API. Supports all Datadog sites and DD_* environment variables.","md",[2114,2119],{"label":447,"icon":2115,"to":445,"target":2116,"color":2117,"variant":2118},"i-lucide-external-link","_blank","neutral","subtle",{"label":2076,"icon":346,"to":344,"color":2117,"variant":2118},{},{"title":363,"icon":366},{"title":429,"description":2111},"4HKZVUn-qpHnyH8ictGn5XuXAbi8nyBZQMcTiawBTPw",[2125,2127],{"title":358,"path":359,"stem":360,"description":2126,"icon":361,"children":-1},"Send wide events to Better Stack (formerly Logtail) for log management, alerting, and dashboards. Zero-config setup with environment variables.",{"title":368,"path":369,"stem":370,"description":2128,"icon":371,"children":-1},"Send wide events to HyperDX via OTLP\u002FHTTP using HyperDX’s documented OpenTelemetry endpoint and authorization header. Zero-config setup with environment variables.",1778349075012]