Skip to content

Commit 81f1d11

Browse files
authored
[Event Hubs Processor] Tune Log Levels for Storage (#22256)
The focus of these changes is to tune the logging level for storage operations in order to reduce the large amount that get emitted for routine and expected operations, such as inspecting and renewing ownership for partitions. These have been moved to `verbose` to reduce noise.
1 parent 97f2a10 commit 81f1d11

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sdk/eventhub/Azure.Messaging.EventHubs.Processor/src/Diagnostics/BlobEventStoreEventSource.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public virtual void BlobsCheckpointStoreCreated(string typeName,
7777
/// <param name="eventHubName">The name of the specific Event Hub the ownership are associated with, relative to the Event Hubs namespace that contains it.</param>
7878
/// <param name="consumerGroup">The name of the consumer group the ownership are associated with.</param>
7979
///
80-
[Event(21, Level = EventLevel.Informational, Message = "Starting to list ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")]
80+
[Event(21, Level = EventLevel.Verbose, Message = "Starting to list ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")]
8181
public virtual void ListOwnershipStart(string fullyQualifiedNamespace,
8282
string eventHubName,
8383
string consumerGroup)
@@ -97,7 +97,7 @@ public virtual void ListOwnershipStart(string fullyQualifiedNamespace,
9797
/// <param name="consumerGroup">The name of the consumer group the ownership are associated with.</param>
9898
/// <param name="ownershipCount">The amount of ownership received from the storage service.</param>
9999
///
100-
[Event(22, Level = EventLevel.Informational, Message = "Completed listing ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were {3} ownership entries were found.")]
100+
[Event(22, Level = EventLevel.Verbose, Message = "Completed listing ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were {3} ownership entries were found.")]
101101
public virtual void ListOwnershipComplete(string fullyQualifiedNamespace,
102102
string eventHubName,
103103
string consumerGroup,
@@ -140,7 +140,7 @@ public virtual void ListOwnershipError(string fullyQualifiedNamespace,
140140
/// <param name="consumerGroup">The name of the consumer group the ownership is associated with.</param>
141141
/// <param name="ownerIdentifier">The identifier of the processor that attempted to claim the ownership for.</param>
142142
///
143-
[Event(24, Level = EventLevel.Informational, Message = "Starting to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
143+
[Event(24, Level = EventLevel.Verbose, Message = "Starting to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
144144
public virtual void ClaimOwnershipStart(string partitionId,
145145
string fullyQualifiedNamespace,
146146
string eventHubName,
@@ -163,7 +163,7 @@ public virtual void ClaimOwnershipStart(string partitionId,
163163
/// <param name="consumerGroup">The name of the consumer group the ownership is associated with.</param>
164164
/// <param name="ownerIdentifier">The identifier of the processor that attempted to claim the ownership for.</param>
165165
///
166-
[Event(25, Level = EventLevel.Informational, Message = "Completed the attempt to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
166+
[Event(25, Level = EventLevel.Verbose, Message = "Completed the attempt to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
167167
public virtual void ClaimOwnershipComplete(string partitionId,
168168
string fullyQualifiedNamespace,
169169
string eventHubName,
@@ -236,7 +236,7 @@ public virtual void OwnershipNotClaimable(string partitionId,
236236
/// <param name="consumerGroup">The name of the consumer group the ownership is associated with.</param>
237237
/// <param name="ownerIdentifier">The identifier of the processor that attempted to claim the ownership for.</param>
238238
///
239-
[Event(28, Level = EventLevel.Informational, Message = "Successfully claimed ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
239+
[Event(28, Level = EventLevel.Verbose, Message = "Successfully claimed ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")]
240240
public virtual void OwnershipClaimed(string partitionId,
241241
string fullyQualifiedNamespace,
242242
string eventHubName,
@@ -257,7 +257,7 @@ public virtual void OwnershipClaimed(string partitionId,
257257
/// <param name="eventHubName">The name of the specific Event Hub the checkpoints are associated with, relative to the Event Hubs namespace that contains it.</param>
258258
/// <param name="consumerGroup">The name of the consumer group the checkpoints are associated with.</param>
259259
///
260-
[Event(29, Level = EventLevel.Informational, Message = "Starting to list checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")]
260+
[Event(29, Level = EventLevel.Verbose, Message = "Starting to list checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")]
261261
public virtual void ListCheckpointsStart(string fullyQualifiedNamespace,
262262
string eventHubName,
263263
string consumerGroup)
@@ -277,7 +277,7 @@ public virtual void ListCheckpointsStart(string fullyQualifiedNamespace,
277277
/// <param name="consumerGroup">The name of the consumer group the checkpoints are associated with.</param>
278278
/// <param name="checkpointCount">The amount of checkpoints received from the storage service.</param>
279279
///
280-
[Event(30, Level = EventLevel.Informational, Message = "Completed listing checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were '{3}' checkpoints found.")]
280+
[Event(30, Level = EventLevel.Verbose, Message = "Completed listing checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were '{3}' checkpoints found.")]
281281
public virtual void ListCheckpointsComplete(string fullyQualifiedNamespace,
282282
string eventHubName,
283283
string consumerGroup,
@@ -319,7 +319,7 @@ public virtual void ListCheckpointsError(string fullyQualifiedNamespace,
319319
/// <param name="eventHubName">The name of the specific Event Hub the checkpoint is associated with, relative to the Event Hubs namespace that contains it.</param>
320320
/// <param name="consumerGroup">The name of the consumer group the checkpoint is associated with.</param>
321321
///
322-
[Event(32, Level = EventLevel.Informational, Message = "Starting to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")]
322+
[Event(32, Level = EventLevel.Verbose, Message = "Starting to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")]
323323
public virtual void UpdateCheckpointStart(string partitionId,
324324
string fullyQualifiedNamespace,
325325
string eventHubName,
@@ -340,7 +340,7 @@ public virtual void UpdateCheckpointStart(string partitionId,
340340
/// <param name="eventHubName">The name of the specific Event Hub the checkpoint is associated with, relative to the Event Hubs namespace that contains it.</param>
341341
/// <param name="consumerGroup">The name of the consumer group the checkpoint is associated with.</param>
342342
///
343-
[Event(33, Level = EventLevel.Informational, Message = "Completed the attempt to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")]
343+
[Event(33, Level = EventLevel.Verbose, Message = "Completed the attempt to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")]
344344
public virtual void UpdateCheckpointComplete(string partitionId,
345345
string fullyQualifiedNamespace,
346346
string eventHubName,
@@ -405,7 +405,7 @@ public virtual void InvalidCheckpointFound(string partitionId,
405405
/// <param name="consumerGroup">The name of the consumer group the checkpoint is associated with.</param>
406406
/// <param name="partitionId">The partition id the specific checkpoint is associated with.</param>
407407
///
408-
[Event(36, Level = EventLevel.Informational, Message = "Starting to retrieve checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'; PartitionId: '{3}'.")]
408+
[Event(36, Level = EventLevel.Verbose, Message = "Starting to retrieve checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'; PartitionId: '{3}'.")]
409409
public virtual void GetCheckpointStart(string fullyQualifiedNamespace,
410410
string eventHubName,
411411
string consumerGroup,
@@ -426,7 +426,7 @@ public virtual void GetCheckpointStart(string fullyQualifiedNamespace,
426426
/// <param name="consumerGroup">The name of the consumer group the checkpoint is associated with.</param>
427427
/// <param name="partitionId">The partition id the specific checkpoint is associated with.</param>
428428
///
429-
[Event(37, Level = EventLevel.Informational, Message = "Completed retrieving checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. PartitionId: '{3}'.")]
429+
[Event(37, Level = EventLevel.Verbose, Message = "Completed retrieving checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. PartitionId: '{3}'.")]
430430
public virtual void GetCheckpointComplete(string fullyQualifiedNamespace,
431431
string eventHubName,
432432
string consumerGroup,

0 commit comments

Comments
 (0)