From 9ee08e6bccfd1292921b179860ca2fda7106dda4 Mon Sep 17 00:00:00 2001 From: Bogdan Berce Date: Thu, 22 Jan 2015 15:51:50 -0800 Subject: [PATCH] Update DESCRIPTION.rst --- DESCRIPTION.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DESCRIPTION.rst b/DESCRIPTION.rst index 0198d4b..c973cd8 100644 --- a/DESCRIPTION.rst +++ b/DESCRIPTION.rst @@ -33,6 +33,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_event("Test event") + tc.flush() **Sending an event telemetry item with custom properties and measurements** @@ -41,6 +42,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_event('Test event', { 'foo': 'bar' }, { 'baz': 42 }) + tc.flush() **Sending a trace telemetry item with custom properties** @@ -49,6 +51,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_trace('Test trace', { 'foo': 'bar' }) + tc.flush() **Sending a metric telemetry item** @@ -57,6 +60,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_metric('My Metric', 42) + tc.flush() **Sending an exception telemetry item with custom properties and measurements** @@ -74,6 +78,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s raise Exception("blah") except: tc.track_exception(*sys.exc_info(), properties={ 'foo': 'bar' }, measurements={ 'x': 42 }) + tc.flush() **Configuring context for a telemetry client instance** @@ -89,6 +94,7 @@ Once installed, you can send telemetry to Application Insights. Here are a few s tc.context.device.type = "Other" tc.context.user.id = 'santa@northpole.net' tc.track_trace('My trace with context') + tc.flush() **Configuring channel related properties**