Skip to content

docs: warn against adding logs inside the logs pipeline#1307

Merged
lym953 merged 2 commits into
mainfrom
yiming.luo/agents-logs-pipeline-caution
Jul 18, 2026
Merged

docs: warn against adding logs inside the logs pipeline#1307
lym953 merged 2 commits into
mainfrom
yiming.luo/agents-logs-pipeline-caution

Conversation

@lym953

@lym953 lym953 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Overview

Add a Gotcha in AGENTS.md warning the agent against adding logging in logging pipeline, as this may cause an infinite loop and produce a ton of logs.

The extension re-ingests its own stdout/stderr as logs, so logging while
handling a log feeds back through the same pipeline and can amplify into a
flood (worst at DD_LOG_LEVEL=debug). Document this gotcha for agents.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jul 17, 2026

Copy link
Copy Markdown

Pipelines  Tests

Unblock PR with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/datadog-lambda-extension | e2e-test-status (amd64)   View in Datadog   GitLab

ℹ️ Info

🔄 Datadog auto-retried 1 job - 1 passed on retry View in Datadog

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6a5e8f1 | Docs | Datadog PR Page | Give us feedback!

Condense the warning about re-ingesting logs while logging inside the logs
pipeline, keeping the same guidance more concise.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@lym953 lym953 changed the title docs(agents): warn against adding logs inside the logs pipeline docs: warn against adding logs inside the logs pipeline Jul 17, 2026
@lym953
lym953 marked this pull request as ready for review July 17, 2026 19:23
@lym953
lym953 requested a review from a team as a code owner July 17, 2026 19:23
@lym953
lym953 requested review from Copilot and duncanista and removed request for Copilot July 17, 2026 19:23
@lym953
lym953 merged commit 5e3fb85 into main Jul 18, 2026
61 of 63 checks passed
@lym953
lym953 deleted the yiming.luo/agents-logs-pipeline-caution branch July 18, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants