The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import{g as u,D as o}from"./qSFdVk7G.js";function d(t){const e=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/);if(!e)return new Date(t).getTime();const[,n,i,r,s,a,c,f]=e,l=Date.UTC(+n,+i-1,+r,+s,+a,+c);return f?l+parseFloat("0."+f)*1e3:l}function S(t){const e=t/1e6;return e<1?`${(t/1e3).toFixed(0)}µs`:e<1e3?`${e.toFixed(0)}ms`:`${(e/1e3).toFixed(1)}s`}function g(t){return t<1?`${(t*1e3).toFixed(0)} µs`:t<1e3?`${t.toFixed(0)} ms`:`${(t/1e3).toFixed(2)} s`}function M(t){return t>=200&&t<300?"text-green-500":t>=300&&t<400?"text-blue-500":t>=400&&t<500?"text-yellow-400":"text-red-500"}function h(t,e=70){const n=t.split(`
`)[0];return n.length>e?n.slice(0,e)+"...":n}function m(t,e){const n=e??u(),i=o.fromISO(t,{zone:"utc"}).setZone(n),s=o.now().setZone(n).toMillis()-i.toMillis(),a=Math.floor(s/6e4),c=Math.floor(s/36e5),f=Math.floor(s/864e5);return a<1?"just now":a<60?`${a}m`:c<24?`${c}h`:`${f}d`}function D(t,e){const n=m(t,e);return n==="just now"?n:`${n} ago`}function $(t,e={}){const n=e.timezone??u(),i=typeof t=="string"?t:t instanceof Date?t.toISOString():new Date(t).toISOString(),r=o.fromISO(i,{zone:"utc"}).setZone(n);if(!r.isValid)return"Invalid date";switch(e.format){case"full":return r.toLocaleString(o.DATETIME_FULL);case"short":return r.toLocaleString(o.DATETIME_SHORT);case"date":return r.toLocaleString(o.DATE_MED);case"time":return r.toLocaleString(o.TIME_SIMPLE);case"iso":return r.toISO()??"";case"datetime-seconds":return r.toLocaleString(o.DATETIME_MED_WITH_SECONDS);default:return r.toLocaleString(o.DATETIME_MED)}}function E(t){const e=t??u();return o.now().setZone(e)}function I(t){return{year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second}}function y(t,e){const n=e??u();return o.fromObject({year:t.year,month:t.month,day:t.day,hour:t.hour??0,minute:t.minute??0,second:t.second??0},{zone:n})}function x(t){return t.toUTC().toISO()??""}function O(t,e){const n=e??u();return o.fromISO(t,{zone:"utc"}).setZone(n)}function w(t){const e=n=>String(n).padStart(2,"0");return`${t.getFullYear()}-${e(t.getMonth()+1)}-${e(t.getDate())}T${e(t.getHours())}:${e(t.getMinutes())}`}export{D as a,g as b,y as c,S as d,M as e,$ as f,E as g,h,w as i,d as j,I as l,O as p,x as t};