Skip to content

Change LogFunctionScaleVote log level from Debug to Information#3189

Merged
alrod merged 1 commit into
devfrom
alrod/scale-vote-log-level-info
Mar 20, 2026
Merged

Change LogFunctionScaleVote log level from Debug to Information#3189
alrod merged 1 commit into
devfrom
alrod/scale-vote-log-level-info

Conversation

@alrod

@alrod alrod commented Mar 19, 2026

Copy link
Copy Markdown
Member

Summary

Change LogFunctionScaleVote log level from Debug to Information in ScaleLoggerExtension.cs.

Motivation

Scale vote logs should be visible to customers at the default Information log level. update LogFunctionScaleVote in the WebJobs SDK (ScaleLoggerExtension.cs) to log at Information instead of Debug — that way customers continue seeing scale votes as before, migrating the vote detail logs to LogFunctionScaleVote will follow in phase 2 once the SDK log level fix ships.

This was identified during review of the extension PRs that adopt LogFunctionScaleVote for SC App Insights diagnostics:

Changes

  • All 5 LogFunctionScaleVote LoggerMessage.Define delegates changed from LogLevel.Debug to LogLevel.Information
  • No API surface change - only log level behavior

Impact

  • SC OpenTelemetry logger: No impact - intercepts via EventId 8002 regardless of log level
  • RDS customers (EP with RDS, Flex): Scale votes remain visible at default Information filter
  • ScaleManager: The existing LogFunctionScaleVote call (line 196) will now log at Information instead of Debug, which is desirable

Comment thread src/Microsoft.Azure.WebJobs.Host/Scale/ScaleLoggerExtension.cs
Scale vote logs should be visible to customers at the default Information log
level. The previous Debug level caused vote details to be invisible in App
Insights for customers using RDS (EP with RDS, Flex Consumption), where the
host's ILogger goes directly to their Application Insights.

The SC's OpenTelemetry logger intercepts these events via EventId 8002,
so the level change has no impact on the SC-side App Insights feature.
@alrod alrod force-pushed the alrod/scale-vote-log-level-info branch from c22e2c8 to 0a2e7ad Compare March 20, 2026 21:36
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.

2 participants