Suppress polling logs by event name - #11947
Open
Rohit Ranjan (RohitRanjanMS) wants to merge 8 commits into
Open
Rohit Ranjan (RohitRanjanMS) wants to merge 8 commits into
Rohit Ranjan (RohitRanjanMS) wants to merge 8 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Copilot started reviewing on behalf of
Rohit Ranjan (RohitRanjanMS)
August 27, 2026 07:10
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the existing log-category suppression filter to reduce high-volume polling noise by dropping Debug/Trace logs for additional well-known listener categories, while preserving Information+ events. It builds on the earlier telemetry noise suppression work from #11603.
Changes:
- Added four additional polling-related logging categories to the suppressed-category set (Debug/Trace only).
- Expanded unit test coverage to assert suppression behavior (Debug/Trace suppressed; Information+ allowed) for the newly added categories.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/WebJobs.Script/Extensions/ScriptLoggingBuilderExtensions.cs |
Adds new high-volume polling categories to the suppression allowlist (Info+) / denylist (Debug/Trace). |
test/WebJobs.Script.Tests/Extensions/ScriptLoggingBuilderExtensionsTests.cs |
Adds unit test cases validating the new categories are suppressed at Debug/Trace and allowed at Information+. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brett Samblanet (brettsam)
approved these changes
Aug 27, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fc802fbd-2254-4fb7-81a2-58c1da953c68
…-additional-polling-logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue describing the changes in this PR
Follow-up to #11603.
Moves FunctionsLogs noise suppression into
SystemLogger, where category, level, and EventName are available together. The standardILoggingBuilder.AddFiltercallback only receives category and level, so it cannot distinguish individual events — which is why the previous approach had to drop every Debug/Trace log in a category.Suppression is driven by a single declarative table. An empty event list suppresses the whole category; otherwise only the listed EventNames are suppressed:
Host.ExecutorMicrosoft.Azure.WebJobs.EventHubs.EventHubProducerClientImplMicrosoft.Azure.WebJobs.Extensions.Storage.Common.Listeners.QueueListenerGetMessages,BackoffDelayMicrosoft.Azure.WebJobs.Host.Queues.Listeners.QueueListenerGetMessages,BackoffDelayMicrosoft.Azure.WebJobs.Extensions.Storage.Blobs.Listeners.BlobListenerPollBlobContainer,BlobAlreadyProcessed,BlobDoesNotMatchPatternAdding a category or event requires only a new line in that table.
Compared to the original approach, this preserves queue/blob listener start/stop lifecycle logs,
HandlingStorageException,BlobMessageEnqueued,ContainerDoesNotExist,FunctionNotFound,BlobHasNoETag, and the other low-volume diagnostics that share these categories.Telemetry data
A 30-minute production
FunctionsLogssample contained ~992.5M Debug/Trace rows. The queue rules cover 13.52% and the blob rules 4.76%; together with the existing Event Hub producer suppression the targeted rules cover ~20.6% of Debug/Trace volume, while the retained blob diagnostics are 3–4 orders of magnitude smaller (for exampleBlobMessageEnqueuedat ~118K).Event Hub
PartitionProcessor(8.87%) and Kafka (2.40%) are intentionally not suppressed. Their Debug logs carry no EventName, so they cannot be filtered without discarding partition lifecycle, checkpoint, batching, and native-initialization diagnostics. Targeting those requires the extensions to emit stable named EventIds first.Scope and safety
SystemLoggersink, so customer-configured providers (Application Insights, OpenTelemetry, console) continue to honorhost.json.Pull request checklist
IMPORTANT: Currently, changes must be backported to the
in-procbranch to be included in Core Tools and non-Flex deployments.in-procbranch is not requiredrelease_notes.md