Skip to content

leonard-thieu/toofz-telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toofz Telemetry

Build status codecov MyGet

Getting started

Installation

Create NuGet.Config in your solution folder.

NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="toofz" value="https://www.myget.org/F/toofz/api/v3/index.json" />
  </packageSources>
</configuration>

Restart Visual Studio. toofz will now show up as a package source in NuGet Package Manager. Select toofz as the package source. Search for and install the toofz.Telemetry package.

Installing toofz.Telemetry

Usage

CloudRoleNameTelemetryInitializer

CloudRoleNameTelemetryInitializer configures the name of a component in a multi-component application. The name can be used to filter telemetry and is displayed on the component in a multi-component Application map.

ApplicationInsights.config

<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
  <TelemetryInitializers>
    <Add Type="toofz.Telemetry.CloudRoleNameTelemetryInitializer, toofz.Telemetry">
      <CloudRoleName>My Cloud Role Name</CloudRoleName>
    </Add>
  </TelemetryInitializers>
</ApplicationInsights>

toofz and toofz API are components in a multi-component application.

App map

ServiceTelemetryInitializer

ServiceTelemetryInitializer adds the version of the calling assembly and a session ID to telemetry.

ApplicationInsights.config

<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
  <TelemetryInitializers>
    <Add Type="toofz.Telemetry.ServiceTelemetryInitializer, toofz.Telemetry" />
  </TelemetryInitializers>
</ApplicationInsights>

Packages

 
 
 

Contributors

Languages