MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / build_vortex_telemetry_client

Function build_vortex_telemetry_client

mssqlcli/telemetry_upload.py:116–127  ·  view source on GitHub ↗

Build vortex telemetry client.

(service_endpoint_uri)

Source from the content-addressed store, hash-verified

114
115
116def build_vortex_telemetry_client(service_endpoint_uri):
117 """
118 Build vortex telemetry client.
119 """
120 vortex_sender = VortexSynchronousSender(service_endpoint_uri)
121 sync_queue = SynchronousQueue(vortex_sender)
122 channel = VortexTelemetryChannel(None, queue=sync_queue)
123
124 client = TelemetryClient(INSTRUMENTATION_KEY, channel)
125
126 enable(INSTRUMENTATION_KEY)
127 return client
128
129
130@decorators.suppress_all_exceptions(raise_in_diagnostics=True)

Callers 1

uploadFunction · 0.85

Calls 2

Tested by

no test coverage detected