@kth/appinsights
A wrapper for the applicationinsights package.
This is intended for a standard use-case only. If your app needs more options, please use the core package instead.
Usage
Applicationinsights works by injecting code that captures telemetry from the application.
To get full tracking, this package should be initialized as soon as possible in the code.
import { KthAppinsights } from '@kth/appinsights'
KthAppinsights.init({ name: 'app-name' })
Options
type appinsightOptions = {
name?: string
}
Features
Name and Instance name.
The if name
is passed in the options, it will be used to set "Cloud role name" and "Cloud role instance".
User agent om requests
If a request has the user-agent
header set, it will be saved in the custom property user_agent
.