Monday, 11 June 2012

How to instrument an application with PreEmptive Analytics for Team Foundation Server

As I previously posted, in this release we have a powerful instrumentation tool for our exceptions: PreEmptive Analytics.

Given the required server side configuration, here’s what’s needed on the client side:

Open up Dotfuscator:

 pa1

Set a new executable to target:

pa2

pa3

Then select Analytics…

pa4

pa5

…and we start adding attributes:

pa6pa7

One of the few things we need is an Application ID:

pa8

pa9

Then we add the SetupAttribute to instrument our methods:

pa10

pa11

Here we need to configure the Endpoint: as a default setting, the address to set is tfsserver:8000/Message/Endpoint.ashx

pa12

pa13

The Teardown attribute is needed to clean up after the execution;

pa14

The only missing stuff is the configuration itself:pa15

We go creating a new subscription:

pa16

Copy-paste the IDs needed (Company and Application). The most important setting here is the Threshold: if we set it to 1, we’ll have an Incident work item for every time the exception raises.

pa17

That’s it people Smile

No comments:

Post a Comment