Skip to content

docs: add observability flags to Quick Start docker command#142

Merged
SantiagoDePolonia merged 3 commits intomainfrom
docs/docker-logging-quickstart
Mar 12, 2026
Merged

docs: add observability flags to Quick Start docker command#142
SantiagoDePolonia merged 3 commits intomainfrom
docs/docker-logging-quickstart

Conversation

@SantiagoDePolonia
Copy link
Copy Markdown
Contributor

@SantiagoDePolonia SantiagoDePolonia commented Mar 12, 2026

Summary

  • Update the primary Quick Start docker run example to include full observability flags (LOGGING_ENABLED, LOGGING_LOG_BODIES, LOG_FORMAT=text, LOGGING_LOG_HEADERS)
  • New users now get logging and request/response capture out of the box
  • The multi-provider docker run example is left unchanged

Test plan

  • Verify the README renders correctly on GitHub
  • Confirm the docker command runs successfully with the new flags

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated Docker Quick Start guide with new logging configuration environment variable options for enhanced control over logging behavior and output format.

Enable logging, body/header capture, and text log format by default
in the primary Quick Start example so new users get full observability
out of the box.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 12, 2026

Warning

Rate limit exceeded

@SantiagoDePolonia has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 12 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: a9bd80a9-39fa-42ee-96e1-0c92de8b5cb8

📥 Commits

Reviewing files that changed from the base of the PR and between 4c68122 and 3669497.

📒 Files selected for processing (2)
  • .env.template
  • docs/getting-started/quickstart.mdx
📝 Walkthrough

Walkthrough

The README.md Quick Start section is updated to include four new Docker environment variable flags for logging configuration (LOGGING_ENABLED, LOGGING_LOG_BODIES, LOG_FORMAT, and LOGGING_LOG_HEADERS), demonstrating additional deployment options alongside the existing OPENAI_API_KEY variable.

Changes

Cohort / File(s) Summary
Documentation Updates
README.md
Added four logging configuration environment variables to the Docker Quick Start example (LOGGING_ENABLED, LOGGING_LOG_BODIES, LOG_FORMAT, LOGGING_LOG_HEADERS).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 Four flags of logging, neat and bright,
In Docker's quick start, shining light!
From headers to bodies, text flows free,
Configuration blooms for all to see! 📝✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: add observability flags to Quick Start docker command' accurately and concisely describes the main change: adding observability-related environment flags to the Quick Start Docker command documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/docker-logging-quickstart
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Add the same LOGGING_ENABLED, LOGGING_LOG_BODIES, LOG_FORMAT, and
LOGGING_LOG_HEADERS flags to the docs quickstart page, matching the
README update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 19-20: The README currently lists LOG_FORMAT and
LOGGING_LOG_HEADERS alongside audit logging flags, creating confusion; update
the docs to separate or annotate LOG_FORMAT (and LOGGING_LOG_HEADERS) as
application log formatting flags rather than audit-log capture settings by
moving them into a distinct "Application logging / log format" subsection or
adding an inline note clarifying they control app-log formatting (e.g.,
LOG_FORMAT) and header inclusion (LOGGING_LOG_HEADERS) instead of audit log
capture.
- Around line 18-20: Quick Start currently enables sensitive request/response
capture by setting LOGGING_LOG_BODIES and LOGGING_LOG_HEADERS; remove those two
env vars from the Quick Start example (leave LOGGING_ENABLED or LOG_FORMAT if
desired) so bodies/headers are not captured by default, and add a separate
“debug/observability” example that demonstrates how to set LOGGING_LOG_BODIES
and LOGGING_LOG_HEADERS along with a clear warning that these may capture
sensitive data; reference the README Quick Start section and the env vars
LOGGING_LOG_BODIES and LOGGING_LOG_HEADERS when making the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2de0593a-1600-423a-87c3-6ee6f798f7f8

📥 Commits

Reviewing files that changed from the base of the PR and between 722d186 and 4c68122.

📒 Files selected for processing (1)
  • README.md

Comment on lines +18 to +20
-e LOGGING_LOG_BODIES=true \
-e LOG_FORMAT=text \
-e LOGGING_LOG_HEADERS=true \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Do not enable body/header audit capture by default in Quick Start.

Line 18 and Line 20 currently turn on potentially sensitive request/response capture out of the box. That is risky for newcomers and can lead to accidental PII/secret retention. Keep Quick Start safe-by-default and move these to an explicit “debug/observability” variant.

Suggested docs patch
 docker run --rm -p 8080:8080 \
   -e LOGGING_ENABLED=true \
-  -e LOGGING_LOG_BODIES=true \
-  -e LOG_FORMAT=text \
-  -e LOGGING_LOG_HEADERS=true \
+  -e LOG_FORMAT=text \
   -e OPENAI_API_KEY="your-openai-key" \
   enterpilot/gomodel
+### Optional: Deep audit logging (debug only)
+```bash
+docker run --rm -p 8080:8080 \
+  -e LOGGING_ENABLED=true \
+  -e LOGGING_LOG_BODIES=true \
+  -e LOGGING_LOG_HEADERS=true \
+  -e OPENAI_API_KEY="your-openai-key" \
+  enterpilot/gomodel
+```
+⚠️ `LOGGING_LOG_BODIES`/`LOGGING_LOG_HEADERS` may capture sensitive data. Enable only in trusted environments.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
-e LOGGING_LOG_BODIES=true \
-e LOG_FORMAT=text \
-e LOGGING_LOG_HEADERS=true \
docker run --rm -p 8080:8080 \
-e LOGGING_ENABLED=true \
-e LOG_FORMAT=text \
-e OPENAI_API_KEY="your-openai-key" \
enterpilot/gomodel
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 18 - 20, Quick Start currently enables sensitive
request/response capture by setting LOGGING_LOG_BODIES and LOGGING_LOG_HEADERS;
remove those two env vars from the Quick Start example (leave LOGGING_ENABLED or
LOG_FORMAT if desired) so bodies/headers are not captured by default, and add a
separate “debug/observability” example that demonstrates how to set
LOGGING_LOG_BODIES and LOGGING_LOG_HEADERS along with a clear warning that these
may capture sensitive data; reference the README Quick Start section and the env
vars LOGGING_LOG_BODIES and LOGGING_LOG_HEADERS when making the change.

Comment on lines +19 to +20
-e LOG_FORMAT=text \
-e LOGGING_LOG_HEADERS=true \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Clarify that LOG_FORMAT is app-log formatting, not audit-log capture.

Line 19 is a valid flag, but in this block it reads like part of the audit logging feature set. Please separate or annotate it to avoid conflating two different configurations.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 19 - 20, The README currently lists LOG_FORMAT and
LOGGING_LOG_HEADERS alongside audit logging flags, creating confusion; update
the docs to separate or annotate LOG_FORMAT (and LOGGING_LOG_HEADERS) as
application log formatting flags rather than audit-log capture settings by
moving them into a distinct "Application logging / log format" subsection or
adding an inline note clarifying they control app-log formatting (e.g.,
LOG_FORMAT) and header inclusion (LOGGING_LOG_HEADERS) instead of audit log
capture.

Document the LOG_FORMAT environment variable in the server
configuration section of .env.template.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SantiagoDePolonia SantiagoDePolonia merged commit 4ab6a04 into main Mar 12, 2026
13 checks passed
@SantiagoDePolonia SantiagoDePolonia deleted the docs/docker-logging-quickstart branch March 22, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant