Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused import
  • Loading branch information
sourabh1007 committed Apr 29, 2024
commit 46e49b00b11b02e430752a0c3fff5c86245f4f7f
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Microsoft.Azure.Cosmos.Telemetry
{
using System;
using System.Diagnostics.Tracing;
using global::Azure.Core.Diagnostics;
using Microsoft.Azure.Cosmos.Telemetry.Diagnostics;
Expand All @@ -16,7 +15,7 @@ namespace Microsoft.Azure.Cosmos.Telemetry
internal sealed class CosmosDbEventSource : AzureEventSource
{
internal const string EventSourceName = "Azure-Cosmos-Operation-Request-Diagnostics";

private static CosmosDbEventSource Singleton { get; } = new CosmosDbEventSource();

private CosmosDbEventSource()
Expand Down Expand Up @@ -44,9 +43,9 @@ public static void RecordDiagnosticsForRequests(
CosmosDbEventSource.Singleton.FailedRequest(response.Diagnostics.ToString());
}
else if (DiagnosticsFilterHelper.IsLatencyThresholdCrossed(
config: config,
operationType: operationType,
response: response) ||
config: config,
operationType: operationType,
response: response) ||
(config.RequestChargeThreshold is not null &&
config.RequestChargeThreshold <= response.RequestCharge) ||
(config.PayloadSizeThresholdInBytes is not null &&
Expand Down