We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Complete the aiohttp ApplicationInsights implementation
See also #673 

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py`
Content:
```
1 # Copyright (c) Microsoft Corporation. All rights reserved.
2 # Licensed under the MIT License.
3 """Application Insights Telemetry Client for Bots."""
4 
5 import traceback
6 from typing import Dict, Callable
7 
8 from applicationinsights import TelemetryClient  # pylint: disable=no-name-in-module
9 from botbuilder.core.bot_telemetry_client import (
10     BotTelemetryClient,
11     Severity,
12     TelemetryDataPointType,
13 )
14 
15 from .bot_telemetry_processor import BotTelemetryProcessor
16 
17 
18 def bot_telemetry_processor(data, context) -> bool:
19     """Bot Telemetry Processor as a method for backward compatibility. Refer to
20     callable object :class:`BotTelemetryProcessor` for details.
21 
22     :param data: Data from Application Insights
23     :type data: telemetry item
24     :param context: Context from Application Insights
25     :type context: context object
26     :return: determines if the event is passed to the server (False = Filtered).
27     :rtype: bool
28     """
29     processor = BotTelemetryProcessor()
30     return processor(data, context)
31 
32 
33 class ApplicationInsightsTelemetryClient(BotTelemetryClient):
34     """Application Insights Telemetry Client."""
35 
36     def __init__(
37         self,
38         instrumentation_key: str,
39         telemetry_client: TelemetryClient = None,
40         telemetry_processor: Callable[[object, object], bool] = None,
41     ):
42         self._instrumentation_key = instrumentation_key
43         self._client = (
44             telemetry_client
45             if telemetry_client is not None
46             else TelemetryClient(self._instrumentation_key)
47         )
48         # Telemetry Processor
49         processor = (
50             telemetry_processor
51             if telemetry_processor is not None
52             else bot_telemetry_processor
53         )
54         self._client.add_telemetry_processor(processor)
55 
56     def track_pageview(
57         self,
58         name: str,
59         url: str,
60         duration: int = 0,
61         properties: Dict[str, object] = None,
62         measurements: Dict[str, object] = None,
63     ) -> None:
64         """
65         Send information about the page viewed in the application (a web page for instance).
66         :param name: the name of the page that was viewed.
67         :param url: the URL of the page that was viewed.
68         :param duration: the duration of the page view in milliseconds. (defaults to: 0)
69         :param properties: the set of custom properties the client wants attached to this data item.
70          (defaults to: None)
71         :param measurements: the set of custom measurements the client wants to attach to this data item.
72          (defaults to: None)
73         """
74         self._client.track_pageview(name, url, duration, properties, measurements)
75 
76     def track_exception(
77         self,
78         exception_type: type = None,
79         value: Exception = None,
80         trace: traceback = None,
81         properties: Dict[str, object] = None,
82         measurements: Dict[str, object] = None,
83     ) -> None:
84         """
85         Send information about a single exception that occurred in the application.
86         :param exception_type: the type of the exception that was thrown.
87         :param value: the exception that the client wants to send.
88         :param trace: the traceback information as returned by :func:`sys.exc_info`.
89         :param properties: the set of custom properties the client wants attached to this data item.
90          (defaults to: None)
91         :param measurements: the set of custom measurements the client wants to attach to this data item.
92          (defaults to: None)
93         """
94         self._client.track_exception(
95             exception_type, value, trace, properties, measurements
96         )
97 
98     def track_event(
99         self,
100         name: str,
101         properties: Dict[str, object] = None,
102         measurements: Dict[str, object] = None,
103     ) -> None:
104         """
105         Send information about a single event that has occurred in the context of the application.
106         :param name: the data to associate to this event.
107         :param properties: the set of custom properties the client wants attached to this data item.
108          (defaults to: None)
109         :param measurements: the set of custom measurements the client wants to attach to this data item.
110          (defaults to: None)
111         """
112         self._client.track_event(name, properties=properties, measurements=measurements)
113 
114     def track_metric(
115         self,
116         name: str,
117         value: float,
118         tel_type: TelemetryDataPointType = None,
119         count: int = None,
120         min_val: float = None,
121         max_val: float = None,
122         std_dev: float = None,
123         properties: Dict[str, object] = None,
124     ) -> NotImplemented:
125         """
126         Send information about a single metric data point that was captured for the application.
127         :param name: The name of the metric that was captured.
128         :param value: The value of the metric that was captured.
129         :param tel_type: The type of the metric. (defaults to: TelemetryDataPointType.aggregation`)
130         :param count: the number of metrics that were aggregated into this data point. (defaults to: None)
131         :param min_val: the minimum of all metrics collected that were aggregated into this data point.
132          (defaults to: None)
133         :param max_val: the maximum of all metrics collected that were aggregated into this data point.
134          (defaults to: None)
135         :param std_dev: the standard deviation of all metrics collected that were aggregated into this data point.
136          (defaults to: None)
137         :param properties: the set of custom properties the client wants attached to this data item.
138          (defaults to: None)
139         """
140         self._client.track_metric(
141             name, value, tel_type, count, min_val, max_val, std_dev, properties
142         )
143 
144     def track_trace(
145         self, name: str, properties: Dict[str, object] = None, severity: Severity = None
146     ):
147         """
148         Sends a single trace statement.
149         :param name: the trace statement.
150         :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
151         :param severity: the severity level of this trace, one of DEBUG, INFO, WARNING, ERROR, CRITICAL
152         """
153         self._client.track_trace(name, properties, severity)
154 
155     def track_request(
156         self,
157         name: str,
158         url: str,
159         success: bool,
160         start_time: str = None,
161         duration: int = None,
162         response_code: str = None,
163         http_method: str = None,
164         properties: Dict[str, object] = None,
165         measurements: Dict[str, object] = None,
166         request_id: str = None,
167     ):
168         """
169         Sends a single request that was captured for the application.
170         :param name: The name for this request. All requests with the same name will be grouped together.
171         :param url: The actual URL for this request (to show in individual request instances).
172         :param success: True if the request ended in success, False otherwise.
173         :param start_time: the start time of the request. The value should look the same as the one returned by
174          :func:`datetime.isoformat`. (defaults to: None)
175         :param duration: the number of milliseconds that this request lasted. (defaults to: None)
176         :param response_code: the response code that this request returned. (defaults to: None)
177         :param http_method: the HTTP method that triggered this request. (defaults to: None)
178         :param properties: the set of custom properties the client wants attached to this data item.
179          (defaults to: None)
180         :param measurements: the set of custom measurements the client wants to attach to this data item.
181          (defaults to: None)
182         :param request_id: the id for this request. If None, a new uuid will be generated. (defaults to: None)
183         """
184         self._client.track_request(
185             name,
186             url,
187             success,
188             start_time,
189             duration,
190             response_code,
191             http_method,
192             properties,
193             measurements,
194             request_id,
195         )
196 
197     def track_dependency(
198         self,
199         name: str,
200         data: str,
201         type_name: str = None,
202         target: str = None,
203         duration: int = None,
204         success: bool = None,
205         result_code: str = None,
206         properties: Dict[str, object] = None,
207         measurements: Dict[str, object] = None,
208         dependency_id: str = None,
209     ):
210         """
211         Sends a single dependency telemetry that was captured for the application.
212         :param name: the name of the command initiated with this dependency call. Low cardinality value.
213          Examples are stored procedure name and URL path template.
214         :param data: the command initiated by this dependency call.
215          Examples are SQL statement and HTTP URL with all query parameters.
216         :param type_name: the dependency type name. Low cardinality value for logical grouping of dependencies and
217          interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
218           (default to: None)
219         :param target: the target site of a dependency call. Examples are server name, host address.
220          (default to: None)
221         :param duration: the number of milliseconds that this dependency call lasted.
222          (defaults to: None)
223         :param success: true if the dependency call ended in success, false otherwise.
224          (defaults to: None)
225         :param result_code: the result code of a dependency call. Examples are SQL error code and HTTP status code.
226          (defaults to: None)
227         :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
228         :param measurements: the set of custom measurements the client wants to attach to this data item.
229          (defaults to: None)
230         :param id: the id for this dependency call. If None, a new uuid will be generated. (defaults to: None)
231         """
232         self._client.track_dependency(
233             name,
234             data,
235             type_name,
236             target,
237             duration,
238             success,
239             result_code,
240             properties,
241             measurements,
242             dependency_id,
243         )
244 
245     def flush(self):
246         """Flushes data in the queue. Data in the queue will be sent either immediately irrespective of what sender is
247         being used.
248         """
249         self._client.flush()
250
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py
--- a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py
+++ b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py
@@ -38,13 +38,18 @@
         instrumentation_key: str,
         telemetry_client: TelemetryClient = None,
         telemetry_processor: Callable[[object, object], bool] = None,
+        client_queue_size: int = None,
     ):
         self._instrumentation_key = instrumentation_key
+
         self._client = (
             telemetry_client
             if telemetry_client is not None
             else TelemetryClient(self._instrumentation_key)
         )
+        if client_queue_size:
+            self._client.channel.queue.max_queue_length = client_queue_size
+
         # Telemetry Processor
         processor = (
             telemetry_processor

{"golden_diff": "diff --git a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py\n--- a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py\n+++ b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py\n@@ -38,13 +38,18 @@\n         instrumentation_key: str,\n         telemetry_client: TelemetryClient = None,\n         telemetry_processor: Callable[[object, object], bool] = None,\n+        client_queue_size: int = None,\n     ):\n         self._instrumentation_key = instrumentation_key\n+\n         self._client = (\n             telemetry_client\n             if telemetry_client is not None\n             else TelemetryClient(self._instrumentation_key)\n         )\n+        if client_queue_size:\n+            self._client.channel.queue.max_queue_length = client_queue_size\n+\n         # Telemetry Processor\n         processor = (\n             telemetry_processor\n", "issue": "Complete the aiohttp ApplicationInsights implementation\nSee also #673 \n", "before_files": [{"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\"\"\"Application Insights Telemetry Client for Bots.\"\"\"\n\nimport traceback\nfrom typing import Dict, Callable\n\nfrom applicationinsights import TelemetryClient  # pylint: disable=no-name-in-module\nfrom botbuilder.core.bot_telemetry_client import (\n    BotTelemetryClient,\n    Severity,\n    TelemetryDataPointType,\n)\n\nfrom .bot_telemetry_processor import BotTelemetryProcessor\n\n\ndef bot_telemetry_processor(data, context) -> bool:\n    \"\"\"Bot Telemetry Processor as a method for backward compatibility. Refer to\n    callable object :class:`BotTelemetryProcessor` for details.\n\n    :param data: Data from Application Insights\n    :type data: telemetry item\n    :param context: Context from Application Insights\n    :type context: context object\n    :return: determines if the event is passed to the server (False = Filtered).\n    :rtype: bool\n    \"\"\"\n    processor = BotTelemetryProcessor()\n    return processor(data, context)\n\n\nclass ApplicationInsightsTelemetryClient(BotTelemetryClient):\n    \"\"\"Application Insights Telemetry Client.\"\"\"\n\n    def __init__(\n        self,\n        instrumentation_key: str,\n        telemetry_client: TelemetryClient = None,\n        telemetry_processor: Callable[[object, object], bool] = None,\n    ):\n        self._instrumentation_key = instrumentation_key\n        self._client = (\n            telemetry_client\n            if telemetry_client is not None\n            else TelemetryClient(self._instrumentation_key)\n        )\n        # Telemetry Processor\n        processor = (\n            telemetry_processor\n            if telemetry_processor is not None\n            else bot_telemetry_processor\n        )\n        self._client.add_telemetry_processor(processor)\n\n    def track_pageview(\n        self,\n        name: str,\n        url: str,\n        duration: int = 0,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about the page viewed in the application (a web page for instance).\n        :param name: the name of the page that was viewed.\n        :param url: the URL of the page that was viewed.\n        :param duration: the duration of the page view in milliseconds. (defaults to: 0)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_pageview(name, url, duration, properties, measurements)\n\n    def track_exception(\n        self,\n        exception_type: type = None,\n        value: Exception = None,\n        trace: traceback = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about a single exception that occurred in the application.\n        :param exception_type: the type of the exception that was thrown.\n        :param value: the exception that the client wants to send.\n        :param trace: the traceback information as returned by :func:`sys.exc_info`.\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_exception(\n            exception_type, value, trace, properties, measurements\n        )\n\n    def track_event(\n        self,\n        name: str,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about a single event that has occurred in the context of the application.\n        :param name: the data to associate to this event.\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_event(name, properties=properties, measurements=measurements)\n\n    def track_metric(\n        self,\n        name: str,\n        value: float,\n        tel_type: TelemetryDataPointType = None,\n        count: int = None,\n        min_val: float = None,\n        max_val: float = None,\n        std_dev: float = None,\n        properties: Dict[str, object] = None,\n    ) -> NotImplemented:\n        \"\"\"\n        Send information about a single metric data point that was captured for the application.\n        :param name: The name of the metric that was captured.\n        :param value: The value of the metric that was captured.\n        :param tel_type: The type of the metric. (defaults to: TelemetryDataPointType.aggregation`)\n        :param count: the number of metrics that were aggregated into this data point. (defaults to: None)\n        :param min_val: the minimum of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param max_val: the maximum of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param std_dev: the standard deviation of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_metric(\n            name, value, tel_type, count, min_val, max_val, std_dev, properties\n        )\n\n    def track_trace(\n        self, name: str, properties: Dict[str, object] = None, severity: Severity = None\n    ):\n        \"\"\"\n        Sends a single trace statement.\n        :param name: the trace statement.\n        :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)\n        :param severity: the severity level of this trace, one of DEBUG, INFO, WARNING, ERROR, CRITICAL\n        \"\"\"\n        self._client.track_trace(name, properties, severity)\n\n    def track_request(\n        self,\n        name: str,\n        url: str,\n        success: bool,\n        start_time: str = None,\n        duration: int = None,\n        response_code: str = None,\n        http_method: str = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n        request_id: str = None,\n    ):\n        \"\"\"\n        Sends a single request that was captured for the application.\n        :param name: The name for this request. All requests with the same name will be grouped together.\n        :param url: The actual URL for this request (to show in individual request instances).\n        :param success: True if the request ended in success, False otherwise.\n        :param start_time: the start time of the request. The value should look the same as the one returned by\n         :func:`datetime.isoformat`. (defaults to: None)\n        :param duration: the number of milliseconds that this request lasted. (defaults to: None)\n        :param response_code: the response code that this request returned. (defaults to: None)\n        :param http_method: the HTTP method that triggered this request. (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        :param request_id: the id for this request. If None, a new uuid will be generated. (defaults to: None)\n        \"\"\"\n        self._client.track_request(\n            name,\n            url,\n            success,\n            start_time,\n            duration,\n            response_code,\n            http_method,\n            properties,\n            measurements,\n            request_id,\n        )\n\n    def track_dependency(\n        self,\n        name: str,\n        data: str,\n        type_name: str = None,\n        target: str = None,\n        duration: int = None,\n        success: bool = None,\n        result_code: str = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n        dependency_id: str = None,\n    ):\n        \"\"\"\n        Sends a single dependency telemetry that was captured for the application.\n        :param name: the name of the command initiated with this dependency call. Low cardinality value.\n         Examples are stored procedure name and URL path template.\n        :param data: the command initiated by this dependency call.\n         Examples are SQL statement and HTTP URL with all query parameters.\n        :param type_name: the dependency type name. Low cardinality value for logical grouping of dependencies and\n         interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.\n          (default to: None)\n        :param target: the target site of a dependency call. Examples are server name, host address.\n         (default to: None)\n        :param duration: the number of milliseconds that this dependency call lasted.\n         (defaults to: None)\n        :param success: true if the dependency call ended in success, false otherwise.\n         (defaults to: None)\n        :param result_code: the result code of a dependency call. Examples are SQL error code and HTTP status code.\n         (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        :param id: the id for this dependency call. If None, a new uuid will be generated. (defaults to: None)\n        \"\"\"\n        self._client.track_dependency(\n            name,\n            data,\n            type_name,\n            target,\n            duration,\n            success,\n            result_code,\n            properties,\n            measurements,\n            dependency_id,\n        )\n\n    def flush(self):\n        \"\"\"Flushes data in the queue. Data in the queue will be sent either immediately irrespective of what sender is\n        being used.\n        \"\"\"\n        self._client.flush()\n", "path": "libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py"}], "after_files": [{"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\"\"\"Application Insights Telemetry Client for Bots.\"\"\"\n\nimport traceback\nfrom typing import Dict, Callable\n\nfrom applicationinsights import TelemetryClient  # pylint: disable=no-name-in-module\nfrom botbuilder.core.bot_telemetry_client import (\n    BotTelemetryClient,\n    Severity,\n    TelemetryDataPointType,\n)\n\nfrom .bot_telemetry_processor import BotTelemetryProcessor\n\n\ndef bot_telemetry_processor(data, context) -> bool:\n    \"\"\"Bot Telemetry Processor as a method for backward compatibility. Refer to\n    callable object :class:`BotTelemetryProcessor` for details.\n\n    :param data: Data from Application Insights\n    :type data: telemetry item\n    :param context: Context from Application Insights\n    :type context: context object\n    :return: determines if the event is passed to the server (False = Filtered).\n    :rtype: bool\n    \"\"\"\n    processor = BotTelemetryProcessor()\n    return processor(data, context)\n\n\nclass ApplicationInsightsTelemetryClient(BotTelemetryClient):\n    \"\"\"Application Insights Telemetry Client.\"\"\"\n\n    def __init__(\n        self,\n        instrumentation_key: str,\n        telemetry_client: TelemetryClient = None,\n        telemetry_processor: Callable[[object, object], bool] = None,\n        client_queue_size: int = None,\n    ):\n        self._instrumentation_key = instrumentation_key\n\n        self._client = (\n            telemetry_client\n            if telemetry_client is not None\n            else TelemetryClient(self._instrumentation_key)\n        )\n        if client_queue_size:\n            self._client.channel.queue.max_queue_length = client_queue_size\n\n        # Telemetry Processor\n        processor = (\n            telemetry_processor\n            if telemetry_processor is not None\n            else bot_telemetry_processor\n        )\n        self._client.add_telemetry_processor(processor)\n\n    def track_pageview(\n        self,\n        name: str,\n        url: str,\n        duration: int = 0,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about the page viewed in the application (a web page for instance).\n        :param name: the name of the page that was viewed.\n        :param url: the URL of the page that was viewed.\n        :param duration: the duration of the page view in milliseconds. (defaults to: 0)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_pageview(name, url, duration, properties, measurements)\n\n    def track_exception(\n        self,\n        exception_type: type = None,\n        value: Exception = None,\n        trace: traceback = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about a single exception that occurred in the application.\n        :param exception_type: the type of the exception that was thrown.\n        :param value: the exception that the client wants to send.\n        :param trace: the traceback information as returned by :func:`sys.exc_info`.\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_exception(\n            exception_type, value, trace, properties, measurements\n        )\n\n    def track_event(\n        self,\n        name: str,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n    ) -> None:\n        \"\"\"\n        Send information about a single event that has occurred in the context of the application.\n        :param name: the data to associate to this event.\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_event(name, properties=properties, measurements=measurements)\n\n    def track_metric(\n        self,\n        name: str,\n        value: float,\n        tel_type: TelemetryDataPointType = None,\n        count: int = None,\n        min_val: float = None,\n        max_val: float = None,\n        std_dev: float = None,\n        properties: Dict[str, object] = None,\n    ) -> NotImplemented:\n        \"\"\"\n        Send information about a single metric data point that was captured for the application.\n        :param name: The name of the metric that was captured.\n        :param value: The value of the metric that was captured.\n        :param tel_type: The type of the metric. (defaults to: TelemetryDataPointType.aggregation`)\n        :param count: the number of metrics that were aggregated into this data point. (defaults to: None)\n        :param min_val: the minimum of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param max_val: the maximum of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param std_dev: the standard deviation of all metrics collected that were aggregated into this data point.\n         (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        \"\"\"\n        self._client.track_metric(\n            name, value, tel_type, count, min_val, max_val, std_dev, properties\n        )\n\n    def track_trace(\n        self, name: str, properties: Dict[str, object] = None, severity: Severity = None\n    ):\n        \"\"\"\n        Sends a single trace statement.\n        :param name: the trace statement.\n        :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)\n        :param severity: the severity level of this trace, one of DEBUG, INFO, WARNING, ERROR, CRITICAL\n        \"\"\"\n        self._client.track_trace(name, properties, severity)\n\n    def track_request(\n        self,\n        name: str,\n        url: str,\n        success: bool,\n        start_time: str = None,\n        duration: int = None,\n        response_code: str = None,\n        http_method: str = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n        request_id: str = None,\n    ):\n        \"\"\"\n        Sends a single request that was captured for the application.\n        :param name: The name for this request. All requests with the same name will be grouped together.\n        :param url: The actual URL for this request (to show in individual request instances).\n        :param success: True if the request ended in success, False otherwise.\n        :param start_time: the start time of the request. The value should look the same as the one returned by\n         :func:`datetime.isoformat`. (defaults to: None)\n        :param duration: the number of milliseconds that this request lasted. (defaults to: None)\n        :param response_code: the response code that this request returned. (defaults to: None)\n        :param http_method: the HTTP method that triggered this request. (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item.\n         (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        :param request_id: the id for this request. If None, a new uuid will be generated. (defaults to: None)\n        \"\"\"\n        self._client.track_request(\n            name,\n            url,\n            success,\n            start_time,\n            duration,\n            response_code,\n            http_method,\n            properties,\n            measurements,\n            request_id,\n        )\n\n    def track_dependency(\n        self,\n        name: str,\n        data: str,\n        type_name: str = None,\n        target: str = None,\n        duration: int = None,\n        success: bool = None,\n        result_code: str = None,\n        properties: Dict[str, object] = None,\n        measurements: Dict[str, object] = None,\n        dependency_id: str = None,\n    ):\n        \"\"\"\n        Sends a single dependency telemetry that was captured for the application.\n        :param name: the name of the command initiated with this dependency call. Low cardinality value.\n         Examples are stored procedure name and URL path template.\n        :param data: the command initiated by this dependency call.\n         Examples are SQL statement and HTTP URL with all query parameters.\n        :param type_name: the dependency type name. Low cardinality value for logical grouping of dependencies and\n         interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.\n          (default to: None)\n        :param target: the target site of a dependency call. Examples are server name, host address.\n         (default to: None)\n        :param duration: the number of milliseconds that this dependency call lasted.\n         (defaults to: None)\n        :param success: true if the dependency call ended in success, false otherwise.\n         (defaults to: None)\n        :param result_code: the result code of a dependency call. Examples are SQL error code and HTTP status code.\n         (defaults to: None)\n        :param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)\n        :param measurements: the set of custom measurements the client wants to attach to this data item.\n         (defaults to: None)\n        :param id: the id for this dependency call. If None, a new uuid will be generated. (defaults to: None)\n        \"\"\"\n        self._client.track_dependency(\n            name,\n            data,\n            type_name,\n            target,\n            duration,\n            success,\n            result_code,\n            properties,\n            measurements,\n            dependency_id,\n        )\n\n    def flush(self):\n        \"\"\"Flushes data in the queue. Data in the queue will be sent either immediately irrespective of what sender is\n        being used.\n        \"\"\"\n        self._client.flush()\n", "path": "libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py"}]}