skip to content
Relatively General .NET

Implementing ASP.NET Core Automatic Span (Activity) Linking for Internal Redirects with Middleware on .NET 9

by Steve Gordon

posted on: October 08, 2024

Today, I’ll continue a current theme for my content based on my experiences implementing OpenTelemetry instrumentation in practice for .NET applications. In this post, I want to focus on a minor enhancement I recently added to a project that enables span links between request traces on ASP.NET Core during internal redirects. NOTE: This code relies […]

.NET 9 Release Candidate 2 is now available!

by .NET Team

posted on: October 08, 2024

Try out the latest features in .NET 9 Release Candidate 2 across the .NET SDK, libraries, runtime, ASP.NET Core, SignalR, .NET MAUI, and more!

Allow incoming ping requests on Windows machines

by Gérald Barré

posted on: October 07, 2024

Sometimes you need to allow ping requests for monitoring purposes. By default, it could be disabled on Windows machines. To enable it, you can use the following command:Shellcopynetsh advfirewall firewall add rule name="Allow Ping" protocol=icmpv4 dir=in action=allowDo you have a question or a sugg

An Efficient Dictionary for IPAddress Tracking using .NET 9 with AlternateLookup and IAlternateEqualityComparer

by Steve Gordon

posted on: October 02, 2024

In this post, I will introduce and demonstrate enhancements to collections in .NET 9 and C# 13 for low-allocation code paths. Specifically, I will demonstrate using a custom IAlternateEqualityComparer and the AlternateLookup on a Dictionary used for efficiently tracking IP address information, keyed on the bytes of IP addresses. My use case, the basis for […]