diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs index 2acc69a3e796c..05cb2911a602a 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter { - internal class AzureMonitorLogExporter : BaseExporter + internal sealed class AzureMonitorLogExporter : BaseExporter { private readonly ITransmitter _transmitter; private readonly string _instrumentationKey; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs index 9a848561ffbcd..0864103fc33e9 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter { - internal class AzureMonitorMetricExporter : BaseExporter + internal sealed class AzureMonitorMetricExporter : BaseExporter { private readonly ITransmitter _transmitter; private readonly string _instrumentationKey; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs index 7cb21e2c3c827..2a945180b4f96 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter { - internal class AzureMonitorTraceExporter : BaseExporter + internal sealed class AzureMonitorTraceExporter : BaseExporter { private readonly ITransmitter _transmitter; private readonly string _instrumentationKey; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AksResourceProcessor.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AksResourceProcessor.cs index 552f6067dbcd9..6931a0ec0c076 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AksResourceProcessor.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AksResourceProcessor.cs @@ -6,7 +6,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals; -internal class AksResourceProcessor +internal sealed class AksResourceProcessor { private static readonly Dictionary> s_propertySetters = new(7) { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ApplicationInsightsSampler.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ApplicationInsightsSampler.cs index 9e3b30a6190c7..29dfe6d5519c1 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ApplicationInsightsSampler.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ApplicationInsightsSampler.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals; /// Sample configurable for OpenTelemetry exporters for compatibility /// with Application Insight SDKs. /// -internal class ApplicationInsightsSampler : Sampler +internal sealed class ApplicationInsightsSampler : Sampler { private static readonly SamplingResult RecordOnlySamplingResult = new(SamplingDecision.RecordOnly); private readonly SamplingResult recordAndSampleSamplingResult; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorResource.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorResource.cs index e946af28b46f6..45b62077af281 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorResource.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorResource.cs @@ -5,7 +5,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class AzureMonitorResource + internal sealed class AzureMonitorResource { internal string? RoleName { get; set; } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs index c79cb01455fd3..30507fecbbda9 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs @@ -18,7 +18,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class LogsHelper + internal static class LogsHelper { private const int Version = 2; private static readonly ConcurrentDictionary s_depthCache = new ConcurrentDictionary(); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs index 04aa0c7de18dc..a01ea0bc27aa4 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class MetricHelper + internal static class MetricHelper { private const int Version = 2; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/NDJsonWriter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/NDJsonWriter.cs index c7dc1a69a189f..a70c3f4c4ae1a 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/NDJsonWriter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/NDJsonWriter.cs @@ -7,7 +7,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class NDJsonWriter : IDisposable + internal sealed class NDJsonWriter : IDisposable { private static readonly byte[] s_separator = { (byte)'\n' }; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ResponseStatusCodes.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ResponseStatusCodes.cs index fb813b952ff7f..cb5328636e4b2 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ResponseStatusCodes.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/ResponseStatusCodes.cs @@ -3,7 +3,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class ResponseStatusCodes + internal static class ResponseStatusCodes { public const int Success = 200; public const int PartialSuccess = 206; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricConstants.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricConstants.cs index 483f9150d7d1b..e021f0b42c657 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricConstants.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricConstants.cs @@ -3,7 +3,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class StandardMetricConstants + internal static class StandardMetricConstants { internal const string StandardMetricMeterName = "StandardMetricMeter"; internal const string RequestDurationInstrumentName = "RequestDurationStandardMetric"; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs index 9267a96a630f8..d44ecdddcd622 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs @@ -11,7 +11,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals { - internal class StandardMetricsExtractionProcessor : BaseProcessor + internal sealed class StandardMetricsExtractionProcessor : BaseProcessor { private bool _disposed; private AzureMonitorResource? _resource; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs index 0e04972de45d5..f87cf5ed3cf8b 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Internals /// This factory should ensure that only one instance of the Transmitter is created for /// any unique connection string. /// - internal class TransmitterFactory + internal sealed class TransmitterFactory { public static readonly TransmitterFactory Instance = new(); public static readonly IPlatform platform = new DefaultPlatform();