Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHand…
…lerMetricsDiagnosticListener.cs

Co-authored-by: Timothy Mothra <[email protected]>
  • Loading branch information
vishweshbankwar and Timothy Mothra authored Nov 7, 2023
commit 80a834b7ea924c253bd56dbcb92f74d91b1072c5
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static bool TryFetchRequest(object payload, out HttpRequestMessage request) =>
// The AOT-annotation DynamicallyAccessedMembers in System.Net.Http library ensures that top-level properties on the payload object are always preserved.
// see https://github.com/dotnet/runtime/blob/f9246538e3d49b90b0e9128d7b1defef57cd6911/src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs#L325
#if NET6_0_OR_GREATER
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The eSystem.Net.Http library guarantees that top-level properties are preserved")]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The System.Net.Http library guarantees that top-level properties are preserved")]
#endif
static bool TryFetchResponse(object payload, out HttpResponseMessage response) =>
StopResponseFetcher.TryFetch(payload, out response) && response != null;
Expand Down