Skip to content

Commit

Permalink
Merge branch 'main' into yunl/aotTypeDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Ting committed Jun 22, 2023
2 parents aff152f + 5f825cb commit cbdef79
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageVersion Include="Google.Protobuf" Version="[3.19.4,4.0)" />
<PackageVersion Include="Grpc" Version="[2.44.0,3.0)" />
<PackageVersion Include="Grpc.Net.Client" Version="[2.43.0,3.0)" />
<PackageVersion Include="Grpc.Net.Client" Version="[2.45.0,3.0)" />
<PackageVersion Include="Grpc.Tools" Version="[2.44.0,3.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="[2.1.1,6.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Features" Version="[2.1.1,6.0)" />
Expand Down
4 changes: 4 additions & 0 deletions src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
for instructions to enable exemplars.
([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553))

* Updated Grpc.Net.Client to v2.45 to fix unobserved exception
from failed calls.
([#4573](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4573))

* Updated to support `Severity` and `SeverityText` when exporting `LogRecord`s.
([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568))

Expand Down
15 changes: 13 additions & 2 deletions src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#nullable enable

using System.Diagnostics;
using OpenTelemetry.Internal;

namespace OpenTelemetry.Logs;

Expand All @@ -25,6 +26,8 @@ namespace OpenTelemetry.Logs;
/// </summary>
public class LogRecordExportProcessorOptions
{
private BatchExportLogRecordProcessorOptions batchExportProcessorOptions;

/// <summary>
/// Initializes a new instance of the <see cref="LogRecordExportProcessorOptions"/> class.
/// </summary>
Expand All @@ -38,7 +41,7 @@ public LogRecordExportProcessorOptions()
{
Debug.Assert(defaultBatchExportLogRecordProcessorOptions != null, "defaultBatchExportLogRecordProcessorOptions was null");

this.BatchExportProcessorOptions = defaultBatchExportLogRecordProcessorOptions ?? new();
this.batchExportProcessorOptions = defaultBatchExportLogRecordProcessorOptions ?? new();
}

/// <summary>
Expand All @@ -49,5 +52,13 @@ public LogRecordExportProcessorOptions()
/// <summary>
/// Gets or sets the batch export options. Ignored unless <see cref="ExportProcessorType"/> is <see cref="ExportProcessorType.Batch"/>.
/// </summary>
public BatchExportLogRecordProcessorOptions BatchExportProcessorOptions { get; set; }
public BatchExportLogRecordProcessorOptions BatchExportProcessorOptions
{
get => this.batchExportProcessorOptions;
set
{
Guard.ThrowIfNull(value);
this.batchExportProcessorOptions = value;
}
}
}

0 comments on commit cbdef79

Please sign in to comment.