You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connection errors to unauthenticated telemetry endpoint (#619)
* send telemetry to unauth endpoint in case of connection/auth errors
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added unit test for send_connection_error_telemetry
Signed-off-by: Sai Shree Pradhan <[email protected]>
* retry errors
Signed-off-by: Sai Shree Pradhan <[email protected]>
* Add functionality for export of latency logs via telemetry (#608)
* added functionality for export of failure logs
Signed-off-by: Sai Shree Pradhan <[email protected]>
* changed logger.error to logger.debug in exc.py
Signed-off-by: Sai Shree Pradhan <[email protected]>
* Fix telemetry loss during Python shutdown
Signed-off-by: Sai Shree Pradhan <[email protected]>
* unit tests for export_failure_log
Signed-off-by: Sai Shree Pradhan <[email protected]>
* try-catch blocks to make telemetry failures non-blocking for connector operations
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed redundant try/catch blocks, added try/catch block to initialize and get telemetry client
Signed-off-by: Sai Shree Pradhan <[email protected]>
* skip null fields in telemetry request
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed dup import, renamed func, changed a filter_null_values to lamda
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed unnecassary class variable and a redundant try/except block
Signed-off-by: Sai Shree Pradhan <[email protected]>
* public functions defined at interface level
Signed-off-by: Sai Shree Pradhan <[email protected]>
* changed export_event and flush to private functions
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* changed connection_uuid to thread local in thrift backend
Signed-off-by: Sai Shree Pradhan <[email protected]>
* made errors more specific
Signed-off-by: Sai Shree Pradhan <[email protected]>
* revert change to connection_uuid
Signed-off-by: Sai Shree Pradhan <[email protected]>
* reverting change in close in telemetry client
Signed-off-by: Sai Shree Pradhan <[email protected]>
* JsonSerializableMixin
Signed-off-by: Sai Shree Pradhan <[email protected]>
* isdataclass check in JsonSerializableMixin
Signed-off-by: Sai Shree Pradhan <[email protected]>
* convert TelemetryClientFactory to module-level functions, replace NoopTelemetryClient class with NOOP_TELEMETRY_CLIENT singleton, updated tests accordingly
Signed-off-by: Sai Shree Pradhan <[email protected]>
* renamed connection_uuid as session_id_hex
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added NotImplementedError to abstract class, added unit tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added PEP-249 link, changed NoopTelemetryClient implementation
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed unused import
Signed-off-by: Sai Shree Pradhan <[email protected]>
* made telemetry client close a module-level function
Signed-off-by: Sai Shree Pradhan <[email protected]>
* unit tests verbose
Signed-off-by: Sai Shree Pradhan <[email protected]>
* debug logs in unit tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* debug logs in unit tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed ABC from mixin, added try/catch block around executor shutdown
Signed-off-by: Sai Shree Pradhan <[email protected]>
* checking stuff
Signed-off-by: Sai Shree Pradhan <[email protected]>
* finding out
* finding out more
* more more finding out more nice
* locks are useless anyways
* haha
* normal
* := looks like walrus horizontally
* one more
* walrus again
* old stuff without walrus seems to fail
* manually do the walrussing
* change 3.13t, v2
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting, added walrus
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed walrus, removed test before stalling test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* changed order of stalling test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed debugging, added TelemetryClientFactory
Signed-off-by: Sai Shree Pradhan <[email protected]>
* remove more debugging
Signed-off-by: Sai Shree Pradhan <[email protected]>
* latency logs funcitionality
Signed-off-by: Sai Shree Pradhan <[email protected]>
* fixed type of return value in get_session_id_hex() in thrift backend
Signed-off-by: Sai Shree Pradhan <[email protected]>
* debug on TelemetryClientFactory lock
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* type notation for _waiters
Signed-off-by: Sai Shree Pradhan <[email protected]>
* called connection.close() in test_arraysize_buffer_size_passthrough
Signed-off-by: Sai Shree Pradhan <[email protected]>
* run all unit tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* more debugging
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed the connection.close() from that test, put debug statement before and after TelemetryClientFactory lock
Signed-off-by: Sai Shree Pradhan <[email protected]>
* more debug
Signed-off-by: Sai Shree Pradhan <[email protected]>
* more more more
Signed-off-by: Sai Shree Pradhan <[email protected]>
* why
Signed-off-by: Sai Shree Pradhan <[email protected]>
* whywhy
Signed-off-by: Sai Shree Pradhan <[email protected]>
* thread name
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added teardown to all tests except finalizer test (gc collect)
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added the get_attribute functions to the classes
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed tearDown, added connection.close() to first test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* finally
Signed-off-by: Sai Shree Pradhan <[email protected]>
* remove debugging
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added test for export_latency_log, made mock of thrift backend with retry policy
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added multi threaded tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added TelemetryExtractor, removed multithreaded tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* fixes in test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* fix in telemetry extractor
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added doc strings to latency_logger, abstracted export_telemetry_log
Signed-off-by: Sai Shree Pradhan <[email protected]>
* statement type, unit test fix
Signed-off-by: Sai Shree Pradhan <[email protected]>
* unit test fix
Signed-off-by: Sai Shree Pradhan <[email protected]>
* statement type changes
Signed-off-by: Sai Shree Pradhan <[email protected]>
* test_fetches fix
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added mocks to resolve the errors caused by log_latency decorator in tests
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed function in test_fetches cuz it is only used once
Signed-off-by: Sai Shree Pradhan <[email protected]>
* added _safe_call which returns None in case of errors in the get functions
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed the changes in test_client and test_fetches
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed the changes in test_fetches
Signed-off-by: Sai Shree Pradhan <[email protected]>
* test_telemetry
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed test
Signed-off-by: Sai Shree Pradhan <[email protected]>
---------
Signed-off-by: Sai Shree Pradhan <[email protected]>
* MaxRetryDurationError
Signed-off-by: Sai Shree Pradhan <[email protected]>
* main changes
Signed-off-by: Sai Shree Pradhan <[email protected]>
* formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
* import json
Signed-off-by: Sai Shree Pradhan <[email protected]>
* without the max retry errors
Signed-off-by: Sai Shree Pradhan <[email protected]>
* unauth telemetry client
Signed-off-by: Sai Shree Pradhan <[email protected]>
* remove duplicate code setting telemetry_enabled
Signed-off-by: Sai Shree Pradhan <[email protected]>
* removed unused errors
Signed-off-by: Sai Shree Pradhan <[email protected]>
* merge with main changes
Signed-off-by: Sai Shree Pradhan <[email protected]>
* test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* without try/catch block
Signed-off-by: Sai Shree Pradhan <[email protected]>
* -
Signed-off-by: Sai Shree Pradhan <[email protected]>
* error log for auth provider, ThriftDatabricksClient
Signed-off-by: Sai Shree Pradhan <[email protected]>
* error log for session.open
Signed-off-by: Sai Shree Pradhan <[email protected]>
* retry tests fix
Signed-off-by: Sai Shree Pradhan <[email protected]>
* test connection failure log
Signed-off-by: Sai Shree Pradhan <[email protected]>
* check types fix
Signed-off-by: Sai Shree Pradhan <[email protected]>
* test
Signed-off-by: Sai Shree Pradhan <[email protected]>
* rephrase import
Signed-off-by: Sai Shree Pradhan <[email protected]>
---------
Signed-off-by: Sai Shree Pradhan <[email protected]>
0 commit comments