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
Added functionality for export of failure logs (#591)
* added functionality for export of failure logs
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* changed logger.error to logger.debug in exc.py
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* Fix telemetry loss during Python shutdown
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* unit tests for export_failure_log
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* try-catch blocks to make telemetry failures non-blocking for connector operations
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed redundant try/catch blocks, added try/catch block to initialize and get telemetry client
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* skip null fields in telemetry request
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed dup import, renamed func, changed a filter_null_values to lamda
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed unnecassary class variable and a redundant try/except block
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* public functions defined at interface level
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* changed export_event and flush to private functions
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* formatting
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* changed connection_uuid to thread local in thrift backend
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* made errors more specific
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* revert change to connection_uuid
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* reverting change in close in telemetry client
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* JsonSerializableMixin
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* isdataclass check in JsonSerializableMixin
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* convert TelemetryClientFactory to module-level functions, replace NoopTelemetryClient class with NOOP_TELEMETRY_CLIENT singleton, updated tests accordingly
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* renamed connection_uuid as session_id_hex
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* added NotImplementedError to abstract class, added unit tests
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* formatting
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* added PEP-249 link, changed NoopTelemetryClient implementation
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed unused import
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* made telemetry client close a module-level function
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* unit tests verbose
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* debug logs in unit tests
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* debug logs in unit tests
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed ABC from mixin, added try/catch block around executor shutdown
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* checking stuff
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* 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 <saishree.pradhan@databricks.com>
* formatting, added walrus
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* formatting
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed walrus, removed test before stalling test
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* changed order of stalling test
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* removed debugging, added TelemetryClientFactory
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
* remove more debugging
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
---------
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
0 commit comments