Commit Graph
8 Commits
Author SHA1 Message Date
d11ae1a1ed docs(functions): update logging page for new logs viewer, clarify bodies are not logged (#53315)
<!-- claude-slack-attribution -->
_Requested by **Kalleby Santos** · [Slack
thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1794485219774189?thread_ts=1794485219.774189&cid=C0BB4MAJW58)_

## Problem

**Before:** The Edge Functions logging page said the **Invocations**
view includes request and response "headers, body, status codes, and
execution duration". Customers asked where to find body values, but
bodies are not retained, and only some headers are kept. The page also
described separate **Invocations** and **Logs** views with an outdated
screenshot.

**After:** The page says plainly that request and response bodies are
not logged or retained, and that only a subset of headers is kept (with
the list from the `function_edge_logs` schema). It now describes the
current viewer: Edge Functions > a function > **Logs** tab, with one
list of invocations and console logs/events, the filter bar (time range,
log type, level, event message), **Live**, and the detail panel
(**Overview**, **Raw JSON**, **Timeline**, **User**). Existing content
(console methods, event types, limits, header logging tip) is unchanged.

## Solution

Updates `apps/docs/content/guides/functions/logging.mdx` to remove the
incorrect body claim and document the new logs viewer.

**How:** UI names and behavior were checked against the Studio source
(`apps/studio/components/interfaces/UnifiedLogs`, `Functions`, and the
`functions/[functionSlug]/logs` page). The header list comes from the
`function_edge_logs` schema in `packages/shared-data/log-constants.ts`.

**Skipped:** No new screenshots, since I had no demo project with a
deployed function to capture them from. I removed the outdated
`function-logs.png` from this page because the text no longer matches
it. The same image is still used in `error-handling.mdx` (Error
monitoring section) and is still outdated there. I left the file and
that page alone.

**Unverified / for review:**

- The request and response header lists are taken from the
`function_edge_logs` schema in the repo. Please confirm they match what
is actually retained on the logflare source.
- The retention statement for bodies comes from the request, not from a
code path in this repo.
- The new viewer is the "Updated Logs interface" feature preview, which
is on by default on the platform. I added a short note for users who
turned it off (legacy **Invocations** and **Logs** tabs). I did not
verify the legacy view in detail.
- The **Timeline** tab and **Attributes** sections only render when the
related logs backend and metadata features are enabled, so some users
may not see them.

## Review instructions

1. Open the preview of `/docs/guides/functions/logging`.
2. Check that no sentence claims invocation logs include a request or
response body.
3. Compare the "Explore logs in the Dashboard" section against a
function's **Logs** tab in the Dashboard.
4. Confirm the header lists under "What invocation logs contain" are
correct.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
(Not run; I followed the style guide manually. Prettier check passed
with equivalent standalone options.)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01M8V2QRDBurL1TZmpGGgjDK)_

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com>
2026-11-12 19:33:39 +00:00
Kody JacksonandClaude Haiku 5.5 804a3c0969 chore(docs) - add in unique titles where appropriate (#52452)
## Problem

Dupe titles in docs.

## Solution

Adds unique titles where appropriate + high confidence.

## Preview links

| Before | After |
|---|---|
| [Database Migrations \| Supabase
Docs](https://supabase.com/docs/guides/deployment/database-migrations) |
[Deploy Database Migrations \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/deployment/database-migrations)
|
| [Database Migrations \| Supabase
Docs](https://supabase.com/docs/guides/local-development/database-migrations)
| [Local Database Migrations \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/local-development/database-migrations)
|
| [Limits \| Supabase
Docs](https://supabase.com/docs/guides/storage/uploads/file-limits) |
[Storage Upload Limits \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/uploads/file-limits)
|
| [Limits \| Supabase
Docs](https://supabase.com/docs/guides/functions/limits) | [Edge
Functions Limits \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/functions/limits)
|
| [Error Codes \| Supabase
Docs](https://supabase.com/docs/guides/storage/debugging/error-codes) |
[Storage Error Codes \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/debugging/error-codes)
|
| [Views \| Supabase
Docs](https://supabase.com/docs/guides/database/views) | [Database Views
\| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/database/views)
|
| [Self-Hosting \| Supabase
Docs](https://supabase.com/docs/reference/self-hosting-auth/introduction)
| [Self-Hosting Auth \| Supabase Docs
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference/self-hosting-auth/introduction)
|
| [Supabase Docs](https://supabase.com/docs/reference) | [Supabase API
references
✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference)
|

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-29 14:44:55 -05:00
CharisandChris Chinchilla 47705a8968 chore: replace all supabase urls with relative urls (#38537)
* fix: rewrite relative URLs when syncing to GitHub discussion

Relative URLs back to supabse.com won't work in GitHub discussions, so
rewrite them back to absolute URLs starting with https://supabase.com

* fix: replace all supabase urls with relative urls

* chore: add linting for relative urls

* chore: bump linter version

* Prettier

---------

Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
2025-09-09 12:54:33 +00:00
Lydia HallieandCharis a26c01217d Update Edge Functions docs (#36798)
* Update Environment Variables docs

* Update Dependencies docs

* Add Function Configuration d ocs

* Add custom Configuration section in Navigation

* Add Error Handling section

* Add new HTTP Methods section

* Update Deno 2 Guide

* Update nav

* Rm deno2 nav

* Update Deploy section

* Update CI/CD section

* Update Logging

* Update Testing

* Update Local Debugging

* Update Troubleshooting

* Update Nav

* Update CLI Quickstart

* Update Dashboard Quickstart

* Update Development Environment

* Update Nav

* Fix links

* Update apps/docs/content/guides/functions/quickstart-dashboard.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/development-environment.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/development-environment.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/quickstart.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Use $CodeSample for multi-root example

* Use tocVideo instead of video embed

* Rm typo

* Switch Quickstart ordering

* Rephrase Docker requirement for deployment

* Add Project Structure section

* style: fix docs lint issues

* Update Regional Invocations

* Update Error Handing

* Fix linting

* Fixes

* Remove duplicate sections

* Update Auth integration

* Update Storage

* Update Database/Postgres

* Update Nav

* Update Background Tasks

* Update Ephemeral Storage

* Update Websockets

* Update Routing

* Update wasm

* Update AI models

* Fix linting issues

* Update apps/docs/content/guides/functions/ai-models.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/ai-models.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/ai-models.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/storage-caching.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/websockets.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/websockets.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/functions/ai-models.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Rm unnecessary lines

* Rm wrong example

* Fix typo

* Rm deno2

* Move CICD to deployment and rename routing

* Fix whitespace

* rm unnecessary spelling

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-07-10 14:18:01 +00:00
Charis e2fecc0f5d chore(docs linter): bump version (#36715)
* chore(docs linter): bump version

* style: format
2025-07-03 14:46:29 +00:00
Charis 258bc37919 docs: add type hints (#34678) 2025-04-08 13:25:46 -04:00
Charis 4cecae1e09 ci(docs): linter bump version + expand scope (#30860) 2024-12-04 20:37:49 +00:00
Lakshan Perera cf0ed10e1f fix: update edge function logging & troubleshooting guides (#27265) 2024-06-14 11:50:31 +02:00