Skip to content

Conversation

@alrod
Copy link
Member

@alrod alrod commented Nov 14, 2025

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

Copilot AI review requested due to automatic review settings November 14, 2025 00:11
Copilot finished reviewing on behalf of alrod November 14, 2025 00:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces custom scaling logs with WebJobs extension methods to standardize logging for EventHubs scaling operations.

  • Refactored logging in EventHubsTargetScaler to use LogFunctionScaleVote extension method
  • Updated error logging in EventHubMetricsProvider to use LogFunctionScaleError extension method
  • Removed redundant try-catch blocks that were previously used only for logging warnings
  • Updated Microsoft.Azure.WebJobs package dependencies to version 3.0.42-dev to enable the new logging extension methods

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
EventHubsTargetScaler.cs Consolidated two separate log statements into a single LogFunctionScaleVote call with concatenated details string
EventHubMetricsProvider.cs Replaced LogWarning with LogFunctionScaleError and removed try-catch blocks that only logged warnings without handling exceptions
Packages.Data.props Updated Microsoft.Azure.WebJobs packages to version 3.0.42-dev to support new logging extension methods
NuGet.Config Added local package source for development/testing purposes

@alrod alrod force-pushed the alrod/replace-logs-eh branch 2 times, most recently from 076ca2a to be2e16a Compare November 15, 2025 00:52
@alrod alrod requested a review from mathewc November 15, 2025 00:53
@alrod alrod force-pushed the alrod/replace-logs-eh branch from be2e16a to 729774e Compare November 18, 2025 01:20
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.

3 participants