module.exports=[478500,(e,t,r)=>{t.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))},906678,(e,t,r)=>{t.exports=e.x("pino-51ec28aa490c8dec",()=>require("pino-51ec28aa490c8dec"))},106181,(e,t,r)=>{t.exports=e.x("@opentelemetry/core-c978df70c7cc7cd8",()=>require("@opentelemetry/core-c978df70c7cc7cd8"))},215740,(e,t,r)=>{t.exports=e.x("@opentelemetry/sdk-trace-base-c47379bd023b1b49",()=>require("@opentelemetry/sdk-trace-base-c47379bd023b1b49"))},69818,(e,t,r)=>{t.exports=e.x("@opentelemetry/auto-instrumentations-node-48cdd2cd691dbd67",()=>require("@opentelemetry/auto-instrumentations-node-48cdd2cd691dbd67"))},963923,(e,t,r)=>{t.exports=e.x("@opentelemetry/baggage-span-processor-bdc44bf8346aa8e2",()=>require("@opentelemetry/baggage-span-processor-bdc44bf8346aa8e2"))},370561,(e,t,r)=>{t.exports=e.x("@opentelemetry/context-async-hooks-e0c5e8efa7629ca7",()=>require("@opentelemetry/context-async-hooks-e0c5e8efa7629ca7"))},138993,(e,t,r)=>{t.exports=e.x("@opentelemetry/exporter-trace-otlp-http-3a16661bf82939ef",()=>require("@opentelemetry/exporter-trace-otlp-http-3a16661bf82939ef"))},10625,(e,t,r)=>{t.exports=e.x("@opentelemetry/resources-23b08fe5b2c9ef54",()=>require("@opentelemetry/resources-23b08fe5b2c9ef54"))},271482,(e,t,r)=>{t.exports=e.x("@opentelemetry/sdk-node-d0e2cc23597fdc2e",()=>require("@opentelemetry/sdk-node-d0e2cc23597fdc2e"))},738836,(e,t,r)=>{t.exports=e.x("@opentelemetry/semantic-conventions-0d2170ffbe8f3637",()=>require("@opentelemetry/semantic-conventions-0d2170ffbe8f3637"))},511451,e=>{"use strict";let t,r;var o,n=e.i(69818),a=e.i(963923),s=e.i(370561),c=e.i(106181),i=e.i(138993),p=e.i(10625),d=e.i(271482),l=e.i(215740),u=e.i(738836),m=e.i(478500),b=e.i(906678);let x=process.env.LOG_LEVEL||"info",y=(0,b.pino)({level:x,serializers:{obj:e=>({...e})},redact:["req.headers.authorization",'req.headers["x-inkeep-admin-authentication"]',"req.headers.cookie",'req.headers["x-forwarded-cookie"]'],...!1}),h=(o="instrumentation",t=new m.AsyncLocalStorage().getStore(),(r=t?.get("requestId")||void 0)?y.child({reqId:r,name:o}):y.child({name:o})),f=new i.OTLPTraceExporter,g=function(){try{return new l.BatchSpanProcessor(f,{scheduledDelayMillis:Number(process.env.OTEL_BSP_SCHEDULE_DELAY)||500,maxExportBatchSize:Number(process.env.OTEL_BSP_MAX_EXPORT_BATCH_SIZE)||64})}catch(e){return h.warn({error:e},"Failed to create batch processor, falling back to NoopSpanProcessor"),new l.NoopSpanProcessor}}(),q=(0,p.resourceFromAttributes)({[u.ATTR_SERVICE_NAME]:"inkeep-agents-manage-ui"}),w=[(0,n.getNodeAutoInstrumentations)({"@opentelemetry/instrumentation-http":{enabled:!0,requestHook:(e,t)=>{let r=t?.url??t?.path;if(!r)return;let o=new URL(r,"http://localhost");e.updateName(`${t?.method||"UNKNOWN"} ${o.pathname}`)}},"@opentelemetry/instrumentation-undici":{requestHook:e=>{let t=e.attributes?.["http.request.method"],r=e.attributes?.["server.address"],o=e.attributes?.["url.path"];t&&o&&e.updateName(r?`${t} ${r}${o}`:`${t} ${o}`)}},"@opentelemetry/instrumentation-fs":{enabled:!1},"@opentelemetry/instrumentation-dns":{enabled:!1},"@opentelemetry/instrumentation-net":{enabled:!1}})],E=[new a.BaggageSpanProcessor(a.ALLOW_ALL_BAGGAGE_KEYS),g],S=new s.AsyncLocalStorageContextManager,_=new c.CompositePropagator({propagators:[new c.W3CTraceContextPropagator,new c.W3CBaggagePropagator]}),k=new d.NodeSDK({resource:q,contextManager:S,textMapPropagator:_,spanProcessors:E,instrumentations:w});try{k.start(),process.on("SIGTERM",async()=>{await k.shutdown()})}catch(e){h.warn({error:e},"Failed to start OpenTelemetry SDK - tracing will be disabled")}e.s([],511451)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__067l_-i._.js.map