diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.net6.0.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.net6.0.cs index df4fa7a160503..af36420e34cb6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.net6.0.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.net6.0.cs @@ -21,4 +21,10 @@ public enum ServiceVersion v2_1 = 1, } } + public sealed partial class AzureMonitorLogExporter : OpenTelemetry.BaseExporter + { + public AzureMonitorLogExporter(Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions options) { } + protected override void Dispose(bool disposing) { } + public override OpenTelemetry.ExportResult Export(in OpenTelemetry.Batch batch) { throw null; } + } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs index df4fa7a160503..af36420e34cb6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs @@ -21,4 +21,10 @@ public enum ServiceVersion v2_1 = 1, } } + public sealed partial class AzureMonitorLogExporter : OpenTelemetry.BaseExporter + { + public AzureMonitorLogExporter(Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions options) { } + protected override void Dispose(bool disposing) { } + public override OpenTelemetry.ExportResult Export(in OpenTelemetry.Batch batch) { throw null; } + } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs index 05cb2911a602a..6e0b8920d2888 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs @@ -11,13 +11,20 @@ namespace Azure.Monitor.OpenTelemetry.Exporter { - internal sealed class AzureMonitorLogExporter : BaseExporter + /// + /// Azure Monitor Log Exporter. + /// + public sealed class AzureMonitorLogExporter : BaseExporter { private readonly ITransmitter _transmitter; private readonly string _instrumentationKey; private AzureMonitorResource? _resource; private bool _disposed; + /// + /// Initializes a new instance of Azure Monitor Log Exporter. + /// + /// Configuration options for the exporter. public AzureMonitorLogExporter(AzureMonitorExporterOptions options) : this(TransmitterFactory.Instance.Get(options)) { } @@ -54,6 +61,7 @@ public override ExportResult Export(in Batch batch) return exportResult; } + /// protected override void Dispose(bool disposing) { if (!_disposed)