PageSourceSearch

http://parisobs.com/_next/static/chunks/pages/project/[projectId]/traces/setup-5f5193a54e3c5a88.js

js parisobs.com collected 2026-10-04 01:41:29 UTC 35,665 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3460,3939],{6482:(e,t,a)=>{"use strict";a.d(t,{Nr:()=>r,aW:()=>n,bu:()=>s,nz:()=>l});let s="/setup",r=e=>"/organization/".concat(e,"/setup?orgstep=create-project"),n=e=>"/organization/".concat(e,"/setup?orgstep=invite-members"),l=e=>"/project/".concat(e,"/traces/setup")},8913:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(73154),r=a(49757),n=a(81509);let l=e=>{let{children:t,headerProps:a}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("relative flex min-h-screen-with-banner flex-1 flex-col"),"data-sentry-component":"ContainerPage","data-sentry-source-file":"container-page.tsx",children:[(0,s.jsx)("header",{className:"sticky top-0 z-50 w-full",children:(0,s.jsx)(r.A,{...a,container:!0,"data-sentry-element":"PageHeader","data-sentry-source-file":"container-page.tsx"})}),(0,s.jsx)("main",{className:(0,n.cn)("relative flex min-h-screen-with-banner flex-1 flex-col p-3 lg:container"),children:t})]})}},14183:(e,t,a)=>{"use strict";a.d(t,{Cf:()=>h,Es:()=>g,HM:()=>m,L3:()=>j,R4:()=>y,ZJ:()=>u,c7:()=>f,lG:()=>d,rr:()=>N,zM:()=>c});var s=a(73154),r=a(96810),n=a(2198),l=a(41641),i=a(33616),o=a(81509);let d=n.bL,c=n.l9,u=n.ZL,m=n.bm,x=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(n.hJ,{ref:t,className:(0,o.cn)("fixed inset-0 z-50 bg-foreground
1/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r})});x.displayName=n.hJ.displayName;let p=(0,i.F)("fixed left-[50%] top-[50%] overflow-hidden z-50 flex w-full flex-col translate-x-[-50%] translate-y-[-50%] bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",{variants:{size:{default:"max-w-lg max-h-[85vh]",lg:"max-w-4xl max-h-[85vh]",xl:"max-w-7xl h-[90vh]",xxl:"max-w-[95vw] h-[90vh]"}},defaultVariants:{size:"default"}}),h=r.forwardRef((e,t)=>{let{className:a,children:r,closeOnInteractionOutside:i=!1,size:d,...c}=e;return(0,s.jsxs)(u,{children:[(0,s.jsx)(x,{}),(0,s.jsxs)(n.UC,{ref:t,className:(0,o.cn)(p({size:d,className:a})),"aria-describedby":void 0,onPointerDownOutside:e=>{i||e.preventDefault()},onInteractOutside:e=>{i||e.preventDefault()},...c,children:[r,(0,s.jsx)("div",{className:"[&:has(.dialog-header)]:hidden [&:not(:has(.dialog-header))]:absolute [&:not(:has(.dialog-header))]:right-3 [&:not(:has(.dialog-header))]:top-3 [&:not(:has(.dialog-header))]:z-20",children:(0,s.jsxs)(n.bm,{className:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(l.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})});h.displayName=n.UC.displayName;let f=e=>{let{className:t,children:a,...r}=e;return(0,s.jsx)("div",{className:(0,o.cn)("dialog-header sticky top-0 z-30 flex flex-shrink-0 flex-col space-y-1.5 rounded-t-lg border-b bg-background p-4",t),...r,"data-sentry-component":"DialogHeader","data-sentry-source-file":"dialog.tsx",children:(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-4 text-center sm:text-left",children:[(0,s.jsx)("div",{className:"min-w-0 flex-1",children:a}),(0,s.jsxs)(n.bm,{className:"z-20 ml-4 mt-1 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",tabIndex:-1,"data-sentry-element":"DialogPrimitive.Close","data-sentry-source-file":"dialog.tsx",children:[(0,s.jsx)(l.A,{className:"h-4 w-4","data-sentry-element":"X","data-sentry-source-file":"dialog.tsx"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})})};f.displayName="DialogHeader";let y=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-1 flex-col gap-4 overflow-y-auto p-4",a),...r})});y.displayName="DialogBody";let g=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,o.cn)("dialog-footer sticky bottom-0 z-10 flex flex-shrink-0 flex-col-reverse rounded-b-lg border-t bg-background p-6 px-6 sm:flex-row sm:justify-end sm:space-x-2",t),...a,"data-sentry-component":"DialogFooter","data-sentry-source-file":"dialog.tsx"})};g.displayName="DialogFooter";let j=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(n.hE,{ref:t,className:(0,o.cn)("text-xl font-semibold leading-none tracking-tight",a),...r})});j.displayName=n.hE.displayName;let N=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(n.VY,{ref:t,className:(0,o.cn)("mt-1 text-sm text-muted-foreground",a),...r})});N.displayName=n.VY.displayName},16058:(e,t,a)=>{"use strict";a.d(t,{Y:()=>j,k:()=>g});var s=a(73154),r=a(86843),n=a(93367),l=a(96810),i=a(65295),o=a(14183),d=a(56664),c=a(18799),u=a(36157),m=a(92125),x=a(90270),p=a(57299),h=a(70883),f=a(81509),y=a(28353);function g(e){let t=n.FH.useUtils(),a=(0,m.B)(),d=(0,c.lp)({projectId:e.entityId,scope:"apiKeys:CUD"}),p=(0,u.du)({organizationId:e.entityId,scope:"organization:CRUD_apiKeys"}),f="project"===e.scope?d:p,y=n.FH.projectApiKeys.create.useMutation({onSuccess:()=>t.projectApiKeys.invalidate()}),g=n.FH.organizationApiKeys.create.useMutation({onSuccess:()=>t.organizationApiKeys.invalidate()}),[N,v]=(0,l.useState)(!1),[b,w]=(0,l.useState)(""),[A,C]=(0,l.useState)(null),E=()=>{"project"===e.scope?y.mutateAsync({projectId:e.entityId,note:b||void 0}).then(t=>{let{secretKey:s,publicKey:r}=t;C({secretKey:s,publicKey:r}),a("".concat(e.scope,"_settings:api_key_create"))}).catch(e=>{console.error(e)}):g.mutateAsync({orgId:e.entityId,note:b||void 0}).then(t=>{let{secretKey:s,publicKey:r}=t;C({secretKey:s,publicKey:r}),a("".concat(e.scope,"_settings:api_key_create"))}).catch(e=>{console.error(e)})};return f?(0,s.jsxs)(o.lG,{open:N,onOpenChange:e=>{v(e),e||(C(null),w(""))},"data-sentry-element":"Dialog","data-sentry-component":"CreateApiKeyButton","data-sentry-source-file":"CreateApiKeyButton.tsx",children:[(0,s.jsx)(o.zM,{asChild:!0,"data-sentry-element":"DialogTrigger","data-sentry-source-file":"CreateApiKeyButton.tsx",children:(0,s.jsxs)(r.$,{variant:"secondary","data-sentry-element":"Button","data-sentry-source-file":"CreateApiKeyButton.tsx",children:[(0,s.jsx)(i.A,{className:"-ml-0.5 mr-1.5 h-5 w-5","aria-hidden":"true","data-sentry-element":"PlusIcon","data-sentry-source-file":"CreateApiKeyButton.tsx"}),"Create new API keys"]})}),(0,s.jsxs)(o.Cf,{onPointerDownOutside:e=>e.preventDefault(),"data-sentry-element":"DialogContent","data-sentry-source-file":"CreateApiKeyButton.tsx",children:[(0,s.jsx)(o.c7,{"data-sentry-element":"DialogHeader","data-sentry-source-file":"CreateApiKeyButton.tsx",children:(0,s.jsx)(o.L3,{"data-sentry-element":"DialogTitle","data-sentry-source-file":"CreateApiKeyButton.tsx",children:A?"API Keys":"Create API Keys"})}),(0,s.jsx)(o.R4,{"data-sentry-element":"DialogBody","data-sentry-source-file":"CreateApiKeyButton.tsx",children:A?(0,s.jsx)(j,{scope:e.scope,generatedKeys:A}):(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(h.J,{htmlFor:"note",children:"Note (optional)"}),(0,s.jsx)(x.p,{id:"note",placeholder:"Production key",value:b,onChange:e=>w(e.target.value),onKeyDown:e=>{"Enter"===e.key&&E()},className:"mt-1.5"})]})})}),!A&&(0,s.jsx)(o.Es,{children:(0,s.jsx)(r.$,{onClick:E,loading:y.isPending||g.isPending,children:"Create API keys"})})]})]}):null}let j=e=>{var t,a;let{scope:r,generatedKeys:n,className:l}=e,i=(0,p.j)(n);return(0,s.jsxs)("div",{className:(0,f.cn)("space-y-6",l),"data-sentry-component":"ApiKeyRender","data-sentry-source-file":"CreateApiKeyButton.tsx",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(y.iK,{title:"Secret Key","data-sentry-element":"SubHeader","data-sentry-source-file":"CreateApiKeyButton.tsx"}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:["This key can only be viewed once. You can always create new keys in the ",r," settings."]}),(0,s.jsx)(d.xi,{content:null!=(t=null==n?void 0:n.secretKey)?t:"Loading ...",className:"mt-2","data-sentry-element":"CodeView","data-sentry-source-file":"CreateApiKeyButton.tsx"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(y.iK,{title:"Public Key","data-sentry-element":"SubHeader","data-sentry-source-file":"CreateApiKeyButton.tsx"}),(0,s.jsx)(d.xi,{content:null!=(a=null==n?void 0:n.publicKey)?a:"Loading ...",className:"mt-2","data-sentry-element":"CodeView","data-sentry-source-file":"CreateApiKeyButton.tsx"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(y.iK,{title:".env","data-sentry-element":"SubHeader","data-sentry-source-file":"CreateApiKeyButton.tsx"}
1),(0,s.jsx)(d.xi,{content:i,className:"mt-2","data-sentry-element":"CodeView","data-sentry-source-file":"CreateApiKeyButton.tsx"})]})]})}},18328:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(39156);function r(){return(0,s.useRouter)().query.projectId}},25525:(e,t,a)=>{"use strict";a.d(t,{A0:()=>i,BF:()=>o,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>c});var s=a(73154),r=a(96810),n=a(81509);let l=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("table",{ref:t,className:(0,n.cn)("w-full table-fixed caption-bottom border-separate border-spacing-0 space-y-4 overflow-auto text-sm",a),...r})});l.displayName="Table";let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("thead",{ref:t,className:(0,n.cn)("[&_tr]:border-b",a),...r})});i.displayName="TableHeader";let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("tbody",{ref:t,className:(0,n.cn)("text-xs [&_tr:last-child]:border-0",a),...r})});o.displayName="TableBody",r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("tfoot",{ref:t,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("tr",{ref:t,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("th",{ref:t,className:(0,n.cn)("relative h-10 border-b bg-background px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...r})});c.displayName="TableHead";let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("td",{ref:t,className:(0,n.cn)("h-full px-2 py-0 align-middle [&:has([role=checkbox])]:pr-0","border-b [:last-child_>_&]:border-b-0",a),...r})});u.displayName="TableCell",r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("caption",{ref:t,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})}).displayName="TableCaption"},28353:(e,t,a)=>{"use strict";a.d(t,{A:()=>u,Ay:()=>d,iK:()=>c});var s=a(73154),r=a(68389),n=a.n(r),l=a(35157),i=a(97390),o=a(81509);function d(e){let{...t}=e;return(0,s.jsx)(x,{...t,level:"h3","data-sentry-element":"BaseHeader","data-sentry-component":"Header","data-sentry-source-file":"header.tsx"})}function c(e){let{...t}=e;return(0,s.jsx)(x,{...t,level:"h4","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeader","data-sentry-source-file":"header.tsx"})}function u(e){let{...t}=e;return(0,s.jsx)(x,{...t,level:"h5","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeaderLabel","data-sentry-source-file":"header.tsx"})}function m(e){let{level:t,title:a}=e;switch(t){case"h3":return(0,s.jsx)("h3",{className:"text-xl font-bold leading-7",children:a});case"h4":return(0,s.jsx)("h4",{className:"text-lg font-medium leading-6",children:a});case"h5":return(0,s.jsx)("h5",{className:"text-base font-medium leading-6",children:a})}}function x(e){var t;let{...a}=e;return(0,s.jsx)("div",{className:(0,o.cn)(a.className,"h3"===a.level&&"mb-2"),"data-sentry-component":"BaseHeader","data-sentry-source-file":"header.tsx",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-5",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-row items-center",children:[(0,s.jsx)(m,{title:a.title,level:a.level,"data-sentry-element":"HeaderTitle","data-sentry-source-file":"header.tsx"}),a.help?(0,s.jsx)(l.A,{description:a.help.description,href:a.help.href,className:a.help.className}):null]}),a.status&&(0,s.jsx)(i.W,{type:a.status}),a.label&&(0,s.jsx)(n(),{href:a.label.href,children:(0,s.jsx)(i.W,{type:a.label.text})})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-3",children:null!=(t=a.actionButtons)?t:null})]})})}},35157:(e,t,a)=>{"use strict";a.d(t,{A:()=>d,z:()=>c});var s=a(73154),r=a(97898),n=a(92125),l=a(81509),i=a(45103),o=a(80263);function d(e){let{description:t,href:a,className:d}=e,c=(0,n.B)();return(0,s.jsxs)(r.jc,{openDelay:200,onOpenChange:e=>{e&&c("help_popup:opened",{hfref:a,description:t})},"data-sentry-element":"HoverCard","data-sentry-component":"DocPopup","data-sentry-source-file":"doc-popup.tsx",children:[(0,s.jsx)(r.d0,{className:(0,l.cn)("mx-1",a?"cursor-pointer":"cursor-default"),asChild:!0,"data-sentry-element":"HoverCardTrigger","data-sentry-source-file":"doc-popup.tsx",children:(0,s.jsx)("div",{className:"inline-block whitespace-nowrap text-muted-foreground sm:pl-0",onClick:e=>{a&&(e.preventDefault(),e.stopPropagation(),window.open(a,"_blank"),c("help_popup:href_clicked",{href:a,description:t}))},children:(0,s.jsx)(o.A,{className:"h-3 w-3","data-sentry-element":"Info","data-sentry-source-file":"doc-popup.tsx"})})}),(0,s.jsx)(i.ZL,{"data-sentry-element":"Portal","data-sentry-source-file":"doc-popup.tsx",children:(0,s.jsx)(r.Et,{"data-sentry-element":"HoverCardContent","data-sentry-source-file":"doc-popup.tsx",children:(0,s.jsx)("div",{className:(0,l.cn)("whitespace-break-spaces text-xs font-normal text-primary sm:pl-0",d),children:t})})})]})}function c(e){let{triggerContent:t,description:a}=e;return(0,s.jsxs)(r.jc,{openDelay:200,"data-sentry-element":"HoverCard","data-sentry-component":"Popup","data-sentry-source-file":"doc-popup.tsx",children:[(0,s.jsx)(r.d0,{className:"mx-1 cursor-pointer",asChild:!0,"data-sentry-element":"HoverCardTrigger","data-sentry-source-file":"doc-popup.tsx",children:(0,s.jsx)("div",{children:t})}),(0,s.jsx)(r.Et,{"data-sentry-element":"HoverCardContent","data-sentry-source-file":"doc-popup.tsx",children:(0,s.jsx)("div",{className:"whitespace-break-spaces text-xs font-normal text-primary sm:pl-0",children:a})})]})}},49757:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var s=a(73154),r=a(10952),n=a(81509),l=a(38834),i=a(96810);let o=e=>{var t,a,o;let{className:d}=e,[c,u]=(0,i.useState)(!1),m=(0,l.useSession)(),{isLangfuseCloud:x,region:p}=(0,r.gW)();return x&&(null==(o=m.data)||null==(a=o.user)||null==(t=a.email)?void 0:t.endsWith("@langfuse.com"))&&!c?(0,s.jsx)("div",{className:(0,n.cn)("flex cursor-pointer items-center gap-1 self-stretch whitespace-nowrap rounded-md px-1 py-0.5 text-xs","STAGING"===p?"bg-light-blue text-dark-blue":"DEV"===p?"bg-light-green text-dark-green":"bg-light-red text-dark-red",d),onClick:()=>u(!0),"data-sentry-component":"EnvLabel","data-sentry-source-file":"EnvLabel.tsx",children:p&&["EU","US","HIPAA"].includes(p)?"PROD-".concat(p):p}):null};var d=a(57404),c=a(60520),u=a(88377),m=a(51883),x=a(21),p=a(31346),h=a(65295),f=a(26596),y=a(86843),g=a(82145),j=a(98084),N=a(39156),v=a(36157),b=a(6482),w=a(45596),A=a(68389),C=a.n(A),E=a(67716);let _=()=>(0,s.jsxs)(u._2,{"data-sentry-element":"DropdownMenuItem","data-sentry-component":"LoadingMenuItem","data-sentry-source-file":"breadcrumb.tsx",children:[(0,s.jsx)(m.A,{className:"mr-1.5 h-4 w-4 animate-spin","data-sentry-element":"LoaderCircle","data-sentry-source-file":"breadcrumb.tsx"})," Loading..."]}),k=e=>{var t,a,r,n,o,d,m;let{items:A,className:k}=e,I=(0,N.useRouter)(),T=(0,l.useSession)(),{organization:B,project:R}=(0,j.lf)(),S=null==(a=T.data)||null==(t=a.user)?void 0:t.organizations,P=null==(n=T.data)||null==(r=n.user)?void 0:r.canCreateOrganizations,L=(0,v.du)({organizationId:null==B?void 0:B.id,scope:"projects:create"}),D=e=>{let t=["[projectId]","[organizationId]","[page]"],a=I.route.split("/"),s=a.filter(e=>e.startsWith("[")&&e.endsWith("]")).filter(e=>!t.includes(e));if(0===s.length)return e;let r=a.indexOf(s[0]);return e.split("/").slice(0,r).join("/")};return(0,s.jsx)(c.Qp,{className:k,"data-sentry-element":"Breadcrumb","data-sentry-component":"BreadcrumbComponent","data-sentry-source-file":"breadcrumb.tsx",children:(0,s.jsxs)(c.AB,{"data-sentry-element":"BreadcrumbList","data-sentry-source-file":"breadcrumb.tsx",children:[B&&(0,s.jsxs)(u.rI,{children:[(0,s.jsxs)(u.ty,{className:"flex items-center gap-1 text-sm text-primary",children:[null!=(d=null==B?void 0:B.name)?d:"Organization",(0,w.isCloudPlan)(null==B?void 0:B.plan)&&B.id!==g._.NEXT_PUBLIC_DEMO_ORG_ID&&(0,s.jsx)(E.E,{className:"ml-1 px-1 py-0 text-xs font-normal",variant:"secondary",children:w.planLabels[B.plan]}),(0,s.jsx)(x.A,{className:"h-4 w-4"})]}),(0,s.jsxs)(u.SQ,{align:"start",children:[(0,s.jsx)(u._2,{className:"font-semibold",asChild:!0,children:(0,s.jsx)(C(),{href:"/",className:"cursor-pointer",children:"Organizations"})}),(0,s.jsx)(u.mB,{}),(0,s.jsx)("div",{className:"max-h-36 overflow-y-auto",children:S?S.sort((e,t)=>
1{let a=g._.NEXT_PUBLIC_DEMO_ORG_ID===e.id,s=g._.NEXT_PUBLIC_DEMO_ORG_ID===t.id;return a?1:s?-1:0}).map(e=>(0,s.jsxs)(i.Fragment,{children:[g._.NEXT_PUBLIC_DEMO_ORG_ID===e.id&&(0,s.jsx)(u.mB,{}),(0,s.jsx)(u._2,{asChild:!0,children:(0,s.jsxs)(C(),{href:(e=>I.query.organizationId?D(I.asPath).replace(I.query.organizationId,e):"/organization/".concat(e))(e.id),className:"flex cursor-pointer justify-between",children:[(0,s.jsx)("span",{className:"max-w-36 overflow-hidden overflow-ellipsis whitespace-nowrap",title:e.name,children:e.name}),(0,s.jsx)(y.$,{asChild:!0,variant:"ghost",size:"xs",className:"-my-1 ml-4 hover:bg-background",children:(0,s.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),I.push("/organization/".concat(e.id,"/settings"))},children:(0,s.jsx)(p.A,{size:12})})})]})})]},e.id)):(0,s.jsx)(_,{})}),P&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.mB,{}),(0,s.jsx)(u._2,{asChild:!0,children:(0,s.jsx)(y.$,{variant:"ghost",size:"xs",className:"h-8 w-full text-sm font-normal",asChild:!0,children:(0,s.jsxs)(C(),{href:b.bu,children:[(0,s.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Organization"]})})})]})]})]}),B&&R&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.tH,{children:(0,s.jsx)(f.A,{})}),(0,s.jsxs)(u.rI,{children:[(0,s.jsxs)(u.ty,{className:"flex items-center gap-1 text-primary",children:[null!=(m=null==R?void 0:R.name)?m:"Project",(0,s.jsx)(x.A,{className:"h-4 w-4"})]}),(0,s.jsxs)(u.SQ,{align:"start",children:[(0,s.jsx)(u._2,{asChild:!0,className:"font-semibold",children:(0,s.jsx)(C(),{href:"/organization/".concat(B.id),className:"cursor-pointer",children:"Projects"})}),(0,s.jsx)(u.mB,{}),(0,s.jsx)("div",{className:"max-h-36 overflow-y-auto",children:S?null==(o=S.find(e=>e.id===B.id))?void 0:o.projects.map(e=>(0,s.jsx)(u._2,{asChild:!0,children:(0,s.jsxs)(C(),{href:(e=>I.query.projectId?D(I.asPath).replace(I.query.projectId,e):"/project/".concat(e))(e.id),className:"flex cursor-pointer justify-between",children:[(0,s.jsx)("span",{className:"max-w-36 overflow-hidden overflow-ellipsis whitespace-nowrap",title:e.name,children:e.name}),(0,s.jsx)(y.$,{asChild:!0,variant:"ghost",size:"xs",className:"-my-1 ml-4 hover:bg-background",children:(0,s.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),I.push("/project/".concat(e.id,"/settings"))},children:(0,s.jsx)(p.A,{size:12})})})]})},e.id)):(0,s.jsx)(_,{})}),L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.mB,{}),(0,s.jsx)(u._2,{asChild:!0,children:(0,s.jsx)(y.$,{variant:"ghost",size:"xs",className:"h-8 w-full text-sm font-normal",asChild:!0,children:(0,s.jsxs)(C(),{href:(0,b.Nr)(B.id),children:[(0,s.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Project"]})})})]})]})]})]}),null==A?void 0:A.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(c.tH,{children:(0,s.jsx)(f.A,{})}),(0,s.jsx)(c.J5,{children:e.href?(0,s.jsx)(c.w1,{asChild:!0,children:(0,s.jsx)(C(),{href:e.href,children:e.name})}):(0,s.jsx)("span",{children:e.name})},t)]},t))]})})};var I=a(35157),T=a(60117),B=a(53524);let R=e=>{let{title:t,itemType:a,actionButtonsLeft:r,actionButtonsRight:l,breadcrumb:i,help:c,titleTooltip:u,tabsProps:m,container:x=!1,className:p,showSidebarTrigger:h=!0,leadingControl:f,titleBadges:y,breadcrumbBadges:g}=e,j=(0,N.useRouter)();return(0,s.jsx)("div",{className:(0,n.cn)(["sticky top-banner-offset z-30 w-full border-b bg-background shadow-sm",p]),id:"page-header","data-sentry-component":"PageHeader","data-sentry-source-file":"page-header.tsx",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,s.jsx)("div",{className:"border-b",children:(0,s.jsxs)("div",{className:(0,n.cn)("flex min-h-11 items-center gap-3 px-3 py-2",x&&"lg:container"),children:[h?(0,s.jsx)(T.x2,{}):f&&(0,s.jsx)("div",{className:"flex items-center",children:f}),(0,s.jsx)("div",{children:(0,s.jsx)(o,{"data-sentry-element":"EnvLabel","data-sentry-source-file":"page-header.tsx"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(k,{items:i,"data-sentry-element":"BreadcrumbComponent","data-sentry-source-file":"page-header.tsx"}),g]})]})}),(0,s.jsxs)("div",{className:"bg-header",children:[(0,s.jsxs)("div",{className:(0,n.cn)("flex min-h-11 w-full flex-wrap items-center justify-between gap-1 px-3 py-1 md:flex-nowrap",x&&"lg:container"),children:[(0,s.jsxs)("div",{className:"flex flex-grow flex-wrap items-center md:flex-grow-0",children:[(0,s.jsxs)("div",{className:"mr-2 flex items-center gap-1",children:[a&&(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(d.L,{type:a,showLabel:!0})}),(0,s.jsx)("div",{className:"relative inline-block max-w-md md:max-w-none",children:(0,s.jsx)("h2",{className:"line-clamp-1 text-lg font-semibold leading-7",children:u?(0,s.jsx)(B.Bc,{children:(0,s.jsxs)(B.m_,{children:[(0,s.jsx)(B.k$,{asChild:!0,children:(0,s.jsxs)("span",{className:"cursor-help break-words","data-testid":"page-header-title",children:[t,c&&(0,s.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,s.jsx)(I.A,{description:c.description,href:c.href,className:c.className})]})]})}),(0,s.jsx)(B.ZI,{side:"bottom",className:"max-w-xs",children:u})]})}):(0,s.jsxs)("span",{className:"break-words",title:t,"data-testid":"page-header-title",children:[t,c&&(0,s.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,s.jsx)(I.A,{description:c.description,href:c.href,className:c.className})]})]})})}),y&&(0,s.jsx)("div",{className:"ml-1 flex items-center gap-1",children:y})]}),r&&(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-1 self-center",children:r})]}),(0,s.jsx)("div",{className:"ml-auto flex flex-grow flex-wrap items-center justify-end gap-1",children:l})]}),m&&(0,s.jsx)("div",{className:(0,n.cn)("ml-2",m.className),children:(0,s.jsx)("div",{className:(0,n.cn)("inline-flex h-8 items-center justify-start",m.listClassName),children:m.tabs.map(e=>{var t;return(0,s.jsx)(C(),{href:{pathname:e.href,query:null==(t=e.querySelector)?void 0:t.call(e,j.query
1)},className:(0,n.cn)("inline-flex h-full items-center justify-center whitespace-nowrap rounded-none border-b-4 border-transparent px-2 py-0.5 text-sm font-medium transition-all hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e.value===m.activeTab?"border-primary-accent bg-transparent shadow-none":"",e.disabled&&"pointer-events-none opacity-50",e.className),children:e.label},e.value)})})})]})]})})}},55839:(e,t,a)=>{"use strict";a.r(t),a.d(t,{TracingSetup:()=>p,default:()=>h});var s=a(73154),r=a(96810),n=a(39156),l=a(93367),i=a(92125),o=a(8913),d=a(68048),c=a(28353),u=a(86843),m=a(16058),x=a(98084);let p=e=>{let{projectId:t,hasTracingConfigured:a}=e,[n,i]=(0,r.useState)(null),o=l.FH.useUtils(),x=l.FH.projectApiKeys.create.useMutation({onSuccess:e=>{o.projectApiKeys.invalidate(),i(e)}}),p=async()=>{try{await x.mutateAsync({projectId:t})}catch(e){console.error("Error creating API key:",e)}};return(0,s.jsxs)("div",{className:"space-y-8","data-sentry-component":"TracingSetup","data-sentry-source-file":"setup.tsx",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(c.iK,{title:"1. Get API keys","data-sentry-element":"SubHeader","data-sentry-source-file":"setup.tsx"}),n?(0,s.jsx)(m.Y,{generatedKeys:n,scope:"project",className:"mt-4"}):(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"You need to create an API key to start tracing your application. You can create more keys later in the project settings."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(u.$,{onClick:p,loading:x.isPending,className:"self-start",children:"Create new API key"}),(0,s.jsx)(d.r,{href:"/project/".concat(t,"/settings/api-keys"),variant:"secondary",children:"Manage API keys"})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.iK,{title:"2. Add tracing to your application",status:a?"active":"pending","data-sentry-element":"SubHeader","data-sentry-source-file":"setup.tsx"}),(0,s.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Langfuse relies on OpenTelemetry to instrument your application and export LLM application/agent traces to Langfuse. You can use one of our SDKs or 50+ framework integrations. Please follow the quickstart in the documentation to add Langfuse to your application."}),(0,s.jsx)(d.r,{href:"https://langfuse.com/docs/observability/get-started","data-sentry-element":"ActionButton","data-sentry-source-file":"setup.tsx",children:"Quickstart guide"})]})]})};function h(){let e=(0,n.useRouter)().query.projectId,{project:t}=(0,x.B2)(),{data:a}=l.FH.traces.hasTracingConfigured.useQuery({projectId:e},{enabled:!!e,refetchInterval:(null==t||!t.hasTraces)&&5e3,initialData:null!=t&&!!t.hasTraces||void 0,staleTime:(null==t?void 0:t.hasTraces)?1/0:0,trpc:{context:{skipBatch:!0}}}),d=(0,i.B)();return(0,r.useEffect)(()=>{void 0!==a&&d("onboarding:tracing_check_active",{active:a})},[a,d]),(0,s.jsx)(o.A,{headerProps:{title:"Tracing Setup",help:{description:"Setup tracing to track and analyze your LLM calls. You can create API keys and integrate Langfuse with your application.",href:"https://langfuse.com/docs/observability/overview"}},"data-sentry-element":"ContainerPage","data-sentry-component":"TracesSetupPage","data-sentry-source-file":"setup.tsx",children:(0,s.jsx)("div",{className:"flex flex-col gap-4",children:(0,s.jsx)(p,{projectId:e,hasTracingConfigured:null!=a&&a,"data-sentry-element":"TracingSetup","data-sentry-source-file":"setup.tsx"})})})}},57299:(e,t,a)=>{"use strict";a.d(t,{j:()=>n});var s=a(90391),r=a(82145);function n(e){var t,a;let n=(0,s.l)(),l="".concat(null!=(t=null==n?void 0:n.hostname)?t:window.origin).concat(null!=(a=r._.NEXT_PUBLIC_BASE_PATH)?a:"");return e?'LANGFUSE_SECRET_KEY="'.concat(e.secretKey,'"\nLANGFUSE_PUBLIC_KEY="').concat(e.publicKey,'"\nLANGFUSE_BASE_URL="').concat(l,'"'):'LANGFUSE_SECRET_KEY="sk-lf-..."\nLANGFUSE_PUBLIC_KEY="pk-lf-..."\nLANGFUSE_BASE_URL="'.concat(l,'"')}},57404:(e,t,a)=>{"use strict";a.d(t,{L:()=>I,u:()=>k});var s=a(73154),r=a(67716),n=a(78446),l=a(76916),i=a(49101),o=a(41813),d=a(32928),c=a(18254),u=a(9331),m=a(27131),x=a(24825),p=a(10011),h=a(73215),f=a(30572),y=a(21409),g=a(91010),j=a(55210),N=a(35844),v=a(97934),b=a(64283),w=a(60555),A=a(33616),C=a(81509);let E={TRACE:n.A,GENERATION:l.A,EVENT:i.A,SPAN:o.A,AGENT:d.A,TOOL:c.A,CHAIN:u.A,RETRIEVER:m.A,EMBEDDING:x.A,GUARDRAIL:p.A,SESSION:h.A,USER:f.A,QUEUE_ITEM:y.A,DATASET:g.A,DATASET_RUN:j.A,DATASET_ITEM:N.A,ANNOTATION_QUEUE:v.A,PROMPT:b.A,RUNNING_EVALUATOR:d.A,EVALUATOR:w.A},_=(0,A.F)((0,C.cn)("h-4 w-4"),{variants:{type:{TRACE:"text-dark-green",GENERATION:"text-muted-magenta",EVENT:"text-muted-green",SPAN:"text-muted-blue",AGENT:"text-purple-600",TOOL:"text-orange-600",CHAIN:"text-pink-600",RETRIEVER:"text-teal-600",EMBEDDING:"text-amber-600",GUARDRAIL:"text-red-600",SESSION:"text-primary-accent",USER:"text-primary-accent",QUEUE_ITEM:"text-primary-accent",DATASET:"text-primary-accent",DATASET_RUN:"text-primary-accent",DATASET_ITEM:"text-primary-accent",ANNOTATION_QUEUE:"text-primary-accent",PROMPT:"text-primary-accent",EVALUATOR:"text-primary-accent",RUNNING_EVALUATOR:"text-primary-accent"}}});function k(e){let t=E[e];return t?(0,s.jsx)(t,{className:(0,C.cn)("h-3.5 w-3.5 shrink-0",_({type:e})),"data-sentry-element":"Icon","data-sentry-component":"renderFilterIcon","data-sentry-source-file":"ItemBadge.tsx"}):null}function I(e){let{type:t,showLabel:a=!1,isSmall:l=!1,className:i}=e,o=E[t]||n.A,d=(0,C.cn)(_({type:t}),l?"h-3 w-3":"h-4 w-4",i),c=String(t).charAt(0).toUpperCase()+String(t).slice(1).toLowerCase();return(0,s.jsxs)(r.E,{variant:"outline",title:c,className:(0,C.cn)("flex max-w-fit items-center gap-1 overflow-hidden whitespace-nowrap border-2 bg-background px-1",l&&"h-4"),"data-sentry-element":"Badge","data-sentry-component":"ItemBadge","data-sentry-source-file":"ItemBadge.tsx",children:[(0,s.jsx)(o,{className:d,"data-sentry-element":"Icon","data-sentry-source-file":"ItemBadge.tsx"}),a&&(0,s.jsx)("span",{className:"truncate",title:c.replace(/_/g," "),children:c.replace(/_/g," ")})]})}},60520:(e,t,a)=>{"use strict";a.d(t,{AB:()=>d,J5:()=>c,Qp:()=>o,tH:()=>x,tJ:()=>m,w1:()=>u});var s=a(73154),r=a(96810),n=a(4226),l=a(59757),i=(a(69844),a(81509));let o=r.forwardRef((e,t)=>
1{let{...a}=e;return(0,s.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...a})});o.displayName="Breadcrumb";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("ol",{ref:t,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",a),...r})});d.displayName="BreadcrumbList";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("li",{ref:t,className:(0,i.cn)("inline-flex items-center gap-1.5",a),...r})});c.displayName="BreadcrumbItem";let u=r.forwardRef((e,t)=>{let{asChild:a,className:r,...l}=e,o=a?n.DX:"a";return(0,s.jsx)(o,{ref:t,className:(0,i.cn)("transition-colors hover:text-foreground",r),...l})});u.displayName="BreadcrumbLink";let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-foreground",a),...r})});m.displayName="BreadcrumbPage";let x=e=>{let{children:t,className:a,...r}=e;return(0,s.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:size-3.5",a),...r,"data-sentry-component":"BreadcrumbSeparator","data-sentry-source-file":"breadcrumb.tsx",children:null!=t?t:(0,s.jsx)(l.A,{})})};x.displayName="BreadcrumbSeparator"},67716:(e,t,a)=>{"use strict";a.d(t,{E:()=>i});var s=a(73154);a(96810);var r=a(33616),n=a(81509);let l=(0,r.F)("inline-flex items-center rounded-md border border-transparent font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",tertiary:"bg-tertiary text-tertiary-foreground",success:"bg-light-green text-dark-green",error:"bg-light-red text-dark-red",warning:"bg-light-yellow text-dark-yellow"},size:{default:"px-2.5 py-0.5 text-xs",sm:"px-1 py-0 text-xs"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:a,size:r,...i}=e;return(0,s.jsx)("div",{className:(0,n.cn)(l({variant:a,size:r}),t),...i,"data-sentry-component":"Badge","data-sentry-source-file":"badge.tsx"})}},68048:(e,t,a)=>{"use strict";a.d(t,{r:()=>h});var s=a(73154),r=a(96810),n=a(72764),l=a(36932),i=a(12407),o=a(86843),d=a(97898),c=a(45103),u=a(68389),m=a.n(u),x=a(92125);let p={limitReached:(e,t)=>"You have reached the limit (".concat(e,"/").concat(t,") for this resource at your current plan. Upgrade your plan to increase the limit."),noAccess:"You do not have access to this resource, please ask your admin to grant you access.",entitlement:"This feature is not available in your current plan."},h=r.forwardRef(function(e,t){let{loading:a=!1,hasAccess:r=!0,hasEntitlement:n=!0,limitValue:l,limit:i=!1,disabled:o=!1,children:u,icon:m,className:h,href:g,trackingEventName:j,trackingProps:N,...v}=e,b=(0,x.B)(),w="number"==typeof i&&void 0!==l&&l>=i,A=o||!r||!n||w,C=r?n?w&&"number"==typeof i&&void 0!==l?p.limitReached(l,i):null:p.entitlement:p.noAccess,E=(0,s.jsx)(y,{ref:t,icon:m,isDisabled:A,loading:a,hasAccess:r,hasEntitlement:n,hasReachedLimit:w,className:h,buttonProps:v,href:g,onLinkClick:()=>{j&&g&&f(g)&&b(j,null!=N?N:null)},children:u});return A&&C?(0,s.jsxs)(d.jc,{openDelay:200,children:[(0,s.jsx)(d.d0,{asChild:!0,children:(0,s.jsx)("span",{children:E})}),(0,s.jsx)(c.HP,{children:(0,s.jsx)(d.Et,{className:"w-80 text-sm",children:C})})]}):E}),f=e=>e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//"),y=r.forwardRef(function(e,t){let{icon:a,isDisabled:r,loading:d,hasAccess:c,hasEntitlement:u,hasReachedLimit:x,className:p,buttonProps:h,children:y,href:g,onLinkClick:j}=e,N=(0,s.jsxs)(s.Fragment,{children:[c?u?x?(0,s.jsx)(i.A,{className:"mr-1 h-4 w-4"}):a?(0,s.jsx)("div",{className:"mr-1",children:a}):null:(0,s.jsx)(l.A,{className:"mr-1 h-4 w-4"}):(0,s.jsx)(n.A,{className:"mr-1 h-4 w-4"}),y]}),v=g&&!r,b=g&&f(g);return(0,s.jsx)(o.$,{ref:t,disabled:r,loading:d,className:p,...h,asChild:!!v||void 0,children:v?(0,s.jsx)(m(),{href:g,target:b?"_blank":void 0,rel:b?"noopener noreferrer":void 0,onClick:j,children:N}):N})})},72764:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});
1let s=(0,a(22222).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},78893:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/[projectId]/traces/setup",function(){return a(55839)}])},97898:(e,t,a)=>{"use strict";a.d(t,{Et:()=>d,d0:()=>o,jc:()=>i});var s=a(73154),r=a(96810),n=a(45103),l=a(81509);let i=n.bL,o=n.l9,d=r.forwardRef((e,t)=>{let{className:a,align:r="center",sideOffset:i=4,...o}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsx)(n.UC,{ref:t,align:r,sideOffset:i,className:(0,l.cn)("z-[9999] w-64 rounded-md border bg-popover p-3 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});d.displayName=n.UC.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h3",{ref:t,className:(0,l.cn)("p-2 text-sm font-semibold leading-none tracking-tight",a),...r})}).displayName="HoverCardTitle"}},e=>{e.O(0,[202,9110,1454,9825,894,5582,2441,636,6593,8792],()=>e(e.s=78893)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.