From 5e11dae103fcaa4116a25edb45a18ac84f65ae1c Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Mon, 28 Jun 2021 16:12:30 -0400 Subject: [PATCH] [Event Hubs Processor] Tune Log Levels for Storage 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. --- .../Diagnostics/BlobEventStoreEventSource.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src/Diagnostics/BlobEventStoreEventSource.cs b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src/Diagnostics/BlobEventStoreEventSource.cs index d83c3aad339d..df42ab2d76d1 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src/Diagnostics/BlobEventStoreEventSource.cs +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src/Diagnostics/BlobEventStoreEventSource.cs @@ -77,7 +77,7 @@ public virtual void BlobsCheckpointStoreCreated(string typeName, /// The name of the specific Event Hub the ownership are associated with, relative to the Event Hubs namespace that contains it. /// The name of the consumer group the ownership are associated with. /// - [Event(21, Level = EventLevel.Informational, Message = "Starting to list ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")] + [Event(21, Level = EventLevel.Verbose, Message = "Starting to list ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")] public virtual void ListOwnershipStart(string fullyQualifiedNamespace, string eventHubName, string consumerGroup) @@ -97,7 +97,7 @@ public virtual void ListOwnershipStart(string fullyQualifiedNamespace, /// The name of the consumer group the ownership are associated with. /// The amount of ownership received from the storage service. /// - [Event(22, Level = EventLevel.Informational, Message = "Completed listing ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were {3} ownership entries were found.")] + [Event(22, Level = EventLevel.Verbose, Message = "Completed listing ownership for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were {3} ownership entries were found.")] public virtual void ListOwnershipComplete(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, @@ -140,7 +140,7 @@ public virtual void ListOwnershipError(string fullyQualifiedNamespace, /// The name of the consumer group the ownership is associated with. /// The identifier of the processor that attempted to claim the ownership for. /// - [Event(24, Level = EventLevel.Informational, Message = "Starting to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")] + [Event(24, Level = EventLevel.Verbose, Message = "Starting to claim ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")] public virtual void ClaimOwnershipStart(string partitionId, string fullyQualifiedNamespace, string eventHubName, @@ -163,7 +163,7 @@ public virtual void ClaimOwnershipStart(string partitionId, /// The name of the consumer group the ownership is associated with. /// The identifier of the processor that attempted to claim the ownership for. /// - [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}'.")] + [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}'.")] public virtual void ClaimOwnershipComplete(string partitionId, string fullyQualifiedNamespace, string eventHubName, @@ -236,7 +236,7 @@ public virtual void OwnershipNotClaimable(string partitionId, /// The name of the consumer group the ownership is associated with. /// The identifier of the processor that attempted to claim the ownership for. /// - [Event(28, Level = EventLevel.Informational, Message = "Successfully claimed ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")] + [Event(28, Level = EventLevel.Verbose, Message = "Successfully claimed ownership of partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}' for the owner '{4}'.")] public virtual void OwnershipClaimed(string partitionId, string fullyQualifiedNamespace, string eventHubName, @@ -257,7 +257,7 @@ public virtual void OwnershipClaimed(string partitionId, /// The name of the specific Event Hub the checkpoints are associated with, relative to the Event Hubs namespace that contains it. /// The name of the consumer group the checkpoints are associated with. /// - [Event(29, Level = EventLevel.Informational, Message = "Starting to list checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")] + [Event(29, Level = EventLevel.Verbose, Message = "Starting to list checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'.")] public virtual void ListCheckpointsStart(string fullyQualifiedNamespace, string eventHubName, string consumerGroup) @@ -277,7 +277,7 @@ public virtual void ListCheckpointsStart(string fullyQualifiedNamespace, /// The name of the consumer group the checkpoints are associated with. /// The amount of checkpoints received from the storage service. /// - [Event(30, Level = EventLevel.Informational, Message = "Completed listing checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were '{3}' checkpoints found.")] + [Event(30, Level = EventLevel.Verbose, Message = "Completed listing checkpoints for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. There were '{3}' checkpoints found.")] public virtual void ListCheckpointsComplete(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, @@ -319,7 +319,7 @@ public virtual void ListCheckpointsError(string fullyQualifiedNamespace, /// The name of the specific Event Hub the checkpoint is associated with, relative to the Event Hubs namespace that contains it. /// The name of the consumer group the checkpoint is associated with. /// - [Event(32, Level = EventLevel.Informational, Message = "Starting to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")] + [Event(32, Level = EventLevel.Verbose, Message = "Starting to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")] public virtual void UpdateCheckpointStart(string partitionId, string fullyQualifiedNamespace, string eventHubName, @@ -340,7 +340,7 @@ public virtual void UpdateCheckpointStart(string partitionId, /// The name of the specific Event Hub the checkpoint is associated with, relative to the Event Hubs namespace that contains it. /// The name of the consumer group the checkpoint is associated with. /// - [Event(33, Level = EventLevel.Informational, Message = "Completed the attempt to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")] + [Event(33, Level = EventLevel.Verbose, Message = "Completed the attempt to create/update a checkpoint for partition: `{0}` of FullyQualifiedNamespace: '{1}'; EventHubName: '{2}'; ConsumerGroup: '{3}'.")] public virtual void UpdateCheckpointComplete(string partitionId, string fullyQualifiedNamespace, string eventHubName, @@ -405,7 +405,7 @@ public virtual void InvalidCheckpointFound(string partitionId, /// The name of the consumer group the checkpoint is associated with. /// The partition id the specific checkpoint is associated with. /// - [Event(36, Level = EventLevel.Informational, Message = "Starting to retrieve checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'; PartitionId: '{3}'.")] + [Event(36, Level = EventLevel.Verbose, Message = "Starting to retrieve checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'; PartitionId: '{3}'.")] public virtual void GetCheckpointStart(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, @@ -426,7 +426,7 @@ public virtual void GetCheckpointStart(string fullyQualifiedNamespace, /// The name of the consumer group the checkpoint is associated with. /// The partition id the specific checkpoint is associated with. /// - [Event(37, Level = EventLevel.Informational, Message = "Completed retrieving checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. PartitionId: '{3}'.")] + [Event(37, Level = EventLevel.Verbose, Message = "Completed retrieving checkpoint for FullyQualifiedNamespace: '{0}'; EventHubName: '{1}'; ConsumerGroup: '{2}'. PartitionId: '{3}'.")] public virtual void GetCheckpointComplete(string fullyQualifiedNamespace, string eventHubName, string consumerGroup,