0

I'm wondering how Application Insights infers the client's device model because the Microsoft docs do not state what method is used. Obviously, they must pull it from the client's user agent string, but do they use some sophisticated ML algorithm to classify the device model? Or do they simply apply some regex based logic?

I'm asking because I'm not sure how reliable this information is and I'm considering to use it as normalized input for an own multi-class classifier to categorize the user agents into four classes (mobile, desktop, tablet, unknown).

enter image description here

2
  • Which version of SDK and which language you are using?
    – krishg
    Commented Dec 15, 2020 at 8:26
  • @krishg I'm collecting telemetry in a ASP.NET Core app that uses the Microsoft.ApplicationInsights.AspNetCore 2.14.0 nuget package
    – wodzu
    Commented Dec 16, 2020 at 10:55

1 Answer 1

2

Application Insights uses an OSS component called UA-Parser. This uses RegEx to parse the UserAgent string to derive the device information used for device.model. The parsing occurs in Application Insight's ingestion service.

The GitHub project looks like this one: https://github.com/ua-parser/uap-ref-impl

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.