Skip to content

Commit

Permalink
Mark log exporter class public (Azure#41553)
Browse files Browse the repository at this point in the history
* Mark log exporter class public

* edit api file
  • Loading branch information
vishweshbankwar authored Jan 30, 2024
1 parent 4f6e713 commit 4d51b6b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ public enum ServiceVersion
v2_1 = 1,
}
}
public sealed partial class AzureMonitorLogExporter : OpenTelemetry.BaseExporter<OpenTelemetry.Logs.LogRecord>
{
public AzureMonitorLogExporter(Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions options) { }
protected override void Dispose(bool disposing) { }
public override OpenTelemetry.ExportResult Export(in OpenTelemetry.Batch<OpenTelemetry.Logs.LogRecord> batch) { throw null; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ public enum ServiceVersion
v2_1 = 1,
}
}
public sealed partial class AzureMonitorLogExporter : OpenTelemetry.BaseExporter<OpenTelemetry.Logs.LogRecord>
{
public AzureMonitorLogExporter(Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions options) { }
protected override void Dispose(bool disposing) { }
public override OpenTelemetry.ExportResult Export(in OpenTelemetry.Batch<OpenTelemetry.Logs.LogRecord> batch) { throw null; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@

namespace Azure.Monitor.OpenTelemetry.Exporter
{
internal sealed class AzureMonitorLogExporter : BaseExporter<LogRecord>
/// <summary>
/// Azure Monitor Log Exporter.
/// </summary>
public sealed class AzureMonitorLogExporter : BaseExporter<LogRecord>
{
private readonly ITransmitter _transmitter;
private readonly string _instrumentationKey;
private AzureMonitorResource? _resource;
private bool _disposed;

/// <summary>
/// Initializes a new instance of Azure Monitor Log Exporter.
/// </summary>
/// <param name="options">Configuration options for the exporter.</param>
public AzureMonitorLogExporter(AzureMonitorExporterOptions options) : this(TransmitterFactory.Instance.Get(options))
{
}
Expand Down Expand Up @@ -54,6 +61,7 @@ public override ExportResult Export(in Batch<LogRecord> batch)
return exportResult;
}

/// <inheritdoc/>
protected override void Dispose(bool disposing)
{
if (!_disposed)
Expand Down

0 comments on commit 4d51b6b

Please sign in to comment.