(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[812],{45948:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return s(74039)}])},12235:(e,l,s)=>{"use strict";s.d(l,{A:()=>m});var t=s(74848),a=s(32485),n=s.n(a),i=s(47967),r=s(65243),c=s(16939),h=s(91106),o=s.n(h),d=s(42302),x=s(30772);function m(e){let{className:l,iconClassName:s,tags:a,asLinks:h=!1}=e;return a=a.filter(e=>{let{slug:l}=e;return(0,c.Yr)().some(e=>e.slug===l)}),(0,t.jsx)("div",{className:l,children:a.map(e=>{let{slug:l}=e,{title:a}=(0,c.xQ)(l),m=(0,t.jsxs)("span",{className:n()("inline-flex items-center gap-1"),children:[(0,t.jsx)(i.A,{className:(0,r.QP)("h-4 w-4 text-zinc-400",s)}),a]},(0,d.A)()),u=(0,x.w_)(l);return h?(0,t.jsx)(o(),{href:u,className:"flex text-white/75 hover:text-white",children:m},(0,d.A)()):m})})}},6419:(e,l,s)=>{"use strict";s.d(l,{A:()=>h});var t=s(74848),a=s(29965),n=s.n(a),i=s(32485),r=s.n(i),c=s(8499);function h(e){let{src:l,alt:s,fill:a=!1,width:i,height:h,className:o,priority:d=!1}=e,x=r()("relative w-full rounded-lg overflow-hidden",{"aspect-video":a}),m=r()("object-cover w-full",{"absolute h-full w-full":a},o);return(0,t.jsxs)("div",{className:x,children:[(0,t.jsx)(n(),{alt:s,className:m,height:h,src:l.length>0?(0,c.h)(l):(0,c.h)("/assets/observability-labs-thumbnail.png"),width:i,fill:a,priority:d}),(0,t.jsx)("div",{className:"absolute border border-white/50 inset-0 mix-blend-overlay rounded-lg z-10"})]})}},74039:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSG:()=>Y,default:()=>K});var t=s(74848),a=s(88796),n=s(49788),i=s(96540),r=s(32485),c=s.n(r),h=s(30772),o=s(23165),d=s(91106),x=s.n(d),m=s(34760),u=s(6419),j=s(54784),g=s(25332),v=s(29406),C=s(50695),p=s(13308),f=s(94828);function w(e){let{children:l,language:s,isInline:a=!1}=e,[n,r]=(0,i.useState)(!1);return a?(0,t.jsx)("div",{className:"!font-mono !text-base !bg-zinc-900 inline-code",children:l}):(0,t.jsxs)("div",{className:"relative pr-12 bg-zinc-900",children:[(0,t.jsxs)("div",{className:"absolute flex items-center text-sm top-0 right-0 p-2",children:[n&&(0,t.jsx)("span",{className:"bg-zinc-900 p-1 text-gray-300 font-semibold",children:"Copied"}),(0,t.jsx)("button",{onClick:function(){l&&(navigator.clipboard.writeText(l.toString()),r(!0),setTimeout(()=>{r(!1)},2e3))},className:"flex items-center p-2 bg-gray-800 rounded-md text-gray-300 hover:bg-gray-700",children:n?(0,t.jsx)(p.A,{className:"h-5 w-5"}):(0,t.jsx)(f.A,{className:"h-5 w-5"})})]}),(0,t.jsx)(v.A,{language:s,style:C.hc,className:"!font-mono !text-base !bg-zinc-900",children:l})]})}function b(e){let{id:l,children:s,...a}=e;return(0,t.jsxs)(m.A,{...a,className:"relative",children:[(0,t.jsx)("span",{id:l,className:"absolute -top-32"}),s]})}var N=s(29965),_=s.n(N),y=s(8499),z=s(78842),k=s(9341),A=s.n(k);function I(e){let{src:l,alt:s,width:a,height:n}=e,[r,h]=(0,i.useState)(!1),[o,d]=(0,i.useState)(!1),x=e=>{let{visible:l}=e,s=c()(A().iconContainer,{[A()["iconContainer--visible"]]:l});return(0,t.jsx)("span",{className:s,"aria-hidden":"true",children:(0,t.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",className:A().icon,children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:r?"M9 7V3h1v3h3v1H9zM7 7H3V6h3V3h1v4zm2 2h4v1h-3v3H9V9zM7 9v4H6v-3H3V9h4zM0 1.994C0 .893.895 0 1.994 0h12.012C15.107 0 16 .895 16 1.994v12.012A1.995 1.995 0 0 1 14.006 16H1.994A1.995 1.995 0 0 1 0 14.006V1.994zm1 0v12.012c0 .548.446.994.994.994h12.012a.995.995 0 0 0 .994-.994V1.994A.995.995 0 0 0 14.006 1H1.994A.995.995 0 0 0 1 1.994z":"M13 3v4h-1V4H9V3h4ZM3 3h4v1H4v3H3V3Zm10 10H9v-1h3V9h1v4ZM3 13V9h1v3h3v1H3ZM0 1.994C0 .893.895 0 1.994 0h12.012C15.107 0 16 .895 16 1.994v12.012A1.995 1.995 0 0 1 14.006 16H1.994A1.995 1.995 0 0 1 0 14.006V1.994Zm1 0v12.012c0 .548.446.994.994.994h12.012a.995.995 0 0 0 .994-.994V1.994A.995.995 0 0 0 14.006 1H1.994A.995.995 0 0 0 1 1.994Z"})})})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>h(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),className:A().imageContainer,title:"Click to enlarge",children:[(0,t.jsx)(_(),{alt:s,height:n,src:(0,y.h)(l),width:a,quality:90,className:A().image}),(0,t.jsx)(x,{visible:o})]}),(0,t.jsxs)(z.lG,{open:r,onClose:()=>h(!1),children:[(0,t.jsx)("div",{className:A().overlay}),(0,t.jsxs)(z.lG.Panel,{className:A().panel,children:[(0,t.jsx)("button",{onClick:()=>h(!1),className:A().closePanel,title:"Close"}),(0,t.jsxs)("div",{className:A().imageContainer,children:[(0,t.jsx)(_(),{alt:s,height:n,src:(0,y.h)(l),width:a,quality:90,className:A().fullscreenImage}),(0,t.jsx)(x,{visible:!0})]})]})]})]})}let M={a:e=>{let{href:l,children:s}=e;return(0,t.jsx)(x(),{href:l,children:s})},img:e=>{let{src:l,alt:s,width:a,height:n}=e;return l?(0,t.jsx)(I,{src:l,alt:s,width:a,height:n}):null},h1:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h1",...s,children:l})},h2:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h2",...s,children:l})},h3:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h3",...s,children:l})},h4:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h4",...s,children:l})},h5:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h5",...s,children:l})},h6:e=>{let{children:l,...s}=e;return(0,t.jsx)(b,{size:"h6",...s,children:l})},Callout:function(e){let{title:l,type:s,children:a}=e;return(0,t.jsxs)("div",{className:"callout ".concat(s),children:[(0,t.jsx)("h3",{children:l}),a]})},Video:function(e){let{vidyardUuid:l,dataChapter:s,loop:a,hideControls:n,muted:i,alt:r}=e;return(0,t.jsx)("div",{className:"overflow-hidden rounded-lg shadow-lg",children:(0,t.jsx)("img",{className:"vidyard-player-embed",src:"https://play.vidyard.com/".concat(l,".jpg"),"data-uuid":l,"data-v":"4","data-chapter":s||"1","data-type":"inline","data-autoplay":a?"1":"0","data-hidden_controls":n||a?"1":"0","data-muted":i||a?"1":"0","data-loop":a?"1":"0",alt:r||"Video Thumbnail"})})},pre:e=>{let{children:l}=e;if(!i.isValidElement(l)||"string"==typeof l.type||"code"!==l.type.name)return(0,t.jsx)("div",{className:"not-prose",children:l});{let{props:{className:e,children:s=""}}=l,a=(null==e?void 0:e.replace("language-",""))||"plaintext";return(0,t.jsx)(w,{isInline:!1,language:a,children:s})}},code:e=>{let{children:l,className:s}=e,a=(null==s?void 0:s.replace("language-",""))||"plaintext";return(0,t.jsx)(w,{isInline:!0,language:a,children:l})}};function V(e){let{markdown:l,className:s}=e,a=(0,g.W)(l);return(0,t.jsx)("div",{className:s,children:(0,t.jsx)(a,{components:M})})}let H=e=>{let{className:l}=e;return(0,t.jsx)("svg",{stroke:"currentColor",fill:"currentColor",viewBox:"0 0 512 512",className:c()("w-4 h-4",l),xmlns:"https://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"})})},S=e=>{let{className:l}=e;return(0,t.jsx)("svg",{className:c()("w-4 h-4",l),viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"M22.5 12c0-5.799-4.701-10.5-10.5-10.5S1.5 6.201 1.5 12c0 5.301 3.901 9.699 9 10.401V14.4h-2.7v-2.7h2.7v-2.1c0-2.7 1.8-4.2 4.2-4.2 1.2 0 2.1.1 2.4.2v2.4h-1.5c-1.2 0-1.5.6-1.5 1.5v1.8h3l-.3 2.7h-2.7V22C18.599 21.3 22.5 17.301 22.5 12z"})})},L=e=>{let{className:l}=e;return(0,t.jsx)("svg",{className:c()("w-4 h-4",l),viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})},Z=e=>{let{className:l}=e;return(0,t.jsx)("svg",{className:c()("w-4 h-4",l),viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM19.6879 11.0584C19.8819 11.3352 19.9916 11.6622 20.004 12C20.0091 12.3306 19.9205 12.656 19.7485 12.9384C19.5765 13.2208 19.3281 13.4488 19.032 13.596C19.0455 13.7717 19.0455 13.9483 19.032 14.124C19.032 16.812 15.9 18.996 12.036 18.996C8.172 18.996 5.04 16.812 5.04 14.124C5.02649 13.9483 5.02649 13.7717 5.04 13.596C4.80919 13.49 4.6042 13.335 4.43923 13.1419C4.27427 12.9487 4.15327 12.722 4.08462 12.4775C4.01598 12.2329 4.00133 11.9764 4.04169 11.7256C4.08205 11.4748 4.17646 11.2358 4.31837 11.0251C4.46028 10.8145 4.6463 10.6372 4.86354 10.5056C5.08078 10.3739 5.32404 10.2911 5.57646 10.2629C5.82889 10.2346 6.08444 10.2616 6.32541 10.3419C6.56638 10.4222 6.78701 10.5539 6.972 10.728C8.35473 9.79023 9.98146 9.27718 11.652 9.252L12.54 5.088C12.55 5.03979 12.5694 4.99405 12.5972 4.95341C12.625 4.91277 12.6605 4.87805 12.7018 4.85127C12.7431 4.82448 12.7894 4.80615 12.8378 4.79735C12.8862 4.78855 12.9359 4.78945 12.984 4.8L15.924 5.388C16.0676 5.14132 16.2944 4.9539 16.5637 4.85937C16.833 4.76484 17.1272 4.7694 17.3934 4.87222C17.6597 4.97505 17.8806 5.1694 18.0164 5.42041C18.1523 5.67141 18.1942 5.96262 18.1348 6.24177C18.0753 6.52092 17.9182 6.76972 17.6918 6.94352C17.4654 7.11732 17.1845 7.20473 16.8995 7.19006C16.6144 7.1754 16.3439 7.05962 16.1366 6.8635C15.9292 6.66738 15.7985 6.40378 15.768 6.12L13.2 5.58L12.42 9.324C14.0702 9.3594 15.6749 9.87206 17.04 10.8C17.2839 10.566 17.5902 10.4074 17.9221 10.3436C18.254 10.2797 18.5973 10.3132 18.9106 10.4401C19.2239 10.5669 19.4939 10.7817 19.6879 11.0584ZM8.20624 12.5333C8.07438 12.7307 8.004 12.9627 8.004 13.2C8.004 13.5183 8.13043 13.8235 8.35547 14.0485C8.58051 14.2736 8.88574 14.4 9.204 14.4C9.44134 14.4 9.67335 14.3296 9.87068 14.1978C10.068 14.0659 10.2218 13.8785 10.3127 13.6592C10.4035 13.4399 10.4272 13.1987 10.3809 12.9659C10.3346 12.7331 10.2204 12.5193 10.0525 12.3515C9.8847 12.1836 9.67089 12.0694 9.43811 12.0231C9.20533 11.9768 8.96405 12.0005 8.74478 12.0913C8.52551 12.1822 8.33809 12.336 8.20624 12.5333ZM12.012 17.424C13.0771 17.4681 14.1246 17.1416 14.976 16.5V16.548C15.0075 16.5173 15.0327 16.4806 15.05 16.4402C15.0674 16.3997 15.0766 16.3563 15.0772 16.3122C15.0777 16.2682 15.0696 16.2245 15.0533 16.1837C15.0369 16.1428 15.0127 16.1055 14.982 16.074C14.9513 16.0425 14.9146 16.0173 14.8742 16C14.8337 15.9826 14.7903 15.9734 14.7462 15.9728C14.7022 15.9723 14.6585 15.9804 14.6177 15.9967C14.5768 16.0131 14.5395 16.0373 14.508 16.068C13.7797 16.5904 12.895 16.8487 12 16.8C11.1061 16.8399 10.2255 16.5732 9.504 16.044C9.44182 15.993 9.36289 15.9669 9.28256 15.9708C9.20222 15.9748 9.12622 16.0085 9.06935 16.0653C9.01247 16.1222 8.97879 16.1982 8.97484 16.2786C8.97089 16.3589 8.99697 16.4378 9.048 16.5C9.89937 17.1416 10.9469 17.4681 12.012 17.424ZM14.0933 14.2458C14.2907 14.3776 14.5227 14.448 14.76 14.448L14.748 14.496C14.9107 14.4978 15.0721 14.4664 15.2223 14.4038C15.3725 14.3413 15.5084 14.2488 15.6218 14.1321C15.7352 14.0154 15.8236 13.8768 15.8818 13.7248C15.9399 13.5728 15.9665 13.4106 15.96 13.248C15.96 13.0107 15.8896 12.7787 15.7578 12.5813C15.6259 12.384 15.4385 12.2302 15.2192 12.1393C14.9999 12.0485 14.7587 12.0248 14.5259 12.0711C14.2931 12.1174 14.0793 12.2316 13.9115 12.3995C13.7436 12.5673 13.6294 12.7811 13.5831 13.0139C13.5368 13.2467 13.5605 13.4879 13.6513 13.7072C13.7422 13.9265 13.896 14.1139 14.0933 14.2458Z",fill:"currentColor"})})};function F(e){let{title:l,url:s}=e,a="".concat("https://www.elastic.co/observability-labs").concat(s),n=[{label:"X",icon:(0,t.jsx)(H,{}),url:"https://twitter.com/intent/tweet?text=".concat(l,"&url=").concat(a)},{label:"Facebook",icon:(0,t.jsx)(S,{}),url:"https://www.facebook.com/sharer/sharer.php?u=".concat(a)},{label:"LinkedIn",icon:(0,t.jsx)(L,{}),url:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(a,"&title=").concat(l)},{label:"Reddit",icon:(0,t.jsx)(Z,{}),url:"https://reddit.com/submit?url=".concat(a,"&title=").concat(l)}];return(0,t.jsxs)(j.A,{className:"my-5 md:my-10 max-w-3xl mx-auto flex flex-col items-center shadow-2xl",size:"small",children:[(0,t.jsx)(m.A,{size:"h4",children:"Share this article"}),(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center mt-4 space-x-4",children:n.map(e=>{let{label:l,icon:s,url:a}=e;return(0,t.jsxs)("a",{className:"flex items-center space-x-2 button",href:a,target:"_blank",rel:"noopener noreferrer","aria-label":"Share this article on ".concat(l),title:"Share this article on ".concat(l),children:[s,(0,t.jsx)("span",{children:l})]},l)})})]})}function E(e){let{children:l}=e;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,h.Ef)(l)}})}var P=s(76424);function T(e){let{children:l,className:s}=e,a=c()("flex flex-col space-y-2",s);return(0,t.jsx)("ul",{className:a,children:l})}var W=s(90435);function B(e){let{label:l,href:s,level:a,className:n,active:i}=e,r=c()("flex items-center space-x-1 hover:text-white",{"text-white font-medium bg-black/20":i,"ml-4":1===a,"ml-8":2===a,"ml-12":3===a,"ml-16":a>=4},n);return(0,t.jsxs)(x(),{href:s,className:r,children:[i&&(0,t.jsx)(W.A,{className:"w-3 h-3 opacity-75"}),(0,t.jsx)(E,{children:l})]})}var R=s(16106),X=s(3762);function D(e){let{headings:l}=e,[s,a]=(0,i.useState)(10),n=()=>{se.level));return 0===l.length?null:(0,t.jsxs)("div",{className:"toc",children:[(0,t.jsx)(m.A,{size:"h4",className:"mb-3",children:"Jump to section"}),(0,t.jsx)(T,{children:l.slice(0,s).map(e=>{let{title:l,href:s,level:a}=e;return(0,t.jsx)("li",{children:(0,t.jsx)(B,{href:s,label:l,level:a-r})},s)})}),l.length>10&&(0,t.jsx)("button",{className:"border-t border-white/20 w-full mt-3 py-2 flex items-center space-x-1 text-xs font-medium uppercase tracking-wide hover:text-white",onClick:()=>n(),children:s{let{title:s,url:n}=e;return(0,t.jsx)("li",{children:(0,t.jsx)(B,{href:n,label:s,active:a===n,level:0})},"series-article-".concat(l))})})]})})]})}var O=s(12235);function q(e){let{article:l,className:s}=e,{title:a,description:n,subtitle:r,image:d,date:g,url:v,author:C,tags:p,readingTime:f,headings:w,slug:b}=l,N=c()("px-4",s);return(0,t.jsxs)("article",{className:N,children:[(0,t.jsxs)("div",{className:"max-w-7xl mx-auto relative z-10 flex flex-col space-y-4",children:[(0,t.jsxs)("div",{className:"eyebrow break-words",children:[(0,t.jsx)("time",{className:"block mb-2 md:mb-0 md:inline-block article-published-date",dateTime:new Date(g).toISOString(),suppressHydrationWarning:!0,children:(0,h.Wo)(g)}),(0,t.jsx)("span",{className:"hidden md:inline-block md:mx-2",children:"•"}),C.map((e,l)=>(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(x(),{className:"hover:text-blue-400 text-xs md:text-sm whitespace-nowrap author-name",href:"/author/".concat(e.slug),children:e.title}),l0}),children:[(0,t.jsx)("div",{className:c()("flex justify-center",{"lg:col-span-3":w.length>0}),children:(0,t.jsx)("div",{className:"prose lg:prose-lg prose-invert w-full article-content",children:(0,t.jsx)(V,{markdown:l.body.code})})}),w.length>0&&(0,t.jsx)("div",{className:"hidden lg:flex lg:col-span-1 text-sm lg:flex-col lg:space-y-6",children:(0,t.jsx)(G,{headings:w})})]}),(0,t.jsx)(F,{url:v,title:a})]})}var J=s(13368),Q=s.n(J),Y=!0;function K(e){let{article:l}=e,{title:s,description:i,imageUrl:r,url:c}=l;return(0,t.jsxs)(a.A,{title:s,description:i,image:r,showScrollIndicator:!0,children:[(0,t.jsx)(Q(),{children:(0,t.jsx)("link",{rel:"canonical",href:"".concat("https://www.elastic.co/observability-labs","/blog").concat(c)})}),(0,t.jsx)(n.A,{homepage:!1}),(0,t.jsx)(q,{article:l})]})}},9341:e=>{e.exports={overlay:"ClickableImage_overlay__wF8C7",panel:"ClickableImage_panel__WXk9r",iconContainer:"ClickableImage_iconContainer__19IhL","iconContainer--visible":"ClickableImage_iconContainer--visible__iDWFo",icon:"ClickableImage_icon__KgV5z",imageContainer:"ClickableImage_imageContainer__3D8i8",closePanel:"ClickableImage_closePanel__YWjsh",fullscreenImage:"ClickableImage_fullscreenImage__avgJU",image:"ClickableImage_image__yF65Z","fullscreen-icon":"ClickableImage_fullscreen-icon__IAhz1"}}},e=>{var l=l=>e(e.s=l);e.O(0,[200,348,974,69,895,636,593,792],()=>l(45948)),_N_E=e.O()}]);