Interface Telemetry
-
- All Known Implementing Classes:
NoOpTelemetryClient
,TelemetryClient
public interface Telemetry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addLogToBatch(TelemetryData log)
Attempt to add log to batch, and suppress exceptions thrown in case of failurevoid
close()
Close telemetry connector and send any unsubmitted logsvoid
postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
A hook for post-processing after sending telemetry data.Future<Boolean>
sendBatchAsync()
Send all cached logs to server
-
-
-
Method Detail
-
addLogToBatch
void addLogToBatch(TelemetryData log)
Attempt to add log to batch, and suppress exceptions thrown in case of failure- Parameters:
log
- entry to add
-
close
void close()
Close telemetry connector and send any unsubmitted logs
-
sendBatchAsync
Future<Boolean> sendBatchAsync()
Send all cached logs to server- Returns:
- future indicating whether the logs were sent successfully
-
postProcess
void postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
A hook for post-processing after sending telemetry data. Can be used, for example, for additional error handling.- Parameters:
queryId
- The query idsqlState
- The SQL state as defined in net.snowflake.common.core.SqlStatevendorCode
- The vendor code for localized messagesex
- The throwable that caused this.
-
-