From 4274189fcb382127423af704755bbeb3a31f2667 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 08:33:56 +0000
Subject: [PATCH 1/8] Initial plan
From 9e97368449e37a283f47290c09d494e272dd498c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 08:39:35 +0000
Subject: [PATCH 2/8] Fix cross-platform path issues causing Build NuGet
package CI failure
- Replace Windows-style backslash in DocumentationFile path with forward slash
and use $(Configuration) variable instead of hardcoded 'Debug'
- Fix pr-build-test.yml workflow to use forward slashes for src/ path
instead of Windows-style src\ backslash
---
.github/workflows/pr-build-test.yml | 6 +++---
src/Dafda/Dafda.csproj | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/pr-build-test.yml b/.github/workflows/pr-build-test.yml
index 20be6150..c7b44fe9 100644
--- a/.github/workflows/pr-build-test.yml
+++ b/.github/workflows/pr-build-test.yml
@@ -16,8 +16,8 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Restore dependencies
- run: dotnet restore src\
+ run: dotnet restore src/
- name: Build
- run: dotnet build --no-restore src\
+ run: dotnet build --no-restore src/
- name: Test
- run: dotnet test --no-build --verbosity normal src\
+ run: dotnet test --no-build --verbosity normal src/
diff --git a/src/Dafda/Dafda.csproj b/src/Dafda/Dafda.csproj
index 00d72c81..b4d3ce15 100644
--- a/src/Dafda/Dafda.csproj
+++ b/src/Dafda/Dafda.csproj
@@ -13,7 +13,7 @@
true
- bin\Debug\Dafda.xml
+ bin/$(Configuration)/Dafda.xml
true
From 1c2b4ab54118fcf3b1f1eda79d22bebf3c34bb1b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 08:51:15 +0000
Subject: [PATCH 3/8] Update version to 2.0.0-beta1
---
src/Dafda/Dafda.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Dafda/Dafda.csproj b/src/Dafda/Dafda.csproj
index b4d3ce15..bd377125 100644
--- a/src/Dafda/Dafda.csproj
+++ b/src/Dafda/Dafda.csproj
@@ -7,7 +7,7 @@
A small client for Kafka
https://github.com/dfds/dafda
https://github.com/dfds/dafda
- 2.0.0
+ 2.0.0-beta1
latest
From 381b9166f17d6dd642eadc36eccb953edc936618 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 09:01:50 +0000
Subject: [PATCH 4/8] Bump OpenTelemetry.Api to 1.16.0 to fix vulnerability
build error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
OpenTelemetry.Api 1.9.0–1.15.x have GHSA-g94r-2vxg-569j (and some also
GHSA-8785-wc3w-h8q6). With TreatWarningsAsErrors=true these are treated
as build errors. 1.16.0 is the first clean release.
---
src/Dafda/Dafda.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Dafda/Dafda.csproj b/src/Dafda/Dafda.csproj
index bd377125..223ce60c 100644
--- a/src/Dafda/Dafda.csproj
+++ b/src/Dafda/Dafda.csproj
@@ -20,7 +20,7 @@
-
+
From da8bec3812d1403ef39f6f5d35e8940ed6824b5f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 09:05:49 +0000
Subject: [PATCH 5/8] Remove unrelated PR workflow path change
---
.github/workflows/pr-build-test.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pr-build-test.yml b/.github/workflows/pr-build-test.yml
index c7b44fe9..20be6150 100644
--- a/.github/workflows/pr-build-test.yml
+++ b/.github/workflows/pr-build-test.yml
@@ -16,8 +16,8 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Restore dependencies
- run: dotnet restore src/
+ run: dotnet restore src\
- name: Build
- run: dotnet build --no-restore src/
+ run: dotnet build --no-restore src\
- name: Test
- run: dotnet test --no-build --verbosity normal src/
+ run: dotnet test --no-build --verbosity normal src\
From b7c917232cdafe2d9db2a9574f15eed7c7f76730 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 09:18:23 +0000
Subject: [PATCH 6/8] Fix ExtractContextFromMetadata to not yield null values
OpenTelemetry.Api 1.16.0 (CVE fix for GHSA-g94r-2vxg-569j) changed
TraceContextPropagator to reject null values from extractors. The old
ExtractContextFromMetadata always yielded a value (even null for missing
keys), which silently failed context extraction with the new version.
Fix: only yield the value when it is non-null.
---
src/Dafda/Diagnostics/DafdaActivitySource.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Dafda/Diagnostics/DafdaActivitySource.cs b/src/Dafda/Diagnostics/DafdaActivitySource.cs
index 5449e802..0aa0a8c5 100644
--- a/src/Dafda/Diagnostics/DafdaActivitySource.cs
+++ b/src/Dafda/Diagnostics/DafdaActivitySource.cs
@@ -228,7 +228,9 @@ private static void InjectContextToMetadata(Metadata metadata, string key, strin
/// An enumerable collection of trace context values.
private static IEnumerable ExtractContextFromMetadata(Metadata metadata, string key)
{
- yield return metadata[key];
+ var value = metadata[key];
+ if (value != null)
+ yield return value;
}
///
From cd5840869328ccd66ca54c5422f4d93f77677342 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 09:37:06 +0000
Subject: [PATCH 7/8] chore: bump OpenTelemetry.Api to 1.17.0
---
src/Dafda/Dafda.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Dafda/Dafda.csproj b/src/Dafda/Dafda.csproj
index 223ce60c..5ec759d3 100644
--- a/src/Dafda/Dafda.csproj
+++ b/src/Dafda/Dafda.csproj
@@ -20,7 +20,7 @@
-
+
From 31d679740d8d34b38b371596a37619408a46b03d Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 17 Jul 2026 10:17:46 +0000
Subject: [PATCH 8/8] revert: remove DafdaActivitySource change
---
src/Dafda/Diagnostics/DafdaActivitySource.cs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/Dafda/Diagnostics/DafdaActivitySource.cs b/src/Dafda/Diagnostics/DafdaActivitySource.cs
index 0aa0a8c5..5449e802 100644
--- a/src/Dafda/Diagnostics/DafdaActivitySource.cs
+++ b/src/Dafda/Diagnostics/DafdaActivitySource.cs
@@ -228,9 +228,7 @@ private static void InjectContextToMetadata(Metadata metadata, string key, strin
/// An enumerable collection of trace context values.
private static IEnumerable ExtractContextFromMetadata(Metadata metadata, string key)
{
- var value = metadata[key];
- if (value != null)
- yield return value;
+ yield return metadata[key];
}
///