Skip to content

feat(landing): Python logging levels guide - #1574

Merged
JeremyFunk merged 9 commits into
mainfrom
feat/guide-python-logging-levels
Oct 31, 2026
Merged

JeremyFunk merged 9 commits into
mainfrom
feat/guide-python-logging-levels

chore(landing): combined guide highlighter languages

3e7c5ed
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review completed Oct 31, 2026 in 1m 48s

Confidence 6/10 · 1 issue to address

🟡 Confidence 6/10 · needs attention. Held at 6 because a correctness warning is open.
1 warning −1 · tests missing −2 · risk medium · 1 defect fixed in earlier rounds

Adds the Python logging levels guide, new console/python-logging/loguru-output highlighter modes and a LanguageTabs storage-key prop; the snippets and token usage check out. Still open: the earlier /guides/loguru link, which 404s until the parallel guide merges.

  • highlight gains console, python-logging, loguru-output, nrql, shell, json, javascript modes
  • LanguageTabs takes a group prop as the tab storage key
  • New /guides/python-logging-levels page, listed on /guides and in llms.txt
  • instrumentation-python.md now says to call setLevel instead of basicConfig after the telemetry handler

Before merge

Still open from earlier reviews

Production impact

Production traffic of the changed files (last 7 days)
File Calls/day Busiest operations
apps/landing/src/pages/guides/python-logging-levels.astro 59k maple 59k/day, 83.1% err
Ingest cost of new log lines
  • apps/landing/src/pages/guides/python-logging-levels.astro:41: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:42: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:44: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:66: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:67: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:90: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:91: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:105: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:106: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
  • apps/landing/src/pages/guides/python-logging-levels.astro:131: If this logs once per call, about 475 MB/month: the file's operations run 59k times a day.
What was checked
  • Ran the new highlighter modes on the page's snippets with bun: no throw, escaping and level spans intact
  • --severity-*, --warning and --chart-* all resolve from packages/ui/src/styles/tokens.css:94-100,175
  • Guide's https://ingest.maple.dev/v1/logs and Authorization: Bearer match docs/guides/instrumentation-python.md:49

3e7c5ed · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.