AaronSadler.ApplicationInsights.StatusCodeFilter 1.0.0

dotnet add package AaronSadler.ApplicationInsights.StatusCodeFilter --version 1.0.0
NuGet\Install-Package AaronSadler.ApplicationInsights.StatusCodeFilter -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AaronSadler.ApplicationInsights.StatusCodeFilter" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AaronSadler.ApplicationInsights.StatusCodeFilter --version 1.0.0
#r "nuget: AaronSadler.ApplicationInsights.StatusCodeFilter, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AaronSadler.ApplicationInsights.StatusCodeFilter as a Cake Addin
#addin nuget:?package=AaronSadler.ApplicationInsights.StatusCodeFilter&version=1.0.0

// Install AaronSadler.ApplicationInsights.StatusCodeFilter as a Cake Tool
#tool nuget:?package=AaronSadler.ApplicationInsights.StatusCodeFilter&version=1.0.0

ApplicationInsights.StatusCodeFilter

Status code filter for Application Insights to record as success instead of failure for Umbraco 8

Getting started

Installation

ApplicationInsights.StatusCodeFilter is available from Our Umbraco, NuGet or as a manual download directly from GitHub.

Usage

This package adds a status code filter for Application Insights, this will allow you to mark status codes as success, or exclude them completely from the logs.

Configurations

By default this will log 404 errors as a success state, and not a fail state.

You can enable or disable it with the below app setting, it is disabled by default

<add key="ApplicationInsights.StatusCodeFilter.Enabled" value="TRUE OR FALSE" />  

The app setting below will allow this to be overriden with a comma separated list of status codes:

<add key="ApplicationInsights.StatusCodeFilter.StatusCodes" value="STATUS CODES HERE E.G. 404,401" />

The app setting below will exclude the status codes completely from the log:

<add key="ApplicationInsights.StatusCodeFilter.Exclude" value="TRUE OR FALSE" />

Contribution guidelines

To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.

License

Copyright © 2021 Aaron Sadler.

Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 370 3/19/2021

Staus code filter for Application Insights to record as success instead of failure for Umbraco 8