- Initial release
- Adjusted TFMs to current .NET support policy.
- Moved abstractions to Lib.ServerTiming.Abstractions package
- Removed upper bounds on dependencies for .NET 6 TFM so it can be used with .NET 7 without resolution issues.
- Added testing against .NET 7.
- Fixed incorrect dependency version.
- Renamed
ServerTimigDeliveryMode
toServerTimingDeliveryMode
- Extracted abstractions (
IServerTiming
andIServerTimingMetricFilter
) to Lib.AspNetCore.ServerTiming.Abstractions package
- Added metric filters
- Added .NET 6 TFM
- Added helper method for easy timing of non-generic tasks execution (thanks to @Vake93)
- Fix support for delivering metrics through HTTP trailers when available
- Changed support for ASP.NET Core 3.0.0 to ASP.NET Core 3.1.0
- Added support for ASP.NET Core in .NET 5
- Added support for delivering metrics through HTTP trailers when available. To check if HTTP trailers delivery is possible for current request one can check
IServerTiming.DeliveryMode
property.
-
Added helper methods for easy timing of code blocks and tasks execution (thanks to @KeithHenry)
using (serverTiming.TimeAction()) { // Code block you want to time ... }
var operationResult = await serverTiming.TimeTask(AynchronousOperationYouWantToTime());
Both methods can take a metric name, if it won't be provided the default name is
{fileNameWithoutExtension}.{functionName}+{lineNumber}
.
- Added escaping of metric name so it's a valid header token (thanks to @KeithHenry)
- Updated to the latest version of specification (thanks to @cvazac)
- Improved testing support