Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Add example for exception tracking to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wendt committed Jun 5, 2015
1 parent 840b2a8 commit 1a83664
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,15 @@ client.trackEvent("sample event");
client.trackTrace("sample trace");

//track a metric
client.trackMetric("sample metric", 3);
client.trackMetric("sample metric", 3);

//track handled exceptions
ArrayList<Object> myList = new ArrayList<Object>();
try{
Object test = myList.get(2);
}catch(Exception e){
TelemetryClient.getInstance().trackHandledException(e);
}
```

Some data types allow for custom properties.
Expand Down

0 comments on commit 1a83664

Please sign in to comment.