Cosmonaut.ApplicationInsights
2.1.1
ApplicationInsights support for Cosmonaut
Install-Package Cosmonaut.ApplicationInsights -Version 2.1.1
dotnet add package Cosmonaut.ApplicationInsights --version 2.1.1
<PackageReference Include="Cosmonaut.ApplicationInsights" Version="2.1.1" />
paket add Cosmonaut.ApplicationInsights --version 2.1.1
Cosmonaut.ApplicationInsights
By using this package you are able to log the events as dependencies in Application Insights in detail. The logs are batched and send in intervals OR automatically sent when the batch buffer is filled to max.
Just initialise the AppInsightsTelemetryModule in your Startup or setup pipeline like this.
Example: AppInsightsTelemetryModule.Instance.Initialize(new TelemetryConfiguration("InstrumentationKey"))
If you already have initialised TelemetryConfiguration
for your application then use TelemetryConfiguration.Active
instead of new TelemetryConfiguration
because if you don't there will be no association between the dependency calls and the parent request.
Cosmonaut.ApplicationInsights
By using this package you are able to log the events as dependencies in Application Insights in detail. The logs are batched and send in intervals OR automatically sent when the batch buffer is filled to max.
Just initialise the AppInsightsTelemetryModule in your Startup or setup pipeline like this.
Example: AppInsightsTelemetryModule.Instance.Initialize(new TelemetryConfiguration("InstrumentationKey"))
If you already have initialised TelemetryConfiguration
for your application then use TelemetryConfiguration.Active
instead of new TelemetryConfiguration
because if you don't there will be no association between the dependency calls and the parent request.
Release Notes
Please report any issues on Github.
Dependencies
-
.NETStandard 1.6
- Cosmonaut (>= 2.1.0)
- Microsoft.ApplicationInsights (>= 2.6.4)
- NETStandard.Library (>= 1.6.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.