You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NuGet.Config
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
<clear />
5
5
<!-- Do not add any additional feeds if new packages are needed they need to come from our azure-sdk-for-net DevOps feed which has an upstream set to nuget.org -->
_logger.LogWarning($"ServiceBus {entityName} '{_entityPath}' was not found.");
96
+
_logger.LogFunctionScaleError($"ServiceBus {entityName} '{_entityPath}' was not found.",_functionId,ex);
94
97
}
95
98
catch(UnauthorizedAccessExceptionex)
96
99
{
97
100
if(TimeToLogWarning())
98
101
{
99
-
_logger.LogWarning(ex,$"Connection string does not have 'Manage Claim' for {entityName} '{_entityPath}'. Unable to determine active message count.");
102
+
_logger.LogFunctionScaleWarning($"Connection string does not have 'Manage Claim' for {entityName} '{_entityPath}'. Unable to determine active message count.",
103
+
_functionId,ex);
100
104
}
101
105
throw;
102
106
}
103
-
catch(Exceptione)
107
+
catch(Exceptionex)
104
108
{
105
-
_logger.LogWarning(e,$"Error querying for Service Bus {entityName} scale");
109
+
_logger.LogFunctionScaleError($"Error querying for Service Bus {entityName} scale",_functionId,ex);
106
110
}
107
111
108
112
longtotalNewMessageCount=0;
@@ -163,19 +167,20 @@ public async Task<ServiceBusTriggerMetrics> GetMetricsAsync()
_logger.LogWarning($"ServiceBus {entityName} '{_entityPath}' was not found.");
170
+
_logger.LogFunctionScaleError($"ServiceBus {entityName} '{_entityPath}' was not found.",_functionId,ex);
167
171
}
168
-
catch(UnauthorizedAccessException)// When manage claim is not used on Service Bus connection string
172
+
catch(UnauthorizedAccessExceptionex)// When manage claim is not used on Service Bus connection string
169
173
{
170
174
if(TimeToLogWarning())
171
175
{
172
-
_logger.LogWarning($"Connection string does not have Manage claim for {entityName} '{_entityPath}'. Failed to get {entityName} description to "+
173
-
$"derive {entityName} length metrics. Falling back to using first message enqueued time.");
176
+
_logger.LogFunctionScaleWarning($"Connection string does not have Manage claim for {entityName} '{_entityPath}'. Failed to get {entityName} description to "+
177
+
$"derive {entityName} length metrics. Falling back to using first message enqueued time.",
178
+
_functionId,ex);
174
179
}
175
180
}
176
-
catch(Exceptione)
181
+
catch(Exceptionex)
177
182
{
178
-
_logger.LogWarning($"Error querying for Service Bus {entityName} scale status: {e.Message}");
183
+
_logger.LogFunctionScaleError($"Error querying for Service Bus {entityName} scale status",_functionId,ex);
179
184
}
180
185
181
186
// Path for connection strings with no manage claim
_logger.LogInformation($"Target worker count for function '{_functionId}' is '{targetWorkerCount}' (EntityPath='{_entityPath}', MessageCount ='{messageCount}', Concurrency='{concurrency}').");
$"Target worker count for function '{_functionName}' is '{targetWorkerCount}' (EntityPath='{_entityPath}', MessageCount ='{messageCount}', Concurrency='{concurrency}').");
0 commit comments