diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index 8058427a28e5d..60dac1bc98f7e 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -68,7 +68,7 @@
-
+
diff --git a/sdk/core/Azure.Core/src/Azure.Core.csproj b/sdk/core/Azure.Core/src/Azure.Core.csproj
index 919fa69230fa1..ddeaa9b2dbd4b 100644
--- a/sdk/core/Azure.Core/src/Azure.Core.csproj
+++ b/sdk/core/Azure.Core/src/Azure.Core.csproj
@@ -1,4 +1,4 @@
-
+
This is the implementation of the Azure Client Pipeline
Microsoft Azure Client Pipeline
@@ -23,9 +23,16 @@
+
+
+
+
+
+
+
+
-
diff --git a/sdk/core/Azure.Core/src/Shared/MessagingClientDiagnostics.cs b/sdk/core/Azure.Core/src/Shared/MessagingClientDiagnostics.cs
index 41c968d4072b5..e77d6568edb46 100644
--- a/sdk/core/Azure.Core/src/Shared/MessagingClientDiagnostics.cs
+++ b/sdk/core/Azure.Core/src/Shared/MessagingClientDiagnostics.cs
@@ -170,10 +170,10 @@ public void InstrumentMessage(IDictionary properties, string act
DiagnosticScope.ActivityKind.Producer);
messageScope.Start();
- Activity activity = Activity.Current;
+ Activity? activity = Activity.Current;
if (activity != null)
{
- traceparent = activity.Id;
+ traceparent = activity!.Id!;
properties[DiagnosticIdAttribute] = traceparent;
if (ActivityExtensions.SupportsActivitySource())
{
@@ -192,4 +192,4 @@ public void InstrumentMessage(IDictionary properties, string act
}
}
}
-}
\ No newline at end of file
+}