The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: split telemetry and troubleshooting sections (#33223)
Charisa404e48b3934
diff --git a/apps/docs/app/guides/monitoring-troubleshooting/layout.tsx b/apps/docs/app/guides/monitoring-troubleshooting/layout.tsxdeleted file mode 100644index f3deff839e7..00000000000--- a/apps/docs/app/guides/monitoring-troubleshooting/layout.tsx+++ /dev/null@@ -1,9 +0,0 @@-import Layout from '~/layouts/guides'--export default async function MonitoringTroubleshootingLayout({- children,-}: {- children: React.ReactNode-}) {- return <Layout>{children}</Layout>-}diff --git a/apps/docs/app/guides/monitoring-troubleshooting/[[...slug]]/page.tsx b/apps/docs/app/guides/telemetry/[[...slug]]/page.tsxsimilarity index 72%rename from apps/docs/app/guides/monitoring-troubleshooting/[[...slug]]/page.tsxrename to apps/docs/app/guides/telemetry/[[...slug]]/page.tsxindex 3936f2e8110..3ad5e6c392e 100644--- a/apps/docs/app/guides/monitoring-troubleshooting/[[...slug]]/page.tsx+++ b/apps/docs/app/guides/telemetry/[[...slug]]/page.tsx@@ -10,15 +10,15 @@ export const dynamicParams = falsetype Params = { slug?: string[] }const MonitoringTroubleshootingGuidePage = async ({ params }: { params: Params }) => {- const slug = ['monitoring-troubleshooting', ...(params.slug ?? [])]+ const slug = ['telemetry', ...(params.slug ?? [])]const data = await getGuidesMarkdown(slug)return <GuideTemplate {...data!} />}-const generateStaticParams = genGuidesStaticParams('monitoring-troubleshooting')+const generateStaticParams = genGuidesStaticParams('telemetry')const generateMetadata = genGuideMeta((params: { slug?: string[] }) =>- getGuidesMarkdown(['monitoring-troubleshooting', ...(params.slug ?? [])])+ getGuidesMarkdown(['telemetry', ...(params.slug ?? [])]))export default MonitoringTroubleshootingGuidePagediff --git a/apps/docs/app/guides/telemetry/layout.tsx b/apps/docs/app/guides/telemetry/layout.tsxnew file mode 100644index 00000000000..e2fe19972d4--- /dev/null+++ b/apps/docs/app/guides/telemetry/layout.tsx@@ -0,0 +1,5 @@+import Layout from '~/layouts/guides'++export default async function Telemetry({ children }: { children: React.ReactNode }) {+ return <Layout>{children}</Layout>+}diff --git a/apps/docs/app/guides/troubleshooting/page.tsx b/apps/docs/app/guides/troubleshooting/page.tsxindex b9d65fed5ad..1a519cf26b0 100644--- a/apps/docs/app/guides/troubleshooting/page.tsx+++ b/apps/docs/app/guides/troubleshooting/page.tsx@@ -41,11 +41,14 @@ export default async function GlobalTroubleshootingPage() {/><TroubleshootingListController /><TroubleshootingFilterEmptyState />- <div id={TROUBLESHOOTING_CONTAINER_ID}>+ <div id={TROUBLESHOOTING_CONTAINER_ID} className="@container/troubleshooting"><h2 className="sr-only">Matching troubleshooting entries</h2>- <ul>+ <ul className="grid @4xl/troubleshooting:grid-cols-[78%_15%_7%]">{troubleshootingEntries.map((entry) => (- <li key={entry.data.database_id}>+ <li+ key={entry.data.database_id}+ className="grid grid-cols-subgrid @4xl/troubleshooting:col-span-3"+ ><TroubleshootingPreview entry={entry} /></li>))}diff --git a/apps/docs/components/GuidesTableOfContents.tsx b/apps/docs/components/GuidesTableOfContents.tsxindex 625028213bb..32ad52df066 100644--- a/apps/docs/components/GuidesTableOfContents.tsx+++ b/apps/docs/components/GuidesTableOfContents.tsx@@ -128,8 +128,6 @@ const GuidesTableOfContents = ({// eslint-disable-next-line react-hooks/exhaustive-deps}, [hash, JSON.stringify(displayedList)])- if (!displayedList.length) return-const tocVideoPreview = `https://img.youtube.com/vi/${video}/0.jpg`return (@@ -140,29 +138,33 @@ const GuidesTableOfContents = ({</div>)}<Feedback key={pathname} />- <span className="block font-mono text-xs uppercase text-foreground px-5 mb-6">- On this page- </span>- <ul className="toc-menu list-none pl-5 text-[0.8rem] grid gap-2">- {displayedList.map((item, i) => (- <li key={`${item.level}-${i}`} className={item.level === 3 ? 'ml-4' : ''}>- <a- href={`#${formatSlug(item.link)}`}- className="text-foreground-lighter hover:text-brand-link transition-colors"- >- {formatTOCHeader(removeAnchor(item.text)).map((x, index) => (- <Fragment key={index}>- {x.type === 'code' ? (- <code className="text-xs border rounded bg-muted">{x.value}</code>- ) : (- x.value- )}- </Fragment>- ))}- </a>- </li>- ))}- </ul>+ {displayedList.length > 0 && (+ <>+ <span className="block font-mono text-xs uppercase text-foreground px-5 mb-6">+ On this page+ </span>+ <ul className="toc-menu list-none pl-5 text-[0.8rem] grid gap-2">+ {displayedList.map((item, i) => (+ <li key={`${item.level}-${i}`} className={item.level === 3 ? 'ml-4' : ''}>+ <a+ href={`#${formatSlug(item.link)}`}+ className="text-foreground-lighter hover:text-brand-link transition-colors"+ >+ {formatTOCHeader(removeAnchor(item.text)).map((x, index) => (+ <Fragment key={index}>+ {x.type === 'code' ? (+ <code className="text-xs border rounded bg-muted">{x.value}</code>+ ) : (+ x.value+ )}+ </Fragment>+ ))}+ </a>+ </li>+ ))}+ </ul>+ </>+ )}</div>)}diff --git a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsxindex 24358664a09..12f82dcb75d 100644--- a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx@@ -1,4 +1,4 @@-import { Clock, Heart, Server, SquareStack } from 'lucide-react'+import { Clock, Heart, Server, SquareStack, Telescope } from 'lucide-react'import {IconBranching,@@ -87,6 +87,8 @@ function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, creturn <IconGitHub width={width} height={height} className={className} />case 'support':return <IconSupport width={width} height={height} className={className} />+ case 'telemetry':+ return <Telescope width={width} height={height} className={className} />case 'troubleshooting':return <IconTroubleshooting width={width} height={height} className={className} />case 'contributing':diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 59d581a6436..dffb0748538 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -119,10 +119,15 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [level: 'platform',},{- label: 'Monitoring & Troubleshooting',+ label: 'Telemetry',+ icon: 'telemetry',+ href: '/guides/telemetry',+ level: 'telemetry',+ },+ {+ label: 'Troubleshooting',icon: 'troubleshooting',- href: '/guides/monitoring-troubleshooting',- level: 'troubleshooting',+ href: '/guides/troubleshooting',},],],@@ -212,12 +217,6 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [label: 'Resources',menuItems: [[- /*- {- label: 'Troubleshooting',- icon: 'contributing',- href: '/guides/troubleshooting',- }, */{label: 'Glossary',icon: 'resources',@@ -2096,71 +2095,35 @@ export const platform: NavMenuConstant = {],}-export const monitoring_troubleshooting: NavMenuConstant = {- icon: 'troubleshooting',- title: 'Monitor & Fix',- url: '/guides/monitoring-troubleshooting',+export const telemetry: NavMenuConstant = {+ icon: 'telemetry',+ title: 'Telemetry',+ url: '/guides/telemetry',items: [- { name: 'Overview', url: '/guides/monitoring-troubleshooting' },+ { name: 'Overview', url: '/guides/telemetry' },{name: 'Logging & observability',url: undefined,items: [{name: 'Logging',- url: '/guides/monitoring-troubleshooting/logs',+ url: '/guides/telemetry/logs',},{name: 'Advanced log filtering',- url: '/guides/monitoring-troubleshooting/advanced-log-filtering',+ url: '/guides/telemetry/advanced-log-filtering',},{name: 'Log drains',- url: '/guides/monitoring-troubleshooting/log-drains',+ url: '/guides/telemetry/log-drains',},{name: 'Metrics',- url: '/guides/monitoring-troubleshooting/metrics',+ url: '/guides/telemetry/metrics',},{name: 'Sentry integration',- url: '/guides/monitoring-troubleshooting/sentry-monitoring',- },- ],- },- {- name: 'Troubleshooting',- url: undefined,- items: [- {- name: 'HTTP and project issues',- url: '/guides/monitoring-troubleshooting/troubleshooting',- },- {- name: 'High disk IO consumption',- url: '/guides/monitoring-troubleshooting/exhaust-disk-io',- },- {- name: 'High CPU usage',- url: '/guides/monitoring-troubleshooting/exhaust-cpu',- },- {- name: 'High RAM usage',- url: '/guides/monitoring-troubleshooting/exhaust-ram',- },- {- name: 'High swap usage',- url: '/guides/monitoring-troubleshooting/exhaust-swap',- },- ],- },- {- name: 'Status codes',- url: undefined,- items: [- {- name: 'HTTP status codes',- url: '/guides/monitoring-troubleshooting/http-status-codes',+ url: '/guides/telemetry/sentry-monitoring',},],},diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex fa77229f999..d3c64edc937 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -19,7 +19,7 @@ enum MenuId {Queues = 'queues',Platform = 'platform',Deployment = 'deployment',- MonitoringTroubleshooting = 'monitoring_troubleshooting',+ Telemetry = 'telemetry',Resources = 'resources',SelfHosting = 'self_hosting',Integrations = 'integrations',@@ -92,7 +92,7 @@ const menus: Menu[] = [type: 'guide',},{- id: MenuId.MonitoringTroubleshooting,+ id: MenuId.Telemetry,type: 'guide',},{diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.tsindex 94c31dd2b0d..6636d436862 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts@@ -125,8 +125,8 @@ export const getMenuId = (pathname: string | null) => {return MenuId.Integrationscase pathname.startsWith('local-development'):return MenuId.LocalDevelopment- case pathname.startsWith('monitoring-troubleshooting'):- return MenuId.MonitoringTroubleshooting+ case pathname.startsWith('telemetry'):+ return MenuId.Telemetrycase pathname.startsWith('platform'):return MenuId.Platformcase pathname.startsWith('queues'):diff --git a/apps/docs/content/guides/monitoring-troubleshooting.mdx b/apps/docs/content/guides/monitoring-troubleshooting.mdxdeleted file mode 100644index bbe769214af..00000000000--- a/apps/docs/content/guides/monitoring-troubleshooting.mdx+++ /dev/null@@ -1,9 +0,0 @@-----title: Monitoring & Troubleshooting------Monitoring your project can help you identify issues and fix them quickly. This section provides guidance on:--- Monitoring errors-- Working with logs in Supabase-- Troubleshooting common issues with the platformdiff --git a/apps/docs/content/guides/telemetry.mdx b/apps/docs/content/guides/telemetry.mdxnew file mode 100644index 00000000000..8fb40504b9f--- /dev/null+++ b/apps/docs/content/guides/telemetry.mdx@@ -0,0 +1,13 @@+---+title: Telemetry+---++Telemetry helps you understand what’s happening inside your app by collecting logs, metrics, and traces.++- **Logs** capture individual events, such as errors or warnings, providing details about what happened at a specific moment.+- **Metrics** track numerical data over time, like request latency or database query performance, helping you spot trends.+- **Traces** show the flow of a request through different services, helping you debug slow or failing operations.++Supabase is working towards full support for the [OpenTelemetry](https://opentelemetry.io/) standard, making it easier to integrate with observability tools.++This section provides guidance on telemetry in Supabase, including how to work with Supabase Logs.diff --git a/apps/docs/content/guides/monitoring-troubleshooting/advanced-log-filtering.mdx b/apps/docs/content/guides/telemetry/advanced-log-filtering.mdxsimilarity index 100%rename from apps/docs/content/guides/monitoring-troubleshooting/advanced-log-filtering.mdxrename to apps/docs/content/guides/telemetry/advanced-log-filtering.mdxdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/log-drains.mdx b/apps/docs/content/guides/telemetry/log-drains.mdxsimilarity index 100%rename from apps/docs/content/guides/monitoring-troubleshooting/log-drains.mdxrename to apps/docs/content/guides/telemetry/log-drains.mdxdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/logs.mdx b/apps/docs/content/guides/telemetry/logs.mdxsimilarity index 100%rename from apps/docs/content/guides/monitoring-troubleshooting/logs.mdxrename to apps/docs/content/guides/telemetry/logs.mdxdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/metrics.mdx b/apps/docs/content/guides/telemetry/metrics.mdxsimilarity index 100%rename from apps/docs/content/guides/monitoring-troubleshooting/metrics.mdxrename to apps/docs/content/guides/telemetry/metrics.mdxdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/sentry-monitoring.mdx b/apps/docs/content/guides/telemetry/sentry-monitoring.mdxsimilarity index 100%rename from apps/docs/content/guides/monitoring-troubleshooting/sentry-monitoring.mdxrename to apps/docs/content/guides/telemetry/sentry-monitoring.mdxdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-disk-io.mdx b/apps/docs/content/troubleshooting/exhaust-disk-io.mdxsimilarity index 95%rename from apps/docs/content/guides/monitoring-troubleshooting/exhaust-disk-io.mdxrename to apps/docs/content/troubleshooting/exhaust-disk-io.mdxindex 8e48f668237..828814d24d0 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-disk-io.mdx+++ b/apps/docs/content/troubleshooting/exhaust-disk-io.mdx@@ -1,7 +1,8 @@----id: 'exhaust-disk-io'-title: 'High Disk IO Consumption'-description: 'Understand Disk IO, what can deplete your Disk IO Budget and what you can do about it.'+title = "High Disk I/O"+topics = [ "platform" ]+keywords = [ "I/O", "disk", "performance" ]+database_id = "4844905d-1456-44a1-858e-7a4995e5054c"---## Understanding disk IO and disk IO budgetdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-ram.mdx b/apps/docs/content/troubleshooting/exhaust-ram.mdxsimilarity index 93%rename from apps/docs/content/guides/monitoring-troubleshooting/exhaust-ram.mdxrename to apps/docs/content/troubleshooting/exhaust-ram.mdxindex e82c0f25aae..8fad5d819e4 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-ram.mdx+++ b/apps/docs/content/troubleshooting/exhaust-ram.mdx@@ -1,11 +1,10 @@----id: 'exhaust-ram'-title: 'High Memory Usage'-description: 'Learn what high RAM usage could mean for your Supabase instance and what could have caused it.'+title = "High RAM usage"+topics = [ "platform" ]+keywords = [ "memory", "RAM", "performance" ]+database_id = "a589d411-ee50-455a-892e-526914ddb40d"----Learn what high RAM usage could mean for your Supabase instance and what could have caused it.-<Admonition type="note">High memory usage doesn't necessarily mean that your instance is at risk. Memory that is used for caching and buffers improves data access speed. But if you notice less performance alongside high memory usage, your memory usage might be unhealthy.diff --git a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-swap.mdx b/apps/docs/content/troubleshooting/exhaust-swap.mdxsimilarity index 96%rename from apps/docs/content/guides/monitoring-troubleshooting/exhaust-swap.mdxrename to apps/docs/content/troubleshooting/exhaust-swap.mdxindex ae4125cacf7..32387aabed8 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-swap.mdx+++ b/apps/docs/content/troubleshooting/exhaust-swap.mdx@@ -1,7 +1,8 @@----id: 'exhaust-swap'-title: 'High swap usage'-description: 'Learn what high Swap usage could mean for your Supabase instance and what could have caused it.'+title = "High swap usage"+topics = [ "database", "platform" ]+keywords = [ "swap", "performance" ]+database_id = "2db43a09-792b-484b-b97d-5d96a405b525"---Learn what high Swap usage means, what can cause it, and how to solve it.diff --git a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-cpu.mdx b/apps/docs/content/troubleshooting/high-cpu-usage.mdxsimilarity index 94%rename from apps/docs/content/guides/monitoring-troubleshooting/exhaust-cpu.mdxrename to apps/docs/content/troubleshooting/high-cpu-usage.mdxindex 9f3bd379e4d..ca417040d98 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/exhaust-cpu.mdx+++ b/apps/docs/content/troubleshooting/high-cpu-usage.mdx@@ -1,7 +1,8 @@----id: 'exhaust-cpu'-title: 'High CPU Usage'-description: 'Learn what high CPU usage could mean for your Supabase instance and what could have caused it.'+title = "High CPU usage"+topics = [ "platform" ]+keywords = [ "CPU" ]+database_id = "3d1bb799-453f-4a6c-9fdc-056f15bec88c"---Learn what high CPU usage could mean for your Supabase instance and what could have caused it.diff --git a/apps/docs/content/guides/monitoring-troubleshooting/troubleshooting.mdx b/apps/docs/content/troubleshooting/http-api-issues.mdxsimilarity index 93%rename from apps/docs/content/guides/monitoring-troubleshooting/troubleshooting.mdxrename to apps/docs/content/troubleshooting/http-api-issues.mdxindex bbb71cf897b..efd5cbc677f 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/troubleshooting.mdx+++ b/apps/docs/content/troubleshooting/http-api-issues.mdx@@ -1,14 +1,17 @@----id: 'troubleshooting'-title: 'Troubleshooting'-description: 'Diagnosing and fixing issues with your hosted Supabase project.'----+title = "Diagnose HTTP API issues"+topics = [ "platform" ]+keywords = [ "API", "REST API", "GraphQL", "HTTP" ]+database_id = "e9fb853f-a37f-442a-b180-4aefd234a385"-Learn how to diagnose and fix common issues with your Supabase project.+[[errors]]+code = "5xx"-## HTTP API issues+[[errors]]+message = "Connections refused"+----Symptoms:+Symptoms of HTTP API issues include:- HTTP timeouts- 5xx response codesdiff --git a/apps/docs/content/guides/monitoring-troubleshooting/http-status-codes.mdx b/apps/docs/content/troubleshooting/http-status-codes.mdxsimilarity index 88%rename from apps/docs/content/guides/monitoring-troubleshooting/http-status-codes.mdxrename to apps/docs/content/troubleshooting/http-status-codes.mdxindex 960da4b725b..b81da31d103 100644--- a/apps/docs/content/guides/monitoring-troubleshooting/http-status-codes.mdx+++ b/apps/docs/content/troubleshooting/http-status-codes.mdx@@ -1,7 +1,24 @@----id: 'http-status-codes'-title: 'HTTP Status Codes'-description: 'HTTP Status Codes used by the Supabase platform'+title = "HTTP status codes"+topics = [ "platform" ]+keywords = [ "HTTP" ]+database_id = "b98c7288-8c38-4dc2-8591-d18ea9eb4cbc"++[[errors]]+http_status_code = 402+message = "service restriction"++[[errors]]+http_status_code = 540+message = "project paused"++[[errors]]+http_status_code = 544+message = "project API gateway timeout"++[[errors]]+http_status_code = 546+message = "Edge Functions resource limit"---The Supabase platform offers several HTTP APIs for each project. These APIs can use the status codes to indicate the state of the project, and the request being processed. The status codes returned for requests can be access via the [logs explorer](../platform/logs#logs-explorer).diff --git a/apps/docs/features/docs/GuidesMdx.utils.tsx b/apps/docs/features/docs/GuidesMdx.utils.tsxindex 63ab629dc43..04c56ce7dd2 100644--- a/apps/docs/features/docs/GuidesMdx.utils.tsx+++ b/apps/docs/features/docs/GuidesMdx.utils.tsx@@ -33,13 +33,13 @@ const PUBLISHED_SECTIONS = [// 'graphql', -- technically published, but completely federated'integrations','local-development',- 'monitoring-troubleshooting','platform','queues','realtime','resources','self-hosting','storage',+ 'telemetry',] as constconst getGuidesMarkdownInternal = async (slug: string[]) => {diff --git a/apps/docs/features/docs/Troubleshooting.script.mjs b/apps/docs/features/docs/Troubleshooting.script.mjsindex cd13d7d48c9..b018bc804c0 100644--- a/apps/docs/features/docs/Troubleshooting.script.mjs+++ b/apps/docs/features/docs/Troubleshooting.script.mjs@@ -272,7 +272,13 @@ function addCanonicalUrl(entry) {* @param {string} str*/function escapeGraphQlString(str) {- return str.replace(/"/g, '\\"')+ return str+ .replace(/\\/g, '\\\\')+ .replace(/`/g, '\\`')+ .replace(/"/g, '\\"')+ .replace(/\n/g, '\\n')+ .replace(/\r/g, '\\r')+ .replace(/\t/g, '\\t')}/**diff --git a/apps/docs/features/docs/Troubleshooting.ui.client.tsx b/apps/docs/features/docs/Troubleshooting.ui.client.tsxindex 9ba084e6b74..c125d0e7dd1 100644--- a/apps/docs/features/docs/Troubleshooting.ui.client.tsx+++ b/apps/docs/features/docs/Troubleshooting.ui.client.tsx@@ -24,7 +24,6 @@ import {} from 'ui-patterns/multi-select'import { type ITroubleshootingMetadata } from './Troubleshooting.utils'import {- formatError,TROUBLESHOOTING_CONTAINER_ID,TROUBLESHOOTING_DATA_ATTRIBUTES,troubleshootingSearchParams,@@ -388,17 +387,17 @@ function TroubleshootingListControllerInternal() {selectedTags.length === 0) {allEntries.current.forEach((entry) => {- entry.hidden = false+ entry.style.removeProperty('display')})} else {allEntries.current.forEach((entry) => {- entry.hidden = !entryMatchesFilter(- entry,- selectedProducts,- selectedErrorCodes,- selectedTags,- searchState- )+ if (+ entryMatchesFilter(entry, selectedProducts, selectedErrorCodes, selectedTags, searchState)+ ) {+ entry.style.removeProperty('display')+ } else {+ entry.style.display = 'none'+ }})}}, [searchState, selectedProducts, selectedErrorCodes, selectedTags])diff --git a/apps/docs/features/docs/Troubleshooting.ui.tsx b/apps/docs/features/docs/Troubleshooting.ui.tsxindex 80693679204..fa71e5c4789 100644--- a/apps/docs/features/docs/Troubleshooting.ui.tsx+++ b/apps/docs/features/docs/Troubleshooting.ui.tsx@@ -29,56 +29,56 @@ export async function TroubleshootingPreview({ entry }: { entry: ITroubleshootinreturn (<div- className="relative border-b py-4"+ className="relative border-b py-4 flex flex-col gap-y-2 @4xl/troubleshooting:grid @4xl/troubleshooting:gap-y-0 grid-cols-subgrid @4xl/troubleshooting:col-span-3 gap-x-4"aria-labelledby={`troubleshooting-entry-title-${entry.data.database_id}`}{...attributes}>- <div className="flex flex-wrap items-start gap-x-2 gap-y-4 justify-between">- <div className="max-w-[60%] flex flex-col gap-2">- <Link- href={`/guides/troubleshooting/${getArticleSlug(entry)}`}- className={cn('visited:text-foreground-lighter', 'before:absolute before:inset-0')}- >- <h3- id={`troubleshooting-entry-title-${entry.data.database_id}`}- className="text-lg truncate"- >- {entry.data.title}- </h3>- </Link>- {entry.data.errors?.length > 0 && (- <span className="text-xs text-foreground-lighter">- {entry.data.errors- .map(formatError)- .filter(Boolean)- .map((error, index) => (- <>- <code key={index}>{error}</code>- {index < entry.data.errors.length - 1 ? ', ' : ''}- </>- ))}- </span>+ <div className="flex flex-col gap-2">+ <Link+ href={`/guides/troubleshooting/${getArticleSlug(entry)}`}+ className={cn(+ 'visited:text-foreground-lighter',+ 'before:absolute before:inset-0',+ 'max-w-[90vw]')}- </div>- <div className="basis-60 flex-shrink-0 flex-grow-0 flex flex-row gap-2">- <div className="basis-40 flex-shrink-0 flex-grow-0 flex flex-wrap gap-0.5 text-xs">- {entry.data.topics.map((topic) => (- <span key={topic} className="px-2 border rounded-full inline-flex items-center">- {topic[0].toUpperCase() + topic.slice(1)}- </span>- ))}- </div>- <div className="basis-l8 flex-shrink-0 flex-grow-0 truncate text-sm text-foreground-lighter">- {dateUpdated &&- (() => {- const options = { month: 'short', day: 'numeric' } as Intl.DateTimeFormatOptions- if (dateUpdated.getFullYear() !== new Date().getFullYear()) {- options.year = 'numeric'- }- return dateUpdated.toLocaleDateString(undefined, options)- })()}- </div>- </div>+ >+ <h3+ id={`troubleshooting-entry-title-${entry.data.database_id}`}+ className="text-lg @4xl/troubleshooting:truncate gap-x-4"+ >+ {entry.data.title}+ </h3>+ </Link>+ {entry.data.errors?.length > 0 && (+ <span className="text-xs text-foreground-lighter ml-1 @4xl/troubleshooting:ml-0">+ {entry.data.errors+ .map(formatError)+ .filter(Boolean)+ .map((error, index) => (+ <>+ <code key={index}>{error}</code>+ {index < entry.data.errors.length - 1 ? ', ' : ''}+ </>+ ))}+ </span>+ )}+ </div>+ <div className="flex flex-wrap gap-0.5 items-start text-xs">+ {entry.data.topics.map((topic) => (+ <span key={topic} className="px-2 border rounded-full inline-flex items-center">+ {topic[0].toUpperCase() + topic.slice(1)}+ </span>+ ))}+ </div>+ <div className="text-sm text-foreground-lighter ml-2 @4xl/troubleshooting:ml-0">+ {dateUpdated &&+ (() => {+ const options = { month: 'short', day: 'numeric' } as Intl.DateTimeFormatOptions+ if (dateUpdated.getFullYear() !== new Date().getFullYear()) {+ options.year = 'numeric'+ }+ return dateUpdated.toLocaleDateString(undefined, options)+ })()}</div></div>)diff --git a/apps/docs/layouts/MainSkeleton.tsx b/apps/docs/layouts/MainSkeleton.tsxindex 3eaf636e930..b746af56828 100644--- a/apps/docs/layouts/MainSkeleton.tsx+++ b/apps/docs/layouts/MainSkeleton.tsx@@ -54,6 +54,10 @@ const levelsData = {icon: 'edge-functions',name: 'Edge Functions',},+ telemetry: {+ icon: 'telemetry',+ name: 'Telemetry',+ },realtime: {icon: 'realtime',name: 'Realtime',diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.jsindex 3fcfe78f123..fb19cd8a29e 100644--- a/apps/www/lib/redirects.js+++ b/apps/www/lib/redirects.js@@ -2834,6 +2834,41 @@ module.exports = [source: '/docs/guides/database/connecting-to-postgres/serverless-drivers',destination: '/docs/guides/database/connecting-to-postgres',},+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/:path*',+ destination: '/docs/guides/telemetry/:path*',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/troubleshooting',+ destination: '/docs/guides/troubleshooting/http-api-issues',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/exhaust-disk-io',+ destination: '/docs/guides/troubleshooting/exhaust-disk-io',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/exhaust-ram',+ destination: '/docs/guides/troubleshooting/exhaust-ram',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/exhaust-swap',+ destination: '/docs/guides/troubleshooting/exhaust-swap',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/exhaust-cpu',+ destination: '/docs/guides/troubleshooting/high-cpu-usage',+ },+ {+ permanent: true,+ source: '/docs/guides/monitoring-troubleshooting/http-status-codes',+ destination: '/docs/guides/troubleshooting/http-status-codes',+ },{permanent: true,source: '/partners/experts',