NugetInsights.Connector
1.0.2
dotnet add package NugetInsights.Connector --version 1.0.2
NuGet\Install-Package NugetInsights.Connector -Version 1.0.2
<PackageReference Include="NugetInsights.Connector" Version="1.0.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add NugetInsights.Connector --version 1.0.2
#r "nuget: NugetInsights.Connector, 1.0.2"
// Install NugetInsights.Connector as a Cake Addin #addin nuget:?package=NugetInsights.Connector&version=1.0.2 // Install NugetInsights.Connector as a Cake Tool #tool nuget:?package=NugetInsights.Connector&version=1.0.2
NugetInsights.Collector
Gain insights into how your NuGet packages are being used.
As a NuGet package developer, I often wondered whether my packages were being used and how they were performing. To address this curiosity and stay motivated, I decided to add lightweight telemetry to my packages. NugetInsights.Collector simplifies this process for package developers by providing an easy way to collect usage data.
How it works
NugetInsights.Collector adds an init.ps1
PowerShell script to the tools folder of the generated NuGet package. This script is automatically executed by the NuGet package manager whenever the package is installed. When executed, the script sends a telemetry event to an Azure Application Insights instance, which is publicly accessible through Grafana.
Key Features:
- Transparency: All collected data is anonymized and cannot be linked to specific users.
- Open Source: Don't just take my word for it—review the script yourself. The telemetry process is minimal, using a simple REST request to send data.
Customization
Currently this posts the information to my Azure subscription however you can changing the following MSBuild property values.
NugetInsightsInstrumentationKey
: The key to application insights instance
NugetInsightsIngestionUrl
: The url to the application insights.
<PropertyGroup>
<NugetInsightsIngestionUrl>{Application Insights Url}</NugetInsightsIngestionUrl>
<NugetInsightsInstrumentationKey>{Your Key}</NugetInsightsInstrumentationKey>
</PropertyGroup>
Accreditation
<a href="https://www.flaticon.com/free-icons/network" title="network icons">Network icons created by Freepik - Flaticon</a>
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- No dependencies.
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.2 | 58 | 1/12/2025 |
1.0.1 | 159 | 1/5/2025 |
1.0.0 | 93 | 1/5/2025 |
0.1.0-alpha.15 | 86 | 1/5/2025 |
0.1.0-alpha.14 | 55 | 1/5/2025 |
0.1.0-alpha.12 | 50 | 1/4/2025 |
0.1.0-alpha.9 | 68 | 1/4/2025 |
0.1.0-alpha.8 | 63 | 1/4/2025 |
0.1.0-alpha.7 | 62 | 1/4/2025 |