From 2828321d1bc31ae242e3be0475b4afcc8478238a Mon Sep 17 00:00:00 2001 From: Rajkumar Rangaraj Date: Thu, 23 Jan 2025 16:53:30 -0800 Subject: [PATCH] [otlp] Fix .NET Framework gRPC Export Client Default Success Response Status (#6099) --- .../CHANGELOG.md | 7 ++++++- .../Implementation/ExportClient/GrpcExportClient.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md index a3f0013d6ed..cd218c3fc86 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md @@ -7,13 +7,18 @@ Notes](../../RELEASENOTES.md). ## Unreleased +* Fixed a bug in .NET Framework gRPC export client where the default success + export response was incorrectly marked as false, now changed to true, ensuring + exports are correctly marked as successful. + ([#6099](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6099)) + ## 1.11.1 Released 2025-Jan-22 * Fixed an issue where the OTLP gRPC exporter did not export logs, metrics, or traces in .NET Framework projects. - ([#6067](https://github.com/open-telemetry/opentelemetry-dotnet/issues/6067)) + ([#6083](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6083)) ## 1.11.0 diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/GrpcExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/GrpcExportClient.cs index 6803890f75a..c3c0c8012c9 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/GrpcExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/GrpcExportClient.cs @@ -15,7 +15,7 @@ namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClie internal sealed class GrpcExportClient : IExportClient { private static readonly ExportClientGrpcResponse SuccessExportResponse = new( - success: false, + success: true, deadlineUtc: default, exception: null, status: null,