1 vote

ApplicationInsights StatusCodeFilter

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 UmbracoNuGet 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.

Screenshots

Package owner

Aaron

Aaron

Aaron has 182 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 9.0.x (untested)
Version 8.16.x (untested)
Version 8.15.x (untested)
Version 8.14.x (untested)
Version 8.13.x (untested)
Version 8.12.x (untested)
Version 8.11.x (untested)
Version 8.10.x (untested)
Version 8.9.x (untested)
Version 8.8.x (untested)
Version 8.7.x (untested)
Version 8.6.x (untested)
Version 8.5.x (untested)
Version 8.4.x (untested)
Version 8.3.x (untested)
Version 8.2.x (untested)
Version 8.1.x (untested)
Version 8.0.x (untested)
Version 7.15.x (untested)
Version 7.14.x (untested)
Version 7.13.x (untested)
Version 7.12.x (untested)
Version 7.11.x (untested)
Version 7.10.x (untested)
Version 7.9.x (untested)
Version 7.8.x (untested)
Version 7.7.x (untested)
Version 7.6.x (untested)
Version 7.5.x (untested)
Version 7.4.x (untested)
Version 7.3.x (untested)
Version 7.2.x (untested)
Version 7.1.x (untested)
Version 7.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Aaron
  • Created: 19/03/2021
  • Current version 1.0.0
  • .NET version 4.7.2
  • License MIT
  • Downloads on Our: 5
  • Downloads on NuGet: 66
  • Total downloads : 71