From d501d2ecd2500ecf9351f232e6024e5ef30ed7dc Mon Sep 17 00:00:00 2001 From: Bogdan Berce Date: Thu, 22 Jan 2015 15:51:15 -0800 Subject: [PATCH] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9c4a1f2..f54b31e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,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** @@ -38,6 +39,7 @@ tc.track_event('Test event') 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** @@ -45,6 +47,7 @@ tc.track_event('Test event', { 'foo': 'bar' }, { 'baz': 42 }) from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_trace('Test trace', { 'foo': 'bar' }) +tc.flush() ``` **Sending a metric telemetry item** @@ -52,6 +55,7 @@ tc.track_trace('Test trace', { 'foo': 'bar' }) from applicationinsights import TelemetryClient tc = TelemetryClient('') tc.track_metric('My Metric', 42) +tc.flush() ``` **Sending an exception telemetry item with custom properties and measurements** @@ -68,6 +72,7 @@ try: 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**