8000 Merge pull request #1220 from microsoft/trboehre/appinsights · ShYuPe/botbuilder-python@edf33bf · GitHub
[go: up one dir, main page]

Skip to content

Commit edf33bf

Browse files
authored
Merge pull request microsoft#1220 from microsoft/trboehre/appinsights
Added ApplicationInsights Queue size setting
2 parents 8b5d8aa + b9b08cb commit edf33bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,18 @@ def __init__(
3838
instrumentation_key: str,
3939
telemetry_client: TelemetryClient = None,
4040
telemetry_processor: Callable[[object, object], bool] = None,
41+
client_queue_size: int = None,
4142
):
4243
self._instrumentation_key = instrumentation_key
44+
4345
self._client = (
4446
telemetry_client
4547
if telemetry_client is not None
4648
else TelemetryClient(self._instrumentation_key)
4749
)
50+
if client_queue_size:
51+
self._client.channel.queue.max_queue_length = client_queue_size
52+
4853
# Telemetry Processor
4954
processor = (
5055
telemetry_processor

0 commit comments

Comments
 (0)
0